Function at 0x407cc0
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 [0x4454a8]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5dfc]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x407d4e
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5e04]
cmp dword [ecx + edi + 4], 7
jne 0x407d43
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 0x407cf0
mov eax, dword [ebx + 0x5dfc]
mov esi, dword [ebx + 0x5e04]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x407d7b
cmp dword [esi + 4], 0
jne 0x407d74
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x407d64
mov esi, dword [0x4454a8]
cmp byte [esi + 0x4a], 0
je 0x407d91
test byte [esi + 0xc], 2
jne 0x407d91
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 0x407e48
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x407e41
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00403fb0
mov edi, eax
add esp, 8
test edi, edi
je 0x407e41
mov edx, dword [ebp - 4]
test edx, edx
je 0x407de0
mov ecx, edi
call fcn.00418bb0
mov ecx, dword [0x4454a8]
test ecx, ecx
je 0x407e3a
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 0x407e30
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 0x407ed0
subss xmm1, dword [esi + 0x18]
comiss xmm0, xmm1
movss dword [esi + 0x5dc8], xmm1
jb 0x407ed0
mov edi, dword [esi + 0x20]
test edi, edi
je 0x407ebf
mov eax, dword [0x4454a8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5dc8], 0
call fcn.00418dd0
mov edx, 0x43d130
mov dword [ebp - 0x18], eax
mov ecx, edi
call fcn.00403e30
mov edi, eax
test edi, edi
je 0x407ec6
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 0x407ec6
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 0x407f2a
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.0041a640
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 [0x441fa0]
inc eax
cmp eax, ecx
mov dword [ebx + 0x6010], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x441e40]
mov dword [ebx + 0x6014], ecx
jbe 0x407fc0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x441ecc]
divss xmm0, xmm1
movss dword [ebx + 0x9c], xmm0
mov ecx, dword [ebx + 0x3f38]
test ecx, ecx
jns 0x407fee
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.0041af90
mov dword [ebx + 0x3f34], 0
mov cl, byte [ebx + 0x46]
call fcn.00412610
mov esi, dword [0x4454a8]
mov eax, dword [esi + 0x4a40]
mov edx, dword [eax]
mov dword [edx + 4], 5
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov edi, dword [esi + 0x4a40]
mov eax, dword [esi + 0x4a38]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x40811d
mov ebx, eax
nop dword [eax + eax]
mov edx, dword [edi]
add edi, 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 edi, ebx
jne 0x408050
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.00407ab0
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x408138
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm0, dword [0x441ecc]
mov ecx, dword [esi + 0x3f94]
mov dword [esi + 0x3cf8], edi
movss xmm1, dword [edi + 0x10]
mulss xmm1, dword [esi + 0x30]
mulss xmm1, dword [edi + 0x4c]
maxss xmm0, xmm1
movss dword [esi + 0x3d00], xmm0
test ecx, ecx
je 0x408191
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x268]
mulss xmm0, dword [eax + 0x3d00]
mov eax, dword [ecx + 0x304]
test eax, eax
je 0x408194
mulss xmm0, dword [eax + 0x268]
jmp 0x408194
xorps xmm0, xmm0
movss dword [esi + 0x3cfc], xmm0
mov edx, dword [edi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x3d08], eax
lea eax, [edx + 0x60]
mov dword [esi + 0x3d0c], ecx
mov dword [esi + 0x3f04], eax
mov dword [esi + 0x3d10], edi
movss dword [esi + 0x3d14], xmm0
mov ecx, dword [ebx + 0x4a40]
mov eax, dword [ebx + 0x4a38]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x4081ed
nop dword [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x3c], 0
cmp ecx, edx
jne 0x4081e0
cmp byte [ebx + 0x4c38], 0
je 0x408221
mov eax, dword [ebx + 0x4c50]
cmp eax, dword [ebx + 0x3fe4]
jne 0x408221
cmp dword [esi + 0x3fe4], eax
jne 0x408212
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x408221
mov byte [esi + 0x4010], 1
cmp dword [ebx + 0x3fd4], 0
jne 0x408236
mov dword [ebx + 0x3fdc], 0
jmp 0x408248
mov eax, dword [ebx + 0x3fd0]
test eax, eax
je 0x408252
cmp dword [ebx + 0x3fe4], eax
jne 0x408252
mov dword [ebx + 0x3fe0], 0
mov eax, dword [ebx + 0x3fd0]
test eax, eax
je 0x40828c
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x3fdc]
movss dword [ebx + 0x3fdc], xmm0
cmp dword [ebx + 0x3fe4], eax
je 0x40828c
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 0x4082e4
cmp dword [ebx + 0x3fe8], eax
je 0x4082e4
cmp dword [ebx + 0x400c], eax
jne 0x4082e4
test byte [ebx + 0x5e60], 1
je 0x4082d5
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.004196f0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00406d40
mov esi, dword [0x4454a8]
mov ecx, dword [ebx + 0x3fe4]
test ecx, ecx
je 0x408303
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 0x40836d
cmp ecx, eax
je 0x40836d
mov dword [ebx + 0x5c90], 0
test ecx, ecx
jne 0x40838b
mov dword [ebx + 0x48dc], ecx
mov dword [ebx + 0x48d0], ecx
mov byte [ebx + 0x48d4], cl
mov dword [ebx + 0x48dc], ecx
jmp 0x4083b4
mov eax, dword [ebx + 0x48dc]
test eax, eax
je 0x4083b4
test al, 2
je 0x4083b4
mov eax, dword [ebx + 0x3fe4]
mov dword [esi + 0x40f8], eax
mov dword [esi + 0x40f4], eax
mov word [esi + 0x40fc], 0
mov ecx, dword [ebx + 0x4d74]
test ecx, ecx
je 0x4083d7
movss xmm0, dword [ebx + 0x4d90]
comiss xmm0, dword [ebx + 0x3ce4]
jb 0x4083e1
mov dword [ebx + 0x4d84], ecx
jmp 0x4083e1
mov dword [ebx + 0x4d84], 0
mov eax, dword [ebx + 0x3f98]
test eax, eax
je 0x408407
movss xmm0, dword [ebx + 0x4d90]
comiss xmm0, dword [ebx + 0x3ce4]
jb 0x408411
mov eax, dword [eax + 8]
mov dword [ebx + 0x4d88], eax
jmp 0x408411
mov dword [ebx + 0x4d88], 0
movss xmm0, dword [ebx + 0x4d7c]
mov dword [ebx + 0x4d78], ecx
test ecx, ecx
je 0x40843c
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4d74], 0
movss dword [ebx + 0x4d7c], xmm0
jmp 0x40847c
comiss xmm0, dword [0x441e40]
jbe 0x408486
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x441e78]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4d80]
addss xmm1, xmm1
movss dword [ebx + 0x4d80], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x408486
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.00411340
call fcn.00415780
call fcn.00411880
call fcn.00407800
mov esi, dword [0x4454a8]
mov ecx, dword [esi + 0x3fa0]
test ecx, ecx
je 0x408585
mov eax, dword [esi + 0x3fe4]
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x4084fc
mov byte [esi + 0x4010], 1
cmp byte [esi + 0xc4], 0
mov edi, dword [ecx + 0x30c]
je 0x408579
lea eax, [esi + 0xbc]
mov ecx, eax
test eax, eax
jne 0x40851d
lea ecx, [esi + 0xbc]
movss xmm0, dword [ecx]
movss xmm1, dword [0x441fb8]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x408579
comiss xmm2, xmm1
jb 0x408579
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.00410470
mov ecx, dword [esi + 0x3fa0]
add esp, 4
xor edx, edx
call fcn.0040fe10
jmp 0x4085c1
mov dword [esi + 0x3fa0], 0
jmp 0x4085b8
mov ecx, dword [esi + 0x4004]
test ecx, ecx
je 0x4085c1
mov eax, dword [esi + 0x3fe4]
cmp dword [ecx + 0x74], eax
jne 0x4085c1
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x4085af
mov byte [esi + 0x4010], 1
cmp byte [esi + 0xc4], 0
jne 0x4085c1
xor edx, edx
xor ecx, ecx
call fcn.00406d40
mov eax, dword [0x4454a8]
movss xmm2, dword [0x441f18]
mov edx, dword [eax + 0x4a14]
sub edx, 1
js 0x4085ff
mov eax, dword [eax + 0x4a1c]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x4085f7
test dword [ecx + 0xc], 0x8000000
jne 0x408619
sub eax, 0x28
sub edx, 1
jns 0x4085e8
cmp dword [ebx + 0x4c08], 0
je 0x408634
movss xmm0, dword [ebx + 0x4c18]
comiss xmm0, dword [0x441e40]
jbe 0x408634
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4c34]
minss xmm1, dword [0x441ecc]
jmp 0x408655
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x441f28]
movss xmm1, dword [ebx + 0x4c34]
subss xmm1, xmm0
maxss xmm1, dword [0x441e40]
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.00411c10
cmp byte [ebx + 0x3f1f], 0
jne 0x4086cc
movss xmm1, dword [ebx + 0x4c]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x4086cc
movsd xmm0, qword [ebx + 0x3f08]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x4086d1
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 0x4087a1
mov ebx, eax
nop dword [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 0x40878e
cmp byte [esi + 0x368], al
jne 0x40878e
comiss xmm0, dword [esi + 0x248]
jbe 0x40878e
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.00401010
mov ecx, dword [esi + 0x270]
call fcn.004235f0
lea ecx, [esi + 0x188]
call fcn.00401010
lea ecx, [esi + 0x1b4]
call fcn.00401010
lea ecx, [esi + 0x1c0]
call fcn.00401010
movss xmm0, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x4086f0
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4d20], ecx
jle 0x4088f4
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 0x4088db
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x4088db
mov esi, dword [ebx + 0x4d08]
mov edi, dword [0x4454a8]
add esi, edx
mov dword [ebp - 0x20], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x408880
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x40886f
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 0x408865
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.00401010
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x4088bc
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 0x4088a5
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 0x4087c0
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 0x40893e
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x408937
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x408937
lea ecx, [esi + 0x20]
call fcn.00425e90
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x408911
cmp byte [ebx + 0x3f1f], 0
je 0x4089ee
mov esi, dword [0x4454a8]
lea ecx, [esi + 0x49fc]
call fcn.00401010
mov edi, dword [esi + 0x4a10]
test edi, edi
je 0x4089e9
mov ecx, dword [0x4454a8]
mov dword [esi + 0x4a0c], 0
mov dword [esi + 0x4a08], 0
test ecx, ecx
je 0x4089d8
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 0x4089ce
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.0042ddf0
mov eax, dword [ebx + 0x4a44]
mov byte [ebx + 0x3f1f], 0
test eax, eax
je 0x408a53
cmp byte [eax + 0xaf], 0
jne 0x408a53
mov eax, dword [0x4454a8]
mov edx, dword [eax + 0x3f54]
sub edx, 1
js 0x408a47
mov eax, dword [eax + 0x3f5c]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x408a3f
cmp byte [ecx + 0xaf], 0
je 0x408a3f
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x408a49
sub esi, 4
sub edx, 1
jns 0x408a21
xor ecx, ecx
mov edx, 1
call fcn.0040fe10
mov ecx, dword [ebx + 0x3f70]
test ecx, ecx
jns 0x408a79
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.0041aed0
mov dword [ebx + 0x3f6c], 0
mov ecx, dword [ebx + 0x4a24]
test ecx, ecx
jns 0x408aa9
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.0041ad30
lea esi, [ebx + 0x49fc]
mov dword [ebx + 0x4a20], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x408ad8
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.0041a640
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x408aed
push 8
mov ecx, esi
call fcn.0041a640
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.0041a300
call fcn.00419a80
mov edx, dword [0x4454a8]
mov esi, edx
mov dword [esi + 0x3fcc], 0
mov eax, dword [esi + 0x5ec4]
inc eax
cmp dword [esi + 0x3f10], eax
jne 0x408c1d
mov edi, dword [esi + 0x3fd4]
test edi, edi
jne 0x408b42
mov edi, dword [esi + 0x3fe4]
cmp dword [esi + 0x5ecc], edi
je 0x408b95
lea eax, [esi + 0x5ed0]
mov dword [esi + 0x5ecc], edi
mov dword [esi + 0x5ec8], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x408b8f
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.0041b070
mov edx, dword [0x4454a8]
lea eax, [esi + 0x5ed0]
mov dword [eax], 0
test edi, edi
je 0x408c1d
mov eax, dword [esi + 0x5ec8]
test eax, eax
js 0x408be6
mov ecx, eax
cmp eax, dword [esi + 0x5ed0]
jge 0x408bf9
mov ebx, dword [esi + 0x5ed8]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x408bdf
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 [0x4454a8]
jle 0x408bf9
inc eax
mov dword [esi + 0x5ec8], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x408bf5
mov dword [esi + 0x3fcc], edi
jmp 0x408c1d
test ecx, ecx
js 0x408c1d
cmp ecx, dword [esi + 0x5ed0]
jge 0x408c1d
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 0x408ce1
mov ecx, dword [edx + 0x49c8]
mulss xmm1, dword [0x441f18]
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 [0x441e94]
lea edx, [esi + 0x3998]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x3994]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.004043d0
mov edx, dword [0x4454a8]
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 0x408ce1
mov eax, dword [edx + 0x49c8]
cmp eax, 0x35
je 0x408cd7
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 0x408d06
sub al, 1
mov byte [ebx + 0x5e85], al
jne 0x408d06
mov dword [ebx + 0x48e8], 0
mov byte [ebx + 0x5e86], 0
mov al, byte [ebx + 0x5e84]
test al, al
je 0x408d3f
sub al, 1
mov byte [ebx + 0x5e84], al
jne 0x408d3f
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.004196f0
mov eax, dword [ebx + 0x5e80]
add esp, 4
not eax
mov dword [ebx + 0x5e80], 0
and dword [ebx + 0x5e60], eax
mov eax, dword [0x4454a8]
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.0040cfd0
add esp, 4
cmp byte [ebx + 0x66], 0
je 0x408dbc
mov cl, byte [ebx + 0x5e8c]
cmp cl, 0xff
jne 0x408d96
xor edx, edx
jmp 0x408dbf
mov eax, dword [ebx + 0x3f10]
and eax, 0x80000003
jns 0x408da8
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 0x408dbf
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 0x408df7
nop dword [eax + eax]
cmp dword [esi + 4], 1
jne 0x408df0
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x408de0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret