; ; BoomScrollLayer::repositionPagesLooped from 0x10038e810 to 0x10038ee74 (1636 bytes) ; ; 3 xrefs: ; > BoomScrollLayer::init @ 0x10038e48d ; > BoomScrollLayer::instantMoveToPage @ 0x10038fde0 ; > BoomScrollLayer::moveToPage @ 0x10038ff99 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:29:13 +0000 ; push rbp ; +0x0, 0x10038e810 mov rbp, rsp ; +0x1, 0x10038e811 push r15 ; +0x4, 0x10038e814 push r14 ; +0x6, 0x10038e816 push r13 ; +0x8, 0x10038e818 push r12 ; +0xa, 0x10038e81a push rbx ; +0xc, 0x10038e81c sub rsp, 18h ; +0xd, 0x10038e81d mov rbx, rdi ; +0x11, 0x10038e821 mov r14d, [rdi+24Ch] ; +0x14, 0x10038e824 movzx eax, byte ptr [rdi+1C8h] ; +0x1b, 0x10038e82b xor eax, 1 ; +0x22, 0x10038e832 shl eax, 5 ; +0x25, 0x10038e835 mov rdi, [rdi+rax+1C0h] ; +0x28, 0x10038e838 call sub_1007FEF90 ; +0x30, 0x10038e840 mov ecx, eax ; +0x35, 0x10038e845 test r14d, r14d ; +0x37, 0x10038e847 jle short loc_10038E857 ; +0x3a, 0x10038e84a mov eax, r14d ; +0x3c, 0x10038e84c cdq ; +0x3f, 0x10038e84f idiv ecx ; +0x40, 0x10038e850 mov [rbp+var_30], edx ; +0x42, 0x10038e852 jmp short loc_10038E87A ; +0x45, 0x10038e855 setnz al ; +0x47, 0x10038e857 movzx esi, al ; +0x4a, 0x10038e85a lea eax, [rsi+r14] ; +0x4d, 0x10038e85d neg eax ; +0x51, 0x10038e861 cmp ecx, 1 ; +0x53, 0x10038e863 mov edi, ecx ; +0x56, 0x10038e866 adc edi, 0 ; +0x58, 0x10038e868 xor edx, edx ; +0x5b, 0x10038e86b div edi ; +0x5d, 0x10038e86d add eax, esi ; +0x5f, 0x10038e86f imul eax, ecx ; +0x61, 0x10038e871 add eax, r14d ; +0x64, 0x10038e874 mov [rbp+var_30], eax ; +0x67, 0x10038e877 mov r15d, [rbx+24Ch] ; +0x6a, 0x10038e87a lea r14d, [r15-1] ; +0x71, 0x10038e881 movzx eax, byte ptr [rbx+1C8h] ; +0x75, 0x10038e885 xor eax, 1 ; +0x7c, 0x10038e88c shl eax, 5 ; +0x7f, 0x10038e88f mov rdi, [rbx+rax+1C0h] ; +0x82, 0x10038e892 call sub_1007FEF90 ; +0x8a, 0x10038e89a mov ecx, eax ; +0x8f, 0x10038e89f cmp r15d, 1 ; +0x91, 0x10038e8a1 jle short loc_10038E8B2 ; +0x95, 0x10038e8a5 mov eax, r14d ; +0x97, 0x10038e8a7 cdq ; +0x9a, 0x10038e8aa idiv ecx ; +0x9b, 0x10038e8ab mov r12d, edx ; +0x9d, 0x10038e8ad jmp short loc_10038E8DA ; +0xa0, 0x10038e8b0 xor esi, esi ; +0xa2, 0x10038e8b2 test r14d, r14d ; +0xa4, 0x10038e8b4 setnz sil ; +0xa7, 0x10038e8b7 lea eax, [rsi+r14] ; +0xab, 0x10038e8bb neg eax ; +0xaf, 0x10038e8bf cmp ecx, 1 ; +0xb1, 0x10038e8c1 mov edi, ecx ; +0xb4, 0x10038e8c4 adc edi, 0 ; +0xb6, 0x10038e8c6 xor edx, edx ; +0xb9, 0x10038e8c9 div edi ; +0xbb, 0x10038e8cb mov r12d, eax ; +0xbd, 0x10038e8cd add r12d, esi ; +0xc0, 0x10038e8d0 imul r12d, ecx ; +0xc3, 0x10038e8d3 add r12d, r14d ; +0xc7, 0x10038e8d7 mov r15d, [rbx+24Ch] ; +0xca, 0x10038e8da lea r14d, [r15+1] ; +0xd1, 0x10038e8e1 movzx eax, byte ptr [rbx+1C8h] ; +0xd5, 0x10038e8e5 xor eax, 1 ; +0xdc, 0x10038e8ec shl eax, 5 ; +0xdf, 0x10038e8ef mov rdi, [rbx+rax+1C0h] ; +0xe2, 0x10038e8f2 call sub_1007FEF90 ; +0xea, 0x10038e8fa mov ecx, eax ; +0xef, 0x10038e8ff test r15d, r15d ; +0xf1, 0x10038e901 js short loc_10038E911 ; +0xf4, 0x10038e904 mov eax, r14d ; +0xf6, 0x10038e906 cdq ; +0xf9, 0x10038e909 idiv ecx ; +0xfa, 0x10038e90a mov r15d, edx ; +0xfc, 0x10038e90c jmp short loc_10038E939 ; +0xff, 0x10038e90f xor esi, esi ; +0x101, 0x10038e911 test r14d, r14d ; +0x103, 0x10038e913 setnz sil ; +0x106, 0x10038e916 lea eax, [rsi+r14] ; +0x10a, 0x10038e91a neg eax ; +0x10e, 0x10038e91e cmp ecx, 1 ; +0x110, 0x10038e920 mov edi, ecx ; +0x113, 0x10038e923 adc edi, 0 ; +0x115, 0x10038e925 xor edx, edx ; +0x118, 0x10038e928 div edi ; +0x11a, 0x10038e92a mov r15d, eax ; +0x11c, 0x10038e92c add r15d, esi ; +0x11f, 0x10038e92f imul r15d, ecx ; +0x122, 0x10038e932 add r15d, r14d ; +0x126, 0x10038e936 movzx eax, byte ptr [rbx+1C8h] ; +0x129, 0x10038e939 mov r13d, r15d ; +0x130, 0x10038e940 mov [rbp+var_38], r12d ; +0x133, 0x10038e943 cmp al, 1 ; +0x137, 0x10038e947 jnz loc_10038EA01 ; +0x139, 0x10038e949 mov r14d, [rbx+24Ch] ; +0x13f, 0x10038e94f mov rdi, [rbx+1E0h] ; +0x146, 0x10038e956 call sub_1007FEF90 ; +0x14d, 0x10038e95d mov ecx, eax ; +0x152, 0x10038e962 test r14d, r14d ; +0x154, 0x10038e964 jle short loc_10038E973 ; +0x157, 0x10038e967 mov eax, r14d ; +0x159, 0x10038e969 cdq ; +0x15c, 0x10038e96c idiv ecx ; +0x15d, 0x10038e96d mov esi, edx ; +0x15f, 0x10038e96f jmp short loc_10038E995 ; +0x161, 0x10038e971 setnz al ; +0x163, 0x10038e973 movzx edi, al ; +0x166, 0x10038e976 lea eax, [rdi+r14] ; +0x169, 0x10038e979 neg eax ; +0x16d, 0x10038e97d cmp ecx, 1 ; +0x16f, 0x10038e97f mov esi, ecx ; +0x172, 0x10038e982 adc esi, 0 ; +0x174, 0x10038e984 xor edx, edx ; +0x177, 0x10038e987 div esi ; +0x179, 0x10038e989 mov esi, eax ; +0x17b, 0x10038e98b add esi, edi ; +0x17d, 0x10038e98d imul esi, ecx ; +0x17f, 0x10038e98f add esi, r14d ; +0x182, 0x10038e992 mov rdi, [rbx+1E0h] ; +0x185, 0x10038e995 call sub_1007FEFE0 ; +0x18c, 0x10038e99c mov r14, rax ; +0x191, 0x10038e9a1 cvtsi2ss xmm0, dword ptr [rbx+24Ch] ; +0x194, 0x10038e9a4 movss [rbp+var_2C], xmm0 ; +0x19c, 0x10038e9ac mov rax, [rbx] ; +0x1a1, 0x10038e9b1 mov rdi, rbx ; +0x1a4, 0x10038e9b4 call qword ptr [rax+148h] ; +0x1a7, 0x10038e9b7 movss xmm0, dword ptr [rax] ; +0x1ad, 0x10038e9bd subss xmm0, dword ptr [rbx+250h] ; +0x1b1, 0x10038e9c1 mulss xmm0, [rbp+var_2C] ; +0x1b9, 0x10038e9c9 lea r12, [rbp+var_40] ; +0x1be, 0x10038e9ce xorps xmm1, xmm1 ; +0x1c2, 0x10038e9d2 mov rdi, r12 ; +0x1c5, 0x10038e9d5 call sub_100278250 ; +0x1c8, 0x10038e9d8 mov rax, [r14] ; +0x1cd, 0x10038e9dd mov rdi, r14 ; +0x1d0, 0x10038e9e0 mov rsi, r12 ; +0x1d3, 0x10038e9e3 call qword ptr [rax+0B8h] ; +0x1d6, 0x10038e9e6 mov r13d, [rbx+24Ch] ; +0x1dc, 0x10038e9ec lea r12d, [r13-1] ; +0x1e3, 0x10038e9f3 inc r13d ; +0x1e7, 0x10038e9f7 movzx eax, byte ptr [rbx+1C8h] ; +0x1ea, 0x10038e9fa mov rdi, [rbx+1E0h] ; +0x1f1, 0x10038ea01 test al, 1 ; +0x1f8, 0x10038ea08 mov [rbp+var_34], r15d ; +0x1fa, 0x10038ea0a jz short loc_10038EA26 ; +0x1fe, 0x10038ea0e call sub_1007FEF90 ; +0x200, 0x10038ea10 mov ecx, eax ; +0x205, 0x10038ea15 test r12d, r12d ; +0x207, 0x10038ea17 jle short loc_10038EA2B ; +0x20a, 0x10038ea1a mov eax, r12d ; +0x20c, 0x10038ea1c cdq ; +0x20f, 0x10038ea1f idiv ecx ; +0x210, 0x10038ea20 mov esi, edx ; +0x212, 0x10038ea22 jmp short loc_10038EA4D ; +0x214, 0x10038ea24 mov esi, r12d ; +0x216, 0x10038ea26 jmp short loc_10038EA54 ; +0x219, 0x10038ea29 setnz al ; +0x21b, 0x10038ea2b movzx edi, al ; +0x21e, 0x10038ea2e lea eax, [rdi+r12] ; +0x221, 0x10038ea31 neg eax ; +0x225, 0x10038ea35 cmp ecx, 1 ; +0x227, 0x10038ea37 mov esi, ecx ; +0x22a, 0x10038ea3a adc esi, 0 ; +0x22c, 0x10038ea3c xor edx, edx ; +0x22f, 0x10038ea3f div esi ; +0x231, 0x10038ea41 mov esi, eax ; +0x233, 0x10038ea43 add esi, edi ; +0x235, 0x10038ea45 imul esi, ecx ; +0x237, 0x10038ea47 add esi, r12d ; +0x23a, 0x10038ea4a mov rdi, [rbx+1E0h] ; +0x23d, 0x10038ea4d call sub_1007FEFE0 ; +0x244, 0x10038ea54 mov r14, rax ; +0x249, 0x10038ea59 mov eax, [rbx+24Ch] ; +0x24c, 0x10038ea5c dec eax ; +0x252, 0x10038ea62 xorps xmm0, xmm0 ; +0x254, 0x10038ea64 cvtsi2ss xmm0, eax ; +0x257, 0x10038ea67 movss [rbp+var_2C], xmm0 ; +0x25b, 0x10038ea6b mov rax, [rbx] ; +0x260, 0x10038ea70 mov rdi, rbx ; +0x263, 0x10038ea73 call qword ptr [rax+148h] ; +0x266, 0x10038ea76 movss xmm0, dword ptr [rax] ; +0x26c, 0x10038ea7c subss xmm0, dword ptr [rbx+250h] ; +0x270, 0x10038ea80 mulss xmm0, [rbp+var_2C] ; +0x278, 0x10038ea88 lea r15, [rbp+var_40] ; +0x27d, 0x10038ea8d xorps xmm1, xmm1 ; +0x281, 0x10038ea91 mov rdi, r15 ; +0x284, 0x10038ea94 call sub_100278250 ; +0x287, 0x10038ea97 mov rax, [r14] ; +0x28c, 0x10038ea9c mov rdi, r14 ; +0x28f, 0x10038ea9f mov rsi, r15 ; +0x292, 0x10038eaa2 call qword ptr [rax+0B8h] ; +0x295, 0x10038eaa5 mov rdi, [rbx+1E0h] ; +0x29b, 0x10038eaab cmp byte ptr [rbx+1C8h], 1 ; +0x2a2, 0x10038eab2 jnz short loc_10038EAD1 ; +0x2a9, 0x10038eab9 call sub_1007FEF90 ; +0x2ab, 0x10038eabb mov ecx, eax ; +0x2b0, 0x10038eac0 test r13d, r13d ; +0x2b2, 0x10038eac2 jle short loc_10038EAD6 ; +0x2b5, 0x10038eac5 mov eax, r13d ; +0x2b7, 0x10038eac7 cdq ; +0x2ba, 0x10038eaca idiv ecx ; +0x2bb, 0x10038eacb mov esi, edx ; +0x2bd, 0x10038eacd jmp short loc_10038EAF8 ; +0x2bf, 0x10038eacf mov esi, r13d ; +0x2c1, 0x10038ead1 jmp short loc_10038EAFF ; +0x2c4, 0x10038ead4 setnz al ; +0x2c6, 0x10038ead6 movzx edi, al ; +0x2c9, 0x10038ead9 lea eax, [rdi+r13] ; +0x2cc, 0x10038eadc neg eax ; +0x2d0, 0x10038eae0 cmp ecx, 1 ; +0x2d2, 0x10038eae2 mov esi, ecx ; +0x2d5, 0x10038eae5 adc esi, 0 ; +0x2d7, 0x10038eae7 xor edx, edx ; +0x2da, 0x10038eaea div esi ; +0x2dc, 0x10038eaec mov esi, eax ; +0x2de, 0x10038eaee add esi, edi ; +0x2e0, 0x10038eaf0 imul esi, ecx ; +0x2e2, 0x10038eaf2 add esi, r13d ; +0x2e5, 0x10038eaf5 mov rdi, [rbx+1E0h] ; +0x2e8, 0x10038eaf8 call sub_1007FEFE0 ; +0x2ef, 0x10038eaff mov r14, rax ; +0x2f4, 0x10038eb04 mov eax, [rbx+24Ch] ; +0x2f7, 0x10038eb07 inc eax ; +0x2fd, 0x10038eb0d xorps xmm0, xmm0 ; +0x2ff, 0x10038eb0f cvtsi2ss xmm0, eax ; +0x302, 0x10038eb12 movss [rbp+var_2C], xmm0 ; +0x306, 0x10038eb16 mov rax, [rbx] ; +0x30b, 0x10038eb1b mov rdi, rbx ; +0x30e, 0x10038eb1e call qword ptr [rax+148h] ; +0x311, 0x10038eb21 movss xmm0, dword ptr [rax] ; +0x317, 0x10038eb27 subss xmm0, dword ptr [rbx+250h] ; +0x31b, 0x10038eb2b mulss xmm0, [rbp+var_2C] ; +0x323, 0x10038eb33 xorps xmm1, xmm1 ; +0x328, 0x10038eb38 mov rdi, r15 ; +0x32b, 0x10038eb3b call sub_100278250 ; +0x32e, 0x10038eb3e mov rax, [r14] ; +0x333, 0x10038eb43 mov rdi, r14 ; +0x336, 0x10038eb46 mov rsi, r15 ; +0x339, 0x10038eb49 call qword ptr [rax+0B8h] ; +0x33c, 0x10038eb4c mov rdi, [rbx+1E0h] ; +0x342, 0x10038eb52 call sub_1007FEF90 ; +0x349, 0x10038eb59 test eax, eax ; +0x34e, 0x10038eb5e jz short loc_10038EBA1 ; +0x350, 0x10038eb60 xor r14d, r14d ; +0x352, 0x10038eb62 nop word ptr [rax+rax+00000000h] ; +0x355, 0x10038eb65 mov rdi, [rbx+1E0h] ; +0x360, 0x10038eb70 mov esi, r14d ; +0x367, 0x10038eb77 call sub_1007FEFE0 ; +0x36a, 0x10038eb7a mov rcx, [rax] ; +0x36f, 0x10038eb7f mov rdi, rax ; +0x372, 0x10038eb82 xor esi, esi ; +0x375, 0x10038eb85 call qword ptr [rcx+158h] ; +0x377, 0x10038eb87 inc r14d ; +0x37d, 0x10038eb8d mov rdi, [rbx+1E0h] ; +0x380, 0x10038eb90 call sub_1007FEF90 ; +0x387, 0x10038eb97 cmp r14d, eax ; +0x38c, 0x10038eb9c jb short loc_10038EB70 ; +0x38f, 0x10038eb9f cmp byte ptr [rbx+1C8h], 0 ; +0x391, 0x10038eba1 jz short loc_10038EBCE ; +0x398, 0x10038eba8 mov r14d, [rbx+24Ch] ; +0x39a, 0x10038ebaa mov rdi, [rbx+1E0h] ; +0x3a1, 0x10038ebb1 call sub_1007FEF90 ; +0x3a8, 0x10038ebb8 mov ecx, eax ; +0x3ad, 0x10038ebbd test r14d, r14d ; +0x3af, 0x10038ebbf jle short loc_10038EC15 ; +0x3b2, 0x10038ebc2 mov eax, r14d ; +0x3b4, 0x10038ebc4 cdq ; +0x3b7, 0x10038ebc7 idiv ecx ; +0x3b8, 0x10038ebc8 mov esi, edx ; +0x3ba, 0x10038ebca jmp short loc_10038EC37 ; +0x3bc, 0x10038ebcc mov rdi, [rbx+1E0h] ; +0x3be, 0x10038ebce mov esi, [rbp+var_30] ; +0x3c5, 0x10038ebd5 call sub_1007FEFE0 ; +0x3c8, 0x10038ebd8 mov r14, rax ; +0x3cd, 0x10038ebdd mov rdi, [rbx+1E0h] ; +0x3d0, 0x10038ebe0 cmp byte ptr [rbx+1C8h], 1 ; +0x3d7, 0x10038ebe7 jnz short loc_10038EC0D ; +0x3de, 0x10038ebee call sub_1007FEF90 ; +0x3e0, 0x10038ebf0 mov ecx, eax ; +0x3e5, 0x10038ebf5 test r12d, r12d ; +0x3e7, 0x10038ebf7 jle loc_10038ECED ; +0x3ea, 0x10038ebfa mov eax, r12d ; +0x3f0, 0x10038ec00 cdq ; +0x3f3, 0x10038ec03 idiv ecx ; +0x3f4, 0x10038ec04 mov esi, edx ; +0x3f6, 0x10038ec06 jmp loc_10038ED0F ; +0x3f8, 0x10038ec08 mov esi, r12d ; +0x3fd, 0x10038ec0d jmp loc_10038ED16 ; +0x400, 0x10038ec10 setnz al ; +0x405, 0x10038ec15 movzx edi, al ; +0x408, 0x10038ec18 lea eax, [rdi+r14] ; +0x40b, 0x10038ec1b neg eax ; +0x40f, 0x10038ec1f cmp ecx, 1 ; +0x411, 0x10038ec21 mov esi, ecx ; +0x414, 0x10038ec24 adc esi, 0 ; +0x416, 0x10038ec26 xor edx, edx ; +0x419, 0x10038ec29 div esi ; +0x41b, 0x10038ec2b mov esi, eax ; +0x41d, 0x10038ec2d add esi, edi ; +0x41f, 0x10038ec2f imul esi, ecx ; +0x421, 0x10038ec31 add esi, r14d ; +0x424, 0x10038ec34 mov rdi, [rbx+1E0h] ; +0x427, 0x10038ec37 call sub_1007FEFE0 ; +0x42e, 0x10038ec3e mov r14, rax ; +0x433, 0x10038ec43 mov r15d, [rbx+24Ch] ; +0x436, 0x10038ec46 lea r12d, [r15-1] ; +0x43d, 0x10038ec4d mov rdi, [rbx+1E0h] ; +0x441, 0x10038ec51 cmp byte ptr [rbx+1C8h], 1 ; +0x448, 0x10038ec58 jnz short loc_10038EC78 ; +0x44f, 0x10038ec5f call sub_1007FEF90 ; +0x451, 0x10038ec61 mov ecx, eax ; +0x456, 0x10038ec66 cmp r15d, 1 ; +0x458, 0x10038ec68 jle short loc_10038EC7D ; +0x45c, 0x10038ec6c mov eax, r12d ; +0x45e, 0x10038ec6e cdq ; +0x461, 0x10038ec71 idiv ecx ; +0x462, 0x10038ec72 mov esi, edx ; +0x464, 0x10038ec74 jmp short loc_10038ECA2 ; +0x466, 0x10038ec76 mov esi, r12d ; +0x468, 0x10038ec78 jmp short loc_10038ECA9 ; +0x46b, 0x10038ec7b xor edi, edi ; +0x46d, 0x10038ec7d test r12d, r12d ; +0x46f, 0x10038ec7f setnz dil ; +0x472, 0x10038ec82 lea eax, [rdi+r12] ; +0x476, 0x10038ec86 neg eax ; +0x47a, 0x10038ec8a cmp ecx, 1 ; +0x47c, 0x10038ec8c mov esi, ecx ; +0x47f, 0x10038ec8f adc esi, 0 ; +0x481, 0x10038ec91 xor edx, edx ; +0x484, 0x10038ec94 div esi ; +0x486, 0x10038ec96 mov esi, eax ; +0x488, 0x10038ec98 add esi, edi ; +0x48a, 0x10038ec9a imul esi, ecx ; +0x48c, 0x10038ec9c add esi, r12d ; +0x48f, 0x10038ec9f mov rdi, [rbx+1E0h] ; +0x492, 0x10038eca2 call sub_1007FEFE0 ; +0x499, 0x10038eca9 mov r12, rax ; +0x49e, 0x10038ecae mov r15d, [rbx+24Ch] ; +0x4a1, 0x10038ecb1 lea r13d, [r15+1] ; +0x4a8, 0x10038ecb8 mov rdi, [rbx+1E0h] ; +0x4ac, 0x10038ecbc cmp byte ptr [rbx+1C8h], 1 ; +0x4b3, 0x10038ecc3 jnz short loc_10038ECE5 ; +0x4ba, 0x10038ecca call sub_1007FEF90 ; +0x4bc, 0x10038eccc mov ecx, eax ; +0x4c1, 0x10038ecd1 test r15d, r15d ; +0x4c3, 0x10038ecd3 js short loc_10038ED53 ; +0x4c6, 0x10038ecd6 mov eax, r13d ; +0x4c8, 0x10038ecd8 cdq ; +0x4cb, 0x10038ecdb idiv ecx ; +0x4cc, 0x10038ecdc mov esi, edx ; +0x4ce, 0x10038ecde jmp loc_10038ED78 ; +0x4d0, 0x10038ece0 mov esi, r13d ; +0x4d5, 0x10038ece5 jmp loc_10038ED7F ; +0x4d8, 0x10038ece8 setnz al ; +0x4dd, 0x10038eced movzx edi, al ; +0x4e0, 0x10038ecf0 lea eax, [rdi+r12] ; +0x4e3, 0x10038ecf3 neg eax ; +0x4e7, 0x10038ecf7 cmp ecx, 1 ; +0x4e9, 0x10038ecf9 mov esi, ecx ; +0x4ec, 0x10038ecfc adc esi, 0 ; +0x4ee, 0x10038ecfe xor edx, edx ; +0x4f1, 0x10038ed01 div esi ; +0x4f3, 0x10038ed03 mov esi, eax ; +0x4f5, 0x10038ed05 add esi, edi ; +0x4f7, 0x10038ed07 imul esi, ecx ; +0x4f9, 0x10038ed09 add esi, r12d ; +0x4fc, 0x10038ed0c mov rdi, [rbx+1E0h] ; +0x4ff, 0x10038ed0f call sub_1007FEFE0 ; +0x506, 0x10038ed16 mov r12, rax ; +0x50b, 0x10038ed1b mov rdi, [rbx+1E0h] ; +0x50e, 0x10038ed1e cmp byte ptr [rbx+1C8h], 1 ; +0x515, 0x10038ed25 jnz short loc_10038ED4B ; +0x51c, 0x10038ed2c call sub_1007FEF90 ; +0x51e, 0x10038ed2e mov ecx, eax ; +0x523, 0x10038ed33 test r13d, r13d ; +0x525, 0x10038ed35 jle loc_10038EDF5 ; +0x528, 0x10038ed38 mov eax, r13d ; +0x52e, 0x10038ed3e cdq ; +0x531, 0x10038ed41 idiv ecx ; +0x532, 0x10038ed42 mov esi, edx ; +0x534, 0x10038ed44 jmp loc_10038EE17 ; +0x536, 0x10038ed46 mov esi, r13d ; +0x53b, 0x10038ed4b jmp loc_10038EE1E ; +0x53e, 0x10038ed4e xor edi, edi ; +0x543, 0x10038ed53 test r13d, r13d ; +0x545, 0x10038ed55 setnz dil ; +0x548, 0x10038ed58 lea eax, [rdi+r13] ; +0x54c, 0x10038ed5c neg eax ; +0x550, 0x10038ed60 cmp ecx, 1 ; +0x552, 0x10038ed62 mov esi, ecx ; +0x555, 0x10038ed65 adc esi, 0 ; +0x557, 0x10038ed67 xor edx, edx ; +0x55a, 0x10038ed6a div esi ; +0x55c, 0x10038ed6c mov esi, eax ; +0x55e, 0x10038ed6e add esi, edi ; +0x560, 0x10038ed70 imul esi, ecx ; +0x562, 0x10038ed72 add esi, r13d ; +0x565, 0x10038ed75 mov rdi, [rbx+1E0h] ; +0x568, 0x10038ed78 call sub_1007FEFE0 ; +0x56f, 0x10038ed7f mov r13, rax ; +0x574, 0x10038ed84 mov r15, [rbx+1B8h] ; +0x577, 0x10038ed87 mov rdi, [rbx+1C0h] ; +0x57e, 0x10038ed8e mov esi, [rbp+var_30] ; +0x585, 0x10038ed95 call sub_1007FEFE0 ; +0x588, 0x10038ed98 mov rcx, [r15] ; +0x58d, 0x10038ed9d mov rdi, r15 ; +0x590, 0x10038eda0 mov rsi, r14 ; +0x593, 0x10038eda3 mov rdx, rax ; +0x596, 0x10038eda6 call qword ptr [rcx] ; +0x599, 0x10038eda9 mov r15, [rbx+1B8h] ; +0x59b, 0x10038edab mov rdi, [rbx+1C0h] ; +0x5a2, 0x10038edb2 mov esi, [rbp+var_38] ; +0x5a9, 0x10038edb9 call sub_1007FEFE0 ; +0x5ac, 0x10038edbc mov rcx, [r15] ; +0x5b1, 0x10038edc1 mov rdi, r15 ; +0x5b4, 0x10038edc4 mov rsi, r12 ; +0x5b7, 0x10038edc7 mov rdx, rax ; +0x5ba, 0x10038edca call qword ptr [rcx] ; +0x5bd, 0x10038edcd mov r15, [rbx+1B8h] ; +0x5bf, 0x10038edcf mov rdi, [rbx+1C0h] ; +0x5c6, 0x10038edd6 mov esi, [rbp+var_34] ; +0x5cd, 0x10038eddd call sub_1007FEFE0 ; +0x5d0, 0x10038ede0 mov rcx, [r15] ; +0x5d5, 0x10038ede5 mov rdi, r15 ; +0x5d8, 0x10038ede8 mov rsi, r13 ; +0x5db, 0x10038edeb mov rdx, rax ; +0x5de, 0x10038edee call qword ptr [rcx] ; +0x5e1, 0x10038edf1 jmp short loc_10038EE26 ; +0x5e3, 0x10038edf3 setnz al ; +0x5e5, 0x10038edf5 movzx edi, al ; +0x5e8, 0x10038edf8 lea eax, [rdi+r13] ; +0x5eb, 0x10038edfb neg eax ; +0x5ef, 0x10038edff cmp ecx, 1 ; +0x5f1, 0x10038ee01 mov esi, ecx ; +0x5f4, 0x10038ee04 adc esi, 0 ; +0x5f6, 0x10038ee06 xor edx, edx ; +0x5f9, 0x10038ee09 div esi ; +0x5fb, 0x10038ee0b mov esi, eax ; +0x5fd, 0x10038ee0d add esi, edi ; +0x5ff, 0x10038ee0f imul esi, ecx ; +0x601, 0x10038ee11 add esi, r13d ; +0x604, 0x10038ee14 mov rdi, [rbx+1E0h] ; +0x607, 0x10038ee17 call sub_1007FEFE0 ; +0x60e, 0x10038ee1e mov r13, rax ; +0x613, 0x10038ee23 mov rax, [r14] ; +0x616, 0x10038ee26 mov rdi, r14 ; +0x619, 0x10038ee29 mov esi, 1 ; +0x61c, 0x10038ee2c call qword ptr [rax+158h] ; +0x621, 0x10038ee31 movzx esi, byte ptr [rbx+229h] ; +0x627, 0x10038ee37 mov rax, [r12] ; +0x62e, 0x10038ee3e xor esi, 1 ; +0x632, 0x10038ee42 mov rdi, r12 ; +0x635, 0x10038ee45 call qword ptr [rax+158h] ; +0x638, 0x10038ee48 movzx esi, byte ptr [rbx+229h] ; +0x63e, 0x10038ee4e mov rax, [r13+0] ; +0x645, 0x10038ee55 xor esi, 1 ; +0x649, 0x10038ee59 mov rdi, r13 ; +0x64c, 0x10038ee5c call qword ptr [rax+158h] ; +0x64f, 0x10038ee5f add rsp, 18h ; +0x655, 0x10038ee65 pop rbx ; +0x659, 0x10038ee69 pop r12 ; +0x65a, 0x10038ee6a pop r13 ; +0x65c, 0x10038ee6c pop r14 ; +0x65e, 0x10038ee6e pop r15 ; +0x660, 0x10038ee70 pop rbp ; +0x662, 0x10038ee72 retn ; +0x663, 0x10038ee73