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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [0x466af0]
mov ebx, edi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x23d0]
sub eax, 1
mov dword [esp + 0x18], eax
js 0x407c76
lea edi, [eax + eax*4]
shl edi, 2
nop dword [eax]
mov ecx, dword [ebx + 0x23d8]
cmp dword [ecx + edi + 4], 7
jne 0x407c64
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 + 0x23d0]
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 [esp + 0x24]
add esp, 0xc
dec dword [ebx + 0x23d0]
dec eax
sub edi, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jns 0x407c10
mov edi, dword [0x466af0]
mov eax, dword [ebx + 0x23d0]
mov esi, dword [ebx + 0x23d8]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [esp + 0x20], eax
cmp esi, eax
je 0x407cb1
cmp dword [esi + 4], 0
jne 0x407ca4
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
mov eax, dword [esp + 0x28]
add esp, 8
add esi, 0x14
cmp esi, eax
jne 0x407c90
mov edi, dword [0x466af0]
mov eax, dword [edi + 8]
test al, 4
je 0x407cc2
and eax, 0xfffffffb
mov byte [edi + 0x45], 1
mov dword [edi + 8], eax
test al, 8
je 0x407cd0
and eax, 0xfffffff7
mov byte [edi + 0x46], 0
mov dword [edi + 8], eax
cmp dword [edi + 0xb58], 0
je 0x407cf4
mov eax, dword [edi + 0xb68]
test eax, eax
je 0x407cea
cmp eax, 0x41ad20
jne 0x407cf4
mov dword [edi + 0xb68], 0x412fd0
cmp dword [edi + 0xb5c], 0
je 0x407d18
mov eax, dword [edi + 0xb6c]
test eax, eax
je 0x407d0e
cmp eax, 0x41ae00
jne 0x407d18
mov dword [edi + 0xb6c], 0x412ff0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, edi
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], eax
cmp byte [esi + 0x2398], 0
jne 0x407de1
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x407dda
push ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call fcn.00402810
mov edi, eax
add esp, 8
test edi, edi
je 0x407dd4
mov edx, dword [esp + 0xc]
test edx, edx
je 0x407d6e
mov ecx, edi
call fcn.0041a3f0
mov ecx, dword [0x466af0]
test ecx, ecx
je 0x407dcc
movsx eax, word [ecx + 0x2508]
mov edx, dword [ecx + 0x1230]
mov dword [esp + 0x20], edx
lea eax, [eax*8 + 0x250c]
add eax, ecx
cmp dword [eax], edx
je 0x407dc2
movsx eax, word [ecx + 0x2508]
inc eax
cdq
idiv dword [esp + 0x14]
movzx eax, dx
mov edx, dword [esp + 0x20]
mov word [ecx + 0x2508], ax
cwde
lea eax, [eax*8 + 0x250c]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x2504]
push edi
call dword [esp + 0x1c]
add esp, 4
mov edi, dword [0x466af0]
mov byte [esi + 0x2398], 1
movss xmm0, dword [esi + 0x239c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x407e6f
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x239c], xmm0
jb 0x407e6f
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], eax
test eax, eax
je 0x407e5e
lea ecx, [esp + 0xc]
mov dword [edi + 0x239c], 0
mov dword [esp + 0xc], 0
call fcn.0041a610
mov ecx, dword [esp + 0x20]
mov edx, 0x45aa94
mov dword [esp + 0x1c], eax
call fcn.00402680
mov edi, eax
test edi, edi
je 0x407e65
push edi
push dword [esp + 0x10]
push 1
push dword [esp + 0x28]
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 0x407e65
mov byte [esi + 0x94], 1
mov dword [esi + 0x239c], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x1230]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x123c], 1
mov word [ebx + 0x22fa], ax
mov dword [ebx + 0x12b4], eax
addsd xmm0, qword [ebx + 0x1228]
movsd qword [ebx + 0x1228], xmm0
mov ecx, dword [ebx + 0x2310]
test ecx, ecx
jns 0x407ec9
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 + 0x230c]
call fcn.0041c040
mov dword [ebx + 0x230c], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x262c]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x253c]
addss xmm0, dword [ebx + 0x2634]
movss dword [ebx + 0x2634], xmm0
movss dword [ebx + eax*4 + 0x253c], xmm1
mov eax, dword [ebx + 0x262c]
inc eax
movss xmm1, dword [ebx + 0x2634]
cdq
idiv ecx
mov eax, dword [ebx + 0x2630]
movss xmm0, dword [0x460700]
inc eax
cmp eax, ecx
mov dword [ebx + 0x262c], edx
movss dword [esp + 0xc], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x4605ac]
mov dword [ebx + 0x2630], ecx
jbe 0x407f60
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x460644]
divss xmm0, xmm1
movss dword [ebx + 0x98], xmm0
mov ecx, dword [ebx + 0x1268]
test ecx, ecx
jns 0x407f8e
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 + 0x1264]
call fcn.0041c850
mov dword [ebx + 0x1264], 0
mov cl, byte [ebx + 0x4d]
call fcn.00412660
mov esi, dword [0x466af0]
mov eax, dword [esi + 0x1d94]
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 + 0x1d94]
mov eax, dword [esi + 0x1d8c]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x4080be
mov ebx, eax
nop dword [eax + eax]
mov edx, dword [edi]
add edi, 4
mov eax, dword [edx + 0x9c]
mov ecx, dword [edx + 0xa0]
movss xmm0, dword [edx + 0xc]
mov dword [edx + 0x8c], eax
mov eax, dword [edx + 0xa4]
mov dword [edx + 0x90], ecx
mov ecx, dword [edx + 0xa8]
mov dword [edx + 0x94], eax
mov dword [edx + 0x98], ecx
mov dword [edx + 0xa4], 0
mov dword [edx + 0xa8], 0
mov dword [edx + 0x9c], 0
mov dword [edx + 0xa0], 0
movss xmm2, dword [edx + 0x8c]
movaps xmm1, xmm2
addss xmm0, dword [edx + 0x90]
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
subss xmm0, dword [edx + 0x94]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x90]
subss xmm0, dword [edx + 0x98]
movss dword [edx + 0x20], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x24], xmm1
cmp edi, ebx
jne 0x407ff0
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x18], 1
call fcn.004079b0
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x4080d9
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x4c]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x460644]
mov ecx, dword [esi + 0x12c4]
mov dword [esi + 0x1010], edi
mulss xmm1, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x4c]
maxss xmm0, xmm1
movss dword [esi + 0x1018], xmm0
test ecx, ecx
je 0x408132
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x1018]
mov eax, dword [ecx + 0x328]
test eax, eax
je 0x408135
mulss xmm1, dword [eax + 0x270]
jmp 0x408135
xorps xmm1, xmm1
movss dword [esi + 0x1014], xmm1
movaps xmm0, xmm1
divss xmm0, dword [edi + 0x10]
movss dword [esi + 0x101c], xmm0
mov edx, dword [edi + 0x30]
mov eax, dword [edx + 0x3c]
mov ecx, dword [edx + 0x40]
mov dword [esi + 0x1024], eax
lea eax, [edx + 0x68]
mov dword [esi + 0x1028], ecx
mov dword [esi + 0x1224], eax
mov dword [esi + 0x102c], edi
movss dword [esi + 0x1030], xmm1
movss dword [esi + 0x1034], xmm0
mov ecx, dword [ebx + 0x1d94]
mov eax, dword [ebx + 0x1d8c]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x4081a1
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x408194
cmp byte [ebx + 0x1f9c], 0
je 0x4081d5
mov eax, dword [ebx + 0x1fb4]
cmp eax, dword [ebx + 0x1320]
jne 0x4081d5
cmp dword [esi + 0x1320], eax
jne 0x4081c6
mov dword [esi + 0x1324], eax
cmp dword [esi + 0x1348], eax
jne 0x4081d5
mov byte [esi + 0x134c], 1
mov al, byte [ebx + 0x75]
test al, al
je 0x4081e5
cmp byte [ebx + 0xd4], 0
jne 0x4081f3
mov dword [ebx + 0x1300], 0
test al, al
je 0x408208
cmp dword [ebx + 0x1310], 1
jle 0x408208
mov eax, dword [ebx + 0x130c]
mov dword [ebx + 0x1300], eax
cmp dword [ebx + 0x130c], 0
jne 0x40821d
mov dword [ebx + 0x1314], 0
jmp 0x40822f
mov eax, dword [ebx + 0x1308]
test eax, eax
je 0x408239
cmp dword [ebx + 0x1320], eax
jne 0x408239
mov dword [ebx + 0x1318], 0
mov eax, dword [ebx + 0x1308]
test eax, eax
je 0x408273
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x1314]
movss dword [ebx + 0x1314], xmm0
cmp dword [ebx + 0x1320], eax
je 0x408273
addss xmm1, dword [ebx + 0x1318]
movss dword [ebx + 0x1318], xmm1
mov dword [ebx + 0x130c], eax
mov eax, dword [ebx + 0x1320]
mov dword [ebx + 0x1310], 0
mov dword [ebx + 0x1308], 0
mov word [ebx + 0x131c], 0
test eax, eax
je 0x4082cf
cmp dword [ebx + 0x1324], eax
je 0x4082cf
cmp dword [ebx + 0x1348], eax
jne 0x4082cf
test byte [ebx + 0x2478], 2
je 0x4082c6
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041af90
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00406910
mov ecx, dword [ebx + 0x1320]
test ecx, ecx
je 0x4082ee
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x1328]
movss dword [ebx + 0x1328], xmm0
mov eax, dword [ebx + 0x1340]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x1358]
mov dword [ebx + 0x1350], eax
mov al, byte [ebx + 0x1330]
mov byte [ebx + 0x134d], al
mov eax, dword [ebx + 0x225c]
movss dword [ebx + 0x1358], xmm0
mov dword [ebx + 0x1348], ecx
mov dword [ebx + 0x1324], 0
mov byte [ebx + 0x1331], 0
mov byte [ebx + 0x134c], 0
mov byte [ebx + 0x132c], 0
test eax, eax
je 0x408358
cmp ecx, eax
je 0x408358
mov dword [ebx + 0x225c], 0
test ecx, ecx
jne 0x408368
mov dword [ebx + 0x1c10], ecx
mov byte [ebx + 0x1c14], cl
mov ecx, dword [ebx + 0x216c]
test ecx, ecx
je 0x40838b
movss xmm0, dword [ebx + 0x2188]
comiss xmm0, dword [ebx + 0xffc]
jb 0x408395
mov dword [ebx + 0x217c], ecx
jmp 0x408395
mov dword [ebx + 0x217c], 0
mov eax, dword [ebx + 0x12c8]
test eax, eax
je 0x4083bb
movss xmm0, dword [ebx + 0x2188]
comiss xmm0, dword [ebx + 0xffc]
jb 0x4083c5
mov eax, dword [eax + 8]
mov dword [ebx + 0x2180], eax
jmp 0x4083c5
mov dword [ebx + 0x2180], 0
movss xmm0, dword [ebx + 0x2174]
mov dword [ebx + 0x2170], ecx
test ecx, ecx
je 0x4083f0
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x216c], 0
movss dword [ebx + 0x2174], xmm0
jmp 0x408430
comiss xmm0, dword [0x4605ac]
jbe 0x40843a
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x4605f0]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x2178]
addss xmm1, xmm1
movss dword [ebx + 0x2178], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x40843a
mov dword [ebx + 0x2174], 0
mov dword [ebx + 0x2178], 0
mov eax, dword [ebx + 0x2010]
mov dword [ebx + 0x2014], eax
mov dword [ebx + 0x2010], 0
mov dword [ebx + 0x200c], 0x7f7fffff
mov word [ebx + 0x1f9d], 0
mov dword [ebx + 0x201c], 0
mov dword [ebx + 0x22fc], 0
call fcn.00411640
call fcn.00416e40
call fcn.004118d0
cmp byte [ebx + 0x123f], 0
jne 0x4084b4
movss xmm1, dword [ebx + 0x58]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x4084b4
movsd xmm0, qword [ebx + 0x1228]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [esp + 0xc], xmm0
jmp 0x4084ba
movss xmm0, dword [esp + 0xc]
mov edi, dword [ebx + 0x1280]
mov eax, dword [ebx + 0x1278]
lea eax, [edi + eax*4]
mov dword [esp + 0x20], eax
cmp edi, eax
je 0x408593
mov ebx, eax
nop word [eax + eax]
mov esi, dword [edi]
mov ax, word [esi + 0xc8]
mov cl, byte [esi + 0xba]
mov word [esi + 0xca], ax
xor eax, eax
mov byte [esi + 0xbb], cl
mov byte [esi + 0xba], 0
mov byte [esi + 0xbc], 0
mov word [esi + 0xc8], ax
test cl, cl
jne 0x40857e
cmp byte [esi + 0x38c], al
jne 0x40857e
comiss xmm0, dword [esi + 0x250]
jbe 0x40857e
mov ecx, dword [esi + 0x278]
mov byte [esi + 0x38c], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x384], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xf4]
mov dword [esi + 0x388], eax
call fcn.00401040
mov ecx, dword [esi + 0x278]
call fcn.00424a60
lea ecx, [esi + 0x190]
call fcn.00401040
lea ecx, [esi + 0x1bc]
call fcn.00401040
lea ecx, [esi + 0x1c8]
call fcn.00401040
movss xmm0, dword [esp + 0xc]
add edi, 4
cmp edi, ebx
jne 0x4084e0
mov ebx, dword [esp + 0x10]
call fcn.004076f0
mov esi, dword [0x466af0]
mov ecx, dword [esi + 0x12d4]
test ecx, ecx
je 0x408653
mov eax, dword [esi + 0x1320]
mov dword [esi + 0x1324], eax
cmp dword [esi + 0x1348], eax
jne 0x4085c7
mov byte [esi + 0x134c], 1
cmp byte [esi + 0xc0], 0
mov edi, dword [ecx + 0x330]
je 0x408647
lea eax, [esi + 0xb8]
mov ecx, eax
test eax, eax
jne 0x4085e8
lea ecx, [esi + 0xb8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x460728]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x408647
comiss xmm2, xmm1
jb 0x408647
movss xmm0, dword [eax]
lea edx, [esp + 0x28]
subss xmm0, dword [esi + 0x1338]
push 1
mov ecx, edi
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x133c]
movss dword [esp + 0x30], xmm0
call fcn.004106b0
mov ecx, dword [esi + 0x12d4]
add esp, 4
xor edx, edx
call fcn.004100c0
jmp 0x40868f
mov dword [esi + 0x12d4], 0
jmp 0x408686
mov ecx, dword [esi + 0x1340]
test ecx, ecx
je 0x40868f
mov eax, dword [esi + 0x1320]
cmp dword [ecx + 0x7c], eax
jne 0x40868f
mov dword [esi + 0x1324], eax
cmp dword [esi + 0x1348], eax
jne 0x40867d
mov byte [esi + 0x134c], 1
cmp byte [esi + 0xc0], 0
jne 0x40868f
xor edx, edx
xor ecx, ecx
call fcn.00406910
mov eax, dword [0x466af0]
movss xmm2, dword [0x460694]
mov edx, dword [eax + 0x1d68]
sub edx, 1
js 0x4086cd
mov eax, dword [eax + 0x1d70]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x4086c5
test dword [ecx + 0xc], 0x8000000
jne 0x4086e7
sub eax, 0x28
sub edx, 1
jns 0x4086b6
cmp dword [ebx + 0x1f6c], 0
je 0x408702
movss xmm0, dword [ebx + 0x1f7c]
comiss xmm0, dword [0x4605ac]
jbe 0x408702
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x1f98]
minss xmm1, dword [0x460644]
jmp 0x408723
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x4606a0]
movss xmm1, dword [ebx + 0x1f98]
subss xmm1, xmm0
maxss xmm1, dword [0x4605ac]
movss dword [ebx + 0x1f98], xmm1
movups xmm0, xmmword [ebx + 0x2378]
mov dword [ebx + 0x2184], 0
mov dword [ebx + 0x2640], 0xffffffff
mov dword [ebx + 0x263c], 0xffffffff
mov dword [ebx + 0x2638], 0xffffffff
movups xmmword [ebx + 0x2388], xmm0
mov byte [ebx + 0x2378], 0
call fcn.00411c60
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x2084], ecx
jle 0x4088d5
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x20], edx
nop dword [eax + eax]
mov eax, dword [ebx + 0x208c]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x4088ba
movss xmm2, dword [esp + 0xc]
comiss xmm2, xmm0
jbe 0x4088ba
mov esi, dword [ebx + 0x206c]
mov edi, dword [0x466af0]
add esi, edx
mov dword [esp + 0x28], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x408857
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x408845
movsx eax, word [edi + 0x2508]
mov edx, dword [edi + 0x1230]
mov dword [esp + 0x24], edx
lea eax, [eax*8 + 0x250c]
add eax, edi
cmp dword [eax], edx
je 0x40883b
movsx eax, word [edi + 0x2508]
inc eax
cdq
idiv dword [esp + 0x14]
movzx eax, dx
mov edx, dword [esp + 0x24]
mov word [edi + 0x2508], ax
cwde
lea eax, [eax*8 + 0x250c]
add eax, edi
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x2504]
push ecx
call dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x1a4], 0
lea ecx, [esi + 0x15c]
mov byte [esi + 0x1ed], 1
call fcn.00401040
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x408899
xor ecx, ecx
or edi, 0xffffffff
nop dword [eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x74]
inc edx
mov word [ecx + eax - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x408880
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
sub esi, dword [edi + 0x206c]
xorps xmm1, xmm1
mov eax, dword [edi + 0x208c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
inc ecx
add edx, 0x200
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp ecx, dword [ebx + 0x2084]
jl 0x408790
mov eax, dword [ebx + 0x2058]
mov ecx, eax
mov esi, dword [ebx + 0x2060]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x408920
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x408919
movss xmm2, dword [esp + 0xc]
comiss xmm2, xmm0
jbe 0x408919
lea ecx, [esi + 0x20]
call fcn.00427520
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x4088f2
cmp byte [ebx + 0x123f], 0
je 0x4089ea
mov esi, dword [0x466af0]
lea ecx, [esi + 0x1d50]
call fcn.00401040
mov edi, dword [esi + 0x1d64]
test edi, edi
je 0x4089d0
mov ecx, dword [0x466af0]
mov dword [esi + 0x1d60], 0
mov dword [esi + 0x1d5c], 0
test ecx, ecx
je 0x4089be
movsx eax, word [ecx + 0x2508]
mov edx, dword [ecx + 0x1230]
mov dword [esp + 0x28], edx
lea eax, [eax*8 + 0x250c]
add eax, ecx
cmp dword [eax], edx
je 0x4089b4
movsx eax, word [ecx + 0x2508]
inc eax
cdq
idiv dword [esp + 0x14]
movzx eax, dx
mov edx, dword [esp + 0x28]
mov word [ecx + 0x2508], ax
cwde
lea eax, [eax*8 + 0x250c]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x2504]
push edi
call dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x1d64], 0
lea ecx, [esi + 0x2140]
mov dword [esi + 0x213c], 0
call fcn.0041b900
call fcn.00433850
mov eax, dword [ebx + 0x1da0]
mov byte [ebx + 0x123f], 0
test eax, eax
je 0x408a52
cmp byte [eax + 0xbb], 0
jne 0x408a52
mov eax, dword [0x466af0]
mov edx, dword [eax + 0x1284]
sub edx, 1
js 0x408a46
mov eax, dword [eax + 0x128c]
lea esi, [eax + edx*4]
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x408a3e
cmp byte [ecx + 0xbb], 0
je 0x408a3e
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x408a48
sub esi, 4
sub edx, 1
jns 0x408a20
xor ecx, ecx
mov edx, 1
call fcn.004100c0
push 0
lea ecx, [ebx + 0x129c]
call fcn.0041bf40
mov ecx, dword [ebx + 0x1d78]
test ecx, ecx
jns 0x408a85
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 + 0x1d74]
call fcn.0041c6b0
lea esi, [ebx + 0x1d50]
mov dword [ebx + 0x1d74], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x408ab4
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.0041c040
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x408ac9
push 8
mov ecx, esi
call fcn.0041c040
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0x10
inc dword [esi]
mov ecx, dword [esi]
mov eax, dword [ebx + 0x1d58]
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebx + 0x1d5c]
mov dword [ebx + 0x1c20], eax
call fcn.0041bc00
call fcn.0041b340
mov edx, dword [0x466af0]
mov esi, edx
mov dword [esi + 0x1304], 0
mov eax, dword [esi + 0x24e0]
inc eax
cmp dword [esi + 0x1230], eax
jne 0x408c0d
mov edi, dword [esi + 0x130c]
test edi, edi
jne 0x408b30
mov edi, dword [esi + 0x1320]
cmp dword [esi + 0x24e8], edi
je 0x408b83
lea eax, [esi + 0x24ec]
mov dword [esi + 0x24e8], edi
mov dword [esi + 0x24e4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x408b7d
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 + 0x24ec]
call fcn.0041c930
mov edx, dword [0x466af0]
lea eax, [esi + 0x24ec]
mov dword [eax], 0
test edi, edi
je 0x408c0d
mov eax, dword [esi + 0x24e4]
test eax, eax
js 0x408bd6
mov ecx, eax
cmp eax, dword [esi + 0x24ec]
jge 0x408be9
mov ebx, dword [esi + 0x24f4]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [esp + 0x10]
jne 0x408bcf
mov edx, dword [esi + 0x24f4]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [esp + 0x10]
mov edx, dword [0x466af0]
jle 0x408be9
inc eax
mov dword [esi + 0x24e4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x408be5
mov dword [esi + 0x1304], edi
jmp 0x408c0d
test ecx, ecx
js 0x408c0d
cmp ecx, dword [esi + 0x24ec]
jge 0x408c0d
mov eax, dword [esi + 0x24f4]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x1304], eax
mov eax, dword [esi + 0x24f4]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edx + 0x24b0]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x408cd0
mov ecx, dword [edx + 0x1d1c]
mulss xmm1, dword [0x460694]
shl ecx, 4
cvtps2pd xmm0, xmm1
lea eax, [ecx + 0xc84]
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 [0x46060c]
lea edx, [esi + 0xc80]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0xc7c]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00402b60
mov edx, dword [0x466af0]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x1d1c]
add eax, eax
mov dword [edx + eax*8 + 0xc88], 0x3f800000
movss xmm0, dword [edx + 0x24b0]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x24b0], xmm0
jb 0x408cd0
mov eax, dword [edx + 0x1d1c]
cmp eax, 0x38
je 0x408cc6
movups xmm0, xmmword [edx + 0x24b4]
add eax, eax
movups xmmword [edx + eax*8 + 0xc7c], xmm0
mov dword [edx + 0x1d1c], 0x38
mov al, byte [ebx + 0x24a1]
test al, al
je 0x408cf5
sub al, 1
mov byte [ebx + 0x24a1], al
jne 0x408cf5
mov dword [ebx + 0x1c24], 0
mov byte [ebx + 0x24a2], 0
mov al, byte [ebx + 0x24a0]
test al, al
je 0x408d2e
sub al, 1
mov byte [ebx + 0x24a0], al
jne 0x408d2e
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.0041af90
mov eax, dword [ebx + 0x249c]
add esp, 4
not eax
mov dword [ebx + 0x249c], 0
and dword [ebx + 0x2478], eax
mov eax, dword [0x466af0]
xor edx, edx
mov byte [ebx + 0x123d], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x1cb0], 2
mov dword [eax + 0x1cd0], 0x43c80000
mov dword [eax + 0x1cd4], 0x43c80000
mov dword [eax + 0x1cb8], 4
call fcn.0040d4c0
add esp, 4
mov dword [ebx + 0x2454], 0
lea ecx, [ebx + 0x2458]
call fcn.00413010
cmp byte [ebx + 0x77], 0
je 0x408dc0
mov cl, byte [ebx + 0x24a8]
cmp cl, 0xff
jne 0x408d9a
xor edx, edx
jmp 0x408dc3
mov eax, dword [ebx + 0x1230]
and eax, 0x80000003
jns 0x408dac
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 0x408dc3
or dl, 0xff
mov byte [ebx + 0x24a8], dl
mov eax, dword [ebx + 0x23d0]
mov esi, dword [ebx + 0x23d8]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x408df7
nop
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