Function at 0x10009630
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x10056a60]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5dfc]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x100096be
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5e04]
cmp dword [ecx + edi + 4], 7
jne 0x100096b3
mov esi, ecx
mov eax, 0x66666667
sub ecx, esi
add ecx, edi
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
lea edx, [esi + eax*4]
mov eax, dword [ebx + 0x5dfc]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x10]
add esp, 0xc
dec dword [ebx + 0x5dfc]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x10009660
mov eax, dword [ebx + 0x5dfc]
mov esi, dword [ebx + 0x5e04]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x100096eb
cmp dword [esi + 4], 0
jne 0x100096e4
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x100096d4
mov esi, dword [0x10056a60]
cmp byte [esi + 0x4a], 0
je 0x10009701
test byte [esi + 0xc], 2
jne 0x10009701
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5dc4], 0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0xc], 6
mov dword [ebp - 0x10], eax
jne 0x100097b8
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100097b1
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.100060a0
mov edi, eax
add esp, 8
test edi, edi
je 0x100097b1
mov edx, dword [ebp - 4]
test edx, edx
je 0x10009750
mov ecx, edi
call fcn.1001b840
mov ecx, dword [0x10056a60]
test ecx, ecx
je 0x100097aa
movsx eax, word [ecx + 0x5eec]
mov edx, dword [ecx + 0x3f10]
add eax, 0xbde
mov dword [ebp - 0x18], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x100097a0
movsx eax, word [ecx + 0x5eec]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x18]
mov word [ecx + 0x5eec], ax
cwde
add eax, 0xbde
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee8]
push edi
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5dc4], 1
movss xmm1, dword [esi + 0x5dc8]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10009840
subss xmm1, dword [esi + 0x18]
comiss xmm0, xmm1
movss dword [esi + 0x5dc8], xmm1
jb 0x10009840
mov edi, dword [esi + 0x20]
test edi, edi
je 0x1000982f
mov eax, dword [0x10056a60]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5dc8], 0
call fcn.1001ba60
mov edx, 0x1004c420
mov dword [ebp - 0x18], eax
mov ecx, edi
call fcn.10005f20
mov edi, eax
test edi, edi
je 0x10009836
push edi
push dword [ebp - 4]
push 1
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x10009836
mov byte [esi + 0x96], 1
mov dword [esi + 0x5dc8], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f10]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f1c], 1
mov word [ebx + 0x5d28], ax
mov dword [ebx + 0x3f84], eax
addsd xmm0, qword [ebx + 0x3f08]
movsd qword [ebx + 0x3f08], xmm0
mov ecx, dword [ebx + 0x5d3c]
test ecx, ecx
jns 0x1000989a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x5d38]
call fcn.1001d180
mov dword [ebx + 0x5d38], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x6010]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x5f20]
addss xmm0, dword [ebx + 0x6018]
movss dword [ebx + 0x6018], xmm0
movss dword [ebx + eax*4 + 0x5f20], xmm1
mov eax, dword [ebx + 0x6010]
inc eax
movss xmm1, dword [ebx + 0x6018]
cdq
idiv ecx
mov eax, dword [ebx + 0x6014]
movss xmm0, dword [0x10052bf8]
inc eax
cmp eax, ecx
mov dword [ebx + 0x6010], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x10052aac]
mov dword [ebx + 0x6014], ecx
jbe 0x10009930
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x10052b38]
divss xmm0, xmm1
movss dword [ebx + 0x9c], xmm0
mov ecx, dword [ebx + 0x3f38]
test ecx, ecx
jns 0x1000995e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x3f34]
call fcn.1001d950
mov dword [ebx + 0x3f34], 0
mov cl, byte [ebx + 0x46]
call fcn.10014e80
mov edi, dword [0x10056a60]
mov eax, dword [edi + 0x4a40]
mov edx, dword [eax]
mov dword [edx + 4], 5
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov esi, dword [edi + 0x4a40]
mov eax, dword [edi + 0x4a38]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x10009a8d
mov ebx, eax
nop dword [eax + eax]
mov edx, dword [esi]
add esi, 4
mov eax, dword [edx + 0x98]
mov ecx, dword [edx + 0x9c]
movss xmm0, dword [edx + 0xc]
mov dword [edx + 0x88], eax
mov eax, dword [edx + 0xa0]
mov dword [edx + 0x8c], ecx
mov ecx, dword [edx + 0xa4]
mov dword [edx + 0x90], eax
mov dword [edx + 0x94], ecx
mov dword [edx + 0xa0], 0
mov dword [edx + 0xa4], 0
mov dword [edx + 0x98], 0
mov dword [edx + 0x9c], 0
movss xmm2, dword [edx + 0x88]
movaps xmm1, xmm2
addss xmm0, dword [edx + 0x8c]
addss xmm1, dword [edx + 8]
movss dword [edx + 0x1c], xmm0
movss xmm0, dword [edx + 0x10]
movss dword [edx + 0x18], xmm1
subss xmm0, xmm2
xorps xmm2, xmm2
xorps xmm1, xmm1
addss xmm0, dword [edx + 0x90]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x8c]
addss xmm0, dword [edx + 0x94]
movss dword [edx + 0x20], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x24], xmm1
cmp esi, ebx
jne 0x100099c0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.10009400
mov esi, dword [edi + 0x38]
test esi, esi
jne 0x10009aa8
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm0, dword [0x10052b38]
mov ecx, dword [edi + 0x3f94]
mov dword [edi + 0x3cf8], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [edi + 0x30]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [edi + 0x3d00], xmm0
test ecx, ecx
je 0x10009b01
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x268]
mulss xmm0, dword [eax + 0x3d00]
mov eax, dword [ecx + 0x304]
test eax, eax
je 0x10009b04
mulss xmm0, dword [eax + 0x268]
jmp 0x10009b04
xorps xmm0, xmm0
movss dword [edi + 0x3cfc], xmm0
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [edi + 0x3d04], eax
lea eax, [edx + 0x60]
mov dword [edi + 0x3d08], ecx
mov dword [edi + 0x3f00], eax
mov dword [edi + 0x3d0c], esi
movss dword [edi + 0x3d10], xmm0
mov ecx, dword [ebx + 0x4a40]
mov eax, dword [ebx + 0x4a38]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x10009b5d
nop dword [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x3c], 0
cmp ecx, edx
jne 0x10009b50
cmp byte [ebx + 0x4c38], 0
je 0x10009b91
mov eax, dword [ebx + 0x4c50]
cmp eax, dword [ebx + 0x3fe4]
jne 0x10009b91
cmp dword [edi + 0x3fe4], eax
jne 0x10009b82
mov dword [edi + 0x3fe8], eax
cmp dword [edi + 0x400c], eax
jne 0x10009b91
mov byte [edi + 0x4010], 1
cmp dword [ebx + 0x3fd4], 0
jne 0x10009ba6
mov dword [ebx + 0x3fdc], 0
jmp 0x10009bb8
mov eax, dword [ebx + 0x3fd0]
test eax, eax
je 0x10009bc2
cmp dword [ebx + 0x3fe4], eax
jne 0x10009bc2
mov dword [ebx + 0x3fe0], 0
mov eax, dword [ebx + 0x3fd0]
test eax, eax
je 0x10009bfc
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x3fdc]
movss dword [ebx + 0x3fdc], xmm0
cmp dword [ebx + 0x3fe4], eax
je 0x10009bfc
addss xmm1, dword [ebx + 0x3fe0]
movss dword [ebx + 0x3fe0], xmm1
mov dword [ebx + 0x3fd4], eax
mov eax, dword [ebx + 0x3fe4]
mov dword [ebx + 0x3fd0], 0
mov word [ebx + 0x3fd8], 0
test eax, eax
je 0x10009c54
cmp dword [ebx + 0x3fe8], eax
je 0x10009c54
cmp dword [ebx + 0x400c], eax
jne 0x10009c54
test byte [ebx + 0x5e60], 1
je 0x10009c45
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.1001c3b0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.10008740
mov edi, dword [0x10056a60]
mov ecx, dword [ebx + 0x3fe4]
test ecx, ecx
je 0x10009c73
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x3fec]
movss dword [ebx + 0x3fec], xmm0
mov eax, dword [ebx + 0x4004]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x401c]
mov dword [ebx + 0x4014], eax
mov al, byte [ebx + 0x3ff4]
mov byte [ebx + 0x4011], al
mov eax, dword [ebx + 0x5c90]
movss dword [ebx + 0x401c], xmm0
mov dword [ebx + 0x400c], ecx
mov dword [ebx + 0x3fe8], 0
mov byte [ebx + 0x3ff5], 0
mov byte [ebx + 0x4010], 0
mov byte [ebx + 0x3ff0], 0
test eax, eax
je 0x10009cdd
cmp ecx, eax
je 0x10009cdd
mov dword [ebx + 0x5c90], 0
test ecx, ecx
jne 0x10009cfb
mov dword [ebx + 0x48dc], ecx
mov dword [ebx + 0x48d0], ecx
mov byte [ebx + 0x48d4], cl
mov dword [ebx + 0x48dc], ecx
jmp 0x10009d26
mov eax, dword [ebx + 0x48dc]
test eax, eax
je 0x10009d26
test al, 2
je 0x10009d26
mov esi, dword [ebx + 0x3fe4]
mov edx, 0x20e
mov ecx, edi
call fcn.10005230
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [ebx + 0x4d74]
test ecx, ecx
je 0x10009d49
movss xmm0, dword [ebx + 0x4d90]
comiss xmm0, dword [ebx + 0x3ce4]
jb 0x10009d53
mov dword [ebx + 0x4d84], ecx
jmp 0x10009d53
mov dword [ebx + 0x4d84], 0
mov eax, dword [ebx + 0x3f98]
test eax, eax
je 0x10009d79
movss xmm0, dword [ebx + 0x4d90]
comiss xmm0, dword [ebx + 0x3ce4]
jb 0x10009d83
mov eax, dword [eax + 8]
mov dword [ebx + 0x4d88], eax
jmp 0x10009d83
mov dword [ebx + 0x4d88], 0
movss xmm0, dword [ebx + 0x4d7c]
mov dword [ebx + 0x4d78], ecx
test ecx, ecx
je 0x10009dae
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4d74], 0
movss dword [ebx + 0x4d7c], xmm0
jmp 0x10009dee
comiss xmm0, dword [0x10052aac]
jbe 0x10009df8
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x10052ae0]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4d80]
addss xmm1, xmm1
movss dword [ebx + 0x4d80], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x10009df8
mov dword [ebx + 0x4d7c], 0
mov dword [ebx + 0x4d80], 0
mov eax, dword [ebx + 0x4cac]
mov dword [ebx + 0x4cb0], eax
mov dword [ebx + 0x4cac], 0
mov dword [ebx + 0x4ca8], 0x7f7fffff
mov word [ebx + 0x4c39], 0
mov dword [ebx + 0x4cb8], 0
call fcn.10013c00
call fcn.100183b0
call fcn.100140e0
call fcn.10009190
mov esi, dword [0x10056a60]
mov ecx, dword [esi + 0x3fa0]
test ecx, ecx
je 0x10009ef7
mov eax, dword [esi + 0x3fe4]
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x10009e6e
mov byte [esi + 0x4010], 1
cmp byte [esi + 0xc4], 0
mov edi, dword [ecx + 0x30c]
je 0x10009eeb
lea eax, [esi + 0xbc]
mov ecx, eax
test eax, eax
jne 0x10009e8f
lea ecx, [esi + 0xbc]
movss xmm0, dword [ecx]
movss xmm1, dword [0x10052c0c]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x10009eeb
comiss xmm2, xmm1
jb 0x10009eeb
movss xmm0, dword [eax]
lea edx, [ebp - 0x24]
subss xmm0, dword [esi + 0x3ffc]
push 1
mov ecx, edi
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x4000]
movss dword [ebp - 0x20], xmm0
call fcn.10012b90
mov ecx, dword [esi + 0x3fa0]
add esp, 4
xor edx, edx
call fcn.100126e0
jmp 0x10009f33
mov dword [esi + 0x3fa0], 0
jmp 0x10009f2a
mov ecx, dword [esi + 0x4004]
test ecx, ecx
je 0x10009f33
mov eax, dword [esi + 0x3fe4]
cmp dword [ecx + 0x74], eax
jne 0x10009f33
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x10009f21
mov byte [esi + 0x4010], 1
cmp byte [esi + 0xc4], 0
jne 0x10009f33
xor edx, edx
xor ecx, ecx
call fcn.10008740
mov eax, dword [0x10056a60]
movss xmm2, dword [0x10052b90]
mov edx, dword [eax + 0x4a14]
sub edx, 1
js 0x10009f77
mov eax, dword [eax + 0x4a1c]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop word [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x10009f6f
test dword [ecx + 0xc], 0x8000000
jne 0x10009f91
sub eax, 0x28
sub edx, 1
jns 0x10009f60
cmp dword [ebx + 0x4c08], 0
je 0x10009fac
movss xmm0, dword [ebx + 0x4c18]
comiss xmm0, dword [0x10052aac]
jbe 0x10009fac
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4c34]
minss xmm1, dword [0x10052b38]
jmp 0x10009fcd
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x10052b9c]
movss xmm1, dword [ebx + 0x4c34]
subss xmm1, xmm0
maxss xmm1, dword [0x10052aac]
movss dword [ebx + 0x4c34], xmm1
movups xmm0, xmmword [ebx + 0x5da4]
mov dword [ebx + 0x4d8c], 0
mov dword [ebx + 0x6024], 0xffffffff
mov dword [ebx + 0x6020], 0xffffffff
mov dword [ebx + 0x601c], 0xffffffff
movups xmmword [ebx + 0x5db4], xmm0
mov byte [ebx + 0x5da4], 0
call fcn.10014470
cmp byte [ebx + 0x3f1f], 0
jne 0x1000a044
movss xmm1, dword [ebx + 0x4c]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x1000a044
movsd xmm0, qword [ebx + 0x3f08]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x1000a049
movss xmm0, dword [ebp - 4]
mov edi, dword [ebx + 0x3f50]
mov eax, dword [ebx + 0x3f48]
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x1000a121
mov ebx, eax
nop word [eax + eax]
mov esi, dword [edi]
mov ax, word [esi + 0xbc]
mov cl, byte [esi + 0xae]
mov word [esi + 0xbe], ax
xor eax, eax
mov byte [esi + 0xaf], cl
mov byte [esi + 0xae], 0
mov byte [esi + 0xb0], 0
mov word [esi + 0xbc], ax
test cl, cl
jne 0x1000a10e
cmp byte [esi + 0x368], al
jne 0x1000a10e
comiss xmm0, dword [esi + 0x248]
jbe 0x1000a10e
mov ecx, dword [esi + 0x270]
mov byte [esi + 0x368], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x360], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xec]
mov dword [esi + 0x364], eax
call fcn.100030e0
mov ecx, dword [esi + 0x270]
call fcn.100259f0
lea ecx, [esi + 0x188]
call fcn.100030e0
lea ecx, [esi + 0x1b4]
call fcn.100030e0
lea ecx, [esi + 0x1c0]
call fcn.100030e0
movss xmm0, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x1000a070
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4d20], ecx
jle 0x1000a274
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x18], edx
nop word [eax + eax]
mov eax, dword [ebx + 0x4d28]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x1000a25b
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x1000a25b
mov esi, dword [ebx + 0x4d08]
mov edi, dword [0x10056a60]
add esi, edx
mov dword [ebp - 0x20], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x1000a200
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x1000a1ef
movsx eax, word [edi + 0x5eec]
mov edx, dword [edi + 0x3f10]
add eax, 0xbde
mov dword [ebp - 0x1c], edx
cmp dword [edi + eax*8], edx
lea eax, [edi + eax*8]
je 0x1000a1e5
movsx eax, word [edi + 0x5eec]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [edi + 0x5eec], ax
cwde
add eax, 0xbde
lea eax, [edi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x5ee8]
push ecx
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x1a4], 0
lea ecx, [esi + 0x15c]
mov byte [esi + 0x1ed], 1
call fcn.100030e0
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x1000a23c
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [eax + ecx - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x1000a225
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x20]
sub esi, dword [edi + 0x4d08]
xorps xmm1, xmm1
mov eax, dword [edi + 0x4d28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
inc ecx
add edx, 0x200
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
cmp ecx, dword [ebx + 0x4d20]
jl 0x1000a140
mov eax, dword [ebx + 0x4cf4]
mov ecx, eax
mov esi, dword [ebx + 0x4cfc]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x1000a2be
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x1000a2b7
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x1000a2b7
lea ecx, [esi + 0x20]
call fcn.10028290
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x1000a291
cmp byte [ebx + 0x3f1f], 0
je 0x1000a36a
mov esi, dword [0x10056a60]
lea ecx, [esi + 0x49fc]
call fcn.100030e0
mov edi, dword [esi + 0x4a10]
test edi, edi
je 0x1000a365
mov ecx, dword [0x10056a60]
mov dword [esi + 0x4a0c], 0
mov dword [esi + 0x4a08], 0
test ecx, ecx
je 0x1000a354
movsx eax, word [ecx + 0x5eec]
mov edx, dword [ecx + 0x3f10]
add eax, 0xbde
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000a34a
movsx eax, word [ecx + 0x5eec]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5eec], ax
cwde
add eax, 0xbde
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee8]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4a10], 0
call fcn.10030ba0
mov eax, dword [ebx + 0x4a44]
mov byte [ebx + 0x3f1f], 0
test eax, eax
je 0x1000a3d2
cmp byte [eax + 0xaf], 0
jne 0x1000a3d2
mov eax, dword [0x10056a60]
mov edx, dword [eax + 0x3f54]
sub edx, 1
js 0x1000a3c6
mov eax, dword [eax + 0x3f5c]
lea esi, [eax + edx*4]
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x1000a3be
cmp byte [ecx + 0xaf], 0
je 0x1000a3be
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x1000a3c8
sub esi, 4
sub edx, 1
jns 0x1000a3a0
xor ecx, ecx
mov edx, 1
call fcn.100126e0
mov ecx, dword [ebx + 0x3f70]
test ecx, ecx
jns 0x1000a3f8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x3f6c]
call fcn.1001d890
mov dword [ebx + 0x3f6c], 0
mov ecx, dword [ebx + 0x4a24]
test ecx, ecx
jns 0x1000a428
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x4a20]
call fcn.1001d6f0
lea esi, [ebx + 0x49fc]
mov dword [ebx + 0x4a20], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1000a457
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1001d180
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x1000a46c
push 8
mov ecx, esi
call fcn.1001d180
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x4a08]
inc dword [esi]
call fcn.1001ce40
call fcn.1001c740
mov edx, dword [0x10056a60]
mov esi, edx
mov dword [esi + 0x3fcc], 0
mov eax, dword [esi + 0x5ec4]
inc eax
cmp dword [esi + 0x3f10], eax
jne 0x1000a59c
mov edi, dword [esi + 0x3fd4]
test edi, edi
jne 0x1000a4c1
mov edi, dword [esi + 0x3fe4]
cmp dword [esi + 0x5ecc], edi
je 0x1000a514
lea eax, [esi + 0x5ed0]
mov dword [esi + 0x5ecc], edi
mov dword [esi + 0x5ec8], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1000a50e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x5ed0]
call fcn.1001da30
mov edx, dword [0x10056a60]
lea eax, [esi + 0x5ed0]
mov dword [eax], 0
test edi, edi
je 0x1000a59c
mov eax, dword [esi + 0x5ec8]
test eax, eax
js 0x1000a565
mov ecx, eax
cmp eax, dword [esi + 0x5ed0]
jge 0x1000a578
mov ebx, dword [esi + 0x5ed8]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x1000a55e
mov edx, dword [esi + 0x5ed8]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edx, dword [0x10056a60]
jle 0x1000a578
inc eax
mov dword [esi + 0x5ec8], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x1000a574
mov dword [esi + 0x3fcc], edi
jmp 0x1000a59c
test ecx, ecx
js 0x1000a59c
cmp ecx, dword [esi + 0x5ed0]
jge 0x1000a59c
mov eax, dword [esi + 0x5ed8]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3fcc], eax
mov eax, dword [esi + 0x5ed8]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edx + 0x5e94]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x1000a660
mov ecx, dword [edx + 0x49c8]
mulss xmm1, dword [0x10052b90]
shl ecx, 4
cvtps2pd xmm0, xmm1
lea eax, [ecx + 0x399c]
add eax, edx
lea esi, [ecx + edx]
push eax
lea edi, [ecx + edx]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x10052b04]
lea edx, [esi + 0x3998]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x3994]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.100064c0
mov edx, dword [0x10056a60]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x49c8]
add eax, 0x39a
add eax, eax
mov dword [edx + eax*8], 0x3f800000
movss xmm0, dword [edx + 0x5e94]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5e94], xmm0
jb 0x1000a660
mov eax, dword [edx + 0x49c8]
cmp eax, 0x35
je 0x1000a656
movups xmm0, xmmword [edx + 0x5e98]
add eax, eax
movups xmmword [edx + eax*8 + 0x3994], xmm0
mov dword [edx + 0x49c8], 0x35
mov al, byte [ebx + 0x5e85]
test al, al
je 0x1000a685
sub al, 1
mov byte [ebx + 0x5e85], al
jne 0x1000a685
mov dword [ebx + 0x48e8], 0
mov byte [ebx + 0x5e86], 0
mov al, byte [ebx + 0x5e84]
test al, al
je 0x1000a6be
sub al, 1
mov byte [ebx + 0x5e84], al
jne 0x1000a6be
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.1001c3b0
mov eax, dword [ebx + 0x5e80]
add esp, 4
not eax
mov dword [ebx + 0x5e80], 0
and dword [ebx + 0x5e60], eax
mov eax, dword [0x10056a60]
xor edx, edx
mov byte [ebx + 0x3f1d], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x495c], 2
mov dword [eax + 0x497c], 0x43c80000
mov dword [eax + 0x4980], 0x43c80000
mov dword [eax + 0x4964], 4
call fcn.1000f730
add esp, 4
cmp byte [ebx + 0x66], 0
je 0x1000a73b
mov cl, byte [ebx + 0x5e8c]
cmp cl, 0xff
jne 0x1000a715
xor edx, edx
jmp 0x1000a73e
mov eax, dword [ebx + 0x3f10]
and eax, 0x80000003
jns 0x1000a727
dec eax
or eax, 0xfffffffc
inc eax
neg eax
movsx ecx, cl
sbb eax, eax
inc eax
add eax, ecx
mov ecx, 0xa
cdq
idiv ecx
jmp 0x1000a73e
or dl, 0xff
mov byte [ebx + 0x5e8c], dl
mov eax, dword [ebx + 0x5dfc]
mov esi, dword [ebx + 0x5e04]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x1000a777
nop word [eax + eax]
cmp dword [esi + 4], 1
jne 0x1000a770
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x1000a760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret