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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [0x43b430]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5e14]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x407ade
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5e1c]
cmp dword [ecx + edi + 4], 7
jne 0x407ad3
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 + 0x5e14]
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 + 0x5e14]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x407a80
mov eax, dword [ebx + 0x5e14]
mov esi, dword [ebx + 0x5e1c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x407b0b
cmp dword [esi + 4], 0
jne 0x407b04
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x407af4
mov esi, dword [0x43b430]
cmp byte [esi + 0x4a], 0
je 0x407b21
test byte [esi + 0xc], 2
jne 0x407b21
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5ddc], 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 0x407bd8
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x407bd1
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00404050
mov edi, eax
add esp, 8
test edi, edi
je 0x407bd1
mov edx, dword [ebp - 4]
test edx, edx
je 0x407b70
mov ecx, edi
call fcn.00418240
mov ecx, dword [0x43b430]
test ecx, ecx
je 0x407bca
movsx eax, word [ecx + 0x5f04]
mov edx, dword [ecx + 0x3f10]
add eax, 0xbe1
mov dword [ebp - 0x1c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x407bc0
movsx eax, word [ecx + 0x5f04]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [ecx + 0x5f04], ax
cwde
add eax, 0xbe1
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5f00]
push edi
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5ddc], 1
movss xmm0, dword [esi + 0x5de0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x407c60
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5de0], xmm0
jb 0x407c60
mov edi, dword [esi + 0x20]
test edi, edi
je 0x407c4f
mov eax, dword [0x43b430]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5de0], 0
call fcn.00418460
mov edx, 0x4340ac
mov dword [ebp - 0x1c], eax
mov ecx, edi
call fcn.00403ed0
mov edi, eax
test edi, edi
je 0x407c56
push edi
push dword [ebp - 4]
push 1
push dword [ebp - 0x1c]
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 0x407c56
mov byte [esi + 0x96], 1
mov dword [esi + 0x5de0], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f10]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f1c], 1
mov word [ebx + 0x5d40], ax
mov dword [ebx + 0x3f84], eax
addsd xmm0, qword [ebx + 0x3f08]
movsd qword [ebx + 0x3f08], xmm0
mov ecx, dword [ebx + 0x5d54]
test ecx, ecx
jns 0x407cba
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 + 0x5d50]
call fcn.00419d10
mov dword [ebx + 0x5d50], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x6028]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x5f38]
addss xmm0, dword [ebx + 0x6030]
movss dword [ebx + 0x6030], xmm0
movss dword [ebx + eax*4 + 0x5f38], xmm1
mov eax, dword [ebx + 0x6028]
inc eax
movss xmm1, dword [ebx + 0x6030]
cdq
idiv ecx
mov eax, dword [ebx + 0x602c]
movss xmm0, dword [0x439188]
inc eax
cmp eax, ecx
mov dword [ebx + 0x6028], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x439070]
mov dword [ebx + 0x602c], ecx
jbe 0x407d50
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x4390fc]
divss xmm0, xmm1
movss dword [ebx + 0x9c], xmm0
mov ecx, dword [ebx + 0x3f38]
test ecx, ecx
jns 0x407d7e
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.0041a660
mov dword [ebx + 0x3f34], 0
mov cl, byte [ebx + 0x46]
call fcn.00411fa0
mov esi, dword [0x43b430]
mov eax, dword [esi + 0x4a4c]
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 + 0x4a4c]
mov eax, dword [esi + 0x4a44]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x407ead
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 0x407de0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.00407820
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x407ec8
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm0, dword [0x4390fc]
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 0x407f21
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x270]
mulss xmm0, dword [eax + 0x3d00]
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x407f24
mulss xmm0, dword [eax + 0x270]
jmp 0x407f24
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 + 0x4a4c]
mov eax, dword [ebx + 0x4a44]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x407f7d
nop dword [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x3c], 0
cmp ecx, edx
jne 0x407f70
cmp byte [ebx + 0x4c48], 0
je 0x407fb1
mov eax, dword [ebx + 0x4c60]
cmp eax, dword [ebx + 0x3fe4]
jne 0x407fb1
cmp dword [esi + 0x3fe4], eax
jne 0x407fa2
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x407fb1
mov byte [esi + 0x4010], 1
cmp dword [ebx + 0x3fd4], 0
jne 0x407fc6
mov dword [ebx + 0x3fd8], 0
jmp 0x407fd8
mov eax, dword [ebx + 0x3fd0]
test eax, eax
je 0x407fe2
cmp dword [ebx + 0x3fe4], eax
jne 0x407fe2
mov dword [ebx + 0x3fdc], 0
mov eax, dword [ebx + 0x3fd0]
test eax, eax
je 0x40801c
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x3fd8]
movss dword [ebx + 0x3fd8], xmm0
cmp dword [ebx + 0x3fe4], eax
je 0x40801c
addss xmm1, dword [ebx + 0x3fdc]
movss dword [ebx + 0x3fdc], xmm1
mov dword [ebx + 0x3fd4], eax
mov eax, dword [ebx + 0x3fe4]
mov dword [ebx + 0x3fd0], 0
mov word [ebx + 0x3fe0], 0
test eax, eax
je 0x408074
cmp dword [ebx + 0x3fe8], eax
je 0x408074
cmp dword [ebx + 0x400c], eax
jne 0x408074
test byte [ebx + 0x5e78], 1
je 0x408065
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.00418db0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00406950
mov esi, dword [0x43b430]
mov ecx, dword [ebx + 0x3fe4]
test ecx, ecx
je 0x408093
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 + 0x5ca0]
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 0x4080fd
cmp ecx, eax
je 0x4080fd
mov dword [ebx + 0x5ca0], 0
test ecx, ecx
jne 0x40811b
mov dword [ebx + 0x48dc], ecx
mov dword [ebx + 0x48d0], ecx
mov byte [ebx + 0x48d4], cl
mov dword [ebx + 0x48dc], ecx
jmp 0x408144
mov eax, dword [ebx + 0x48dc]
test eax, eax
je 0x408144
test al, 2
je 0x408144
mov eax, dword [ebx + 0x3fe4]
mov dword [esi + 0x40f8], eax
mov dword [esi + 0x40f4], eax
mov word [esi + 0x40fc], 0
mov ecx, dword [ebx + 0x4d84]
test ecx, ecx
je 0x408167
movss xmm0, dword [ebx + 0x4da0]
comiss xmm0, dword [ebx + 0x3ce4]
jb 0x408171
mov dword [ebx + 0x4d94], ecx
jmp 0x408171
mov dword [ebx + 0x4d94], 0
mov eax, dword [ebx + 0x3f98]
test eax, eax
je 0x408197
movss xmm0, dword [ebx + 0x4da0]
comiss xmm0, dword [ebx + 0x3ce4]
jb 0x4081a1
mov eax, dword [eax + 8]
mov dword [ebx + 0x4d98], eax
jmp 0x4081a1
mov dword [ebx + 0x4d98], 0
movss xmm0, dword [ebx + 0x4d8c]
mov dword [ebx + 0x4d88], ecx
test ecx, ecx
je 0x4081cc
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4d84], 0
movss dword [ebx + 0x4d8c], xmm0
jmp 0x40820c
comiss xmm0, dword [0x439070]
jbe 0x408216
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x4390a8]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4d90]
addss xmm1, xmm1
movss dword [ebx + 0x4d90], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x408216
mov dword [ebx + 0x4d8c], 0
mov dword [ebx + 0x4d90], 0
mov eax, dword [ebx + 0x4cbc]
mov dword [ebx + 0x4cc0], eax
mov dword [ebx + 0x4cbc], 0
mov dword [ebx + 0x4cb8], 0x7f7fffff
mov word [ebx + 0x4c49], 0
mov dword [ebx + 0x4cc8], 0
call fcn.00410cd0
call fcn.00414de0
call fcn.00411210
call fcn.00407570
mov esi, dword [0x43b430]
mov ecx, dword [esi + 0x3fa0]
test ecx, ecx
je 0x408315
mov eax, dword [esi + 0x3fe4]
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x40828c
mov byte [esi + 0x4010], 1
cmp byte [esi + 0xc4], 0
mov edi, dword [ecx + 0x314]
je 0x408309
lea eax, [esi + 0xbc]
mov ecx, eax
test eax, eax
jne 0x4082ad
lea ecx, [esi + 0xbc]
movss xmm0, dword [ecx]
movss xmm1, dword [0x4391a0]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x408309
comiss xmm2, xmm1
jb 0x408309
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x3ffc]
push 1
mov ecx, edi
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x4000]
movss dword [ebp - 0x24], xmm0
call fcn.0040fd10
mov ecx, dword [esi + 0x3fa0]
add esp, 4
xor edx, edx
call fcn.0040f8b0
jmp 0x408351
mov dword [esi + 0x3fa0], 0
jmp 0x408348
mov ecx, dword [esi + 0x4004]
test ecx, ecx
je 0x408351
mov eax, dword [esi + 0x3fe4]
cmp dword [ecx + 0x7c], eax
jne 0x408351
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x40833f
mov byte [esi + 0x4010], 1
cmp byte [esi + 0xc4], 0
jne 0x408351
xor edx, edx
xor ecx, ecx
call fcn.00406950
mov eax, dword [0x43b430]
movss xmm2, dword [0x439130]
mov edx, dword [eax + 0x4a20]
sub edx, 1
js 0x40838f
mov eax, dword [eax + 0x4a28]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x408387
test dword [ecx + 0xc], 0x8000000
jne 0x4083a9
sub eax, 0x28
sub edx, 1
jns 0x408378
cmp dword [ebx + 0x4c18], 0
je 0x4083c4
movss xmm0, dword [ebx + 0x4c28]
comiss xmm0, dword [0x439070]
jbe 0x4083c4
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4c44]
minss xmm1, dword [0x4390fc]
jmp 0x4083e5
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x43913c]
movss xmm1, dword [ebx + 0x4c44]
subss xmm1, xmm0
maxss xmm1, dword [0x439070]
movss dword [ebx + 0x4c44], xmm1
movups xmm0, xmmword [ebx + 0x5dbc]
mov dword [ebx + 0x4d9c], 0
mov dword [ebx + 0x603c], 0xffffffff
mov dword [ebx + 0x6038], 0xffffffff
mov dword [ebx + 0x6034], 0xffffffff
movups xmmword [ebx + 0x5dcc], xmm0
mov byte [ebx + 0x5dbc], 0
call fcn.004115a0
cmp byte [ebx + 0x3f1f], 0
jne 0x40845c
movss xmm1, dword [ebx + 0x4c]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40845c
movsd xmm0, qword [ebx + 0x3f08]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x408461
movss xmm0, dword [ebp - 4]
mov edi, dword [ebx + 0x3f50]
mov eax, dword [ebx + 0x3f48]
lea eax, [edi + eax*4]
mov dword [ebp - 0x1c], eax
cmp edi, eax
je 0x408531
mov ebx, eax
nop dword [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 0x40851e
cmp byte [esi + 0x370], al
jne 0x40851e
comiss xmm0, dword [esi + 0x250]
jbe 0x40851e
mov ecx, dword [esi + 0x278]
mov byte [esi + 0x370], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x368], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xf4]
mov dword [esi + 0x36c], eax
call fcn.00401010
mov ecx, dword [esi + 0x278]
call fcn.00422c80
lea ecx, [esi + 0x190]
call fcn.00401010
lea ecx, [esi + 0x1bc]
call fcn.00401010
lea ecx, [esi + 0x1c8]
call fcn.00401010
movss xmm0, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x408480
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4d30], ecx
jle 0x40868d
xor edi, edi
xorps xmm1, xmm1
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
nop
mov eax, dword [ebx + 0x4d38]
movss xmm0, dword [edx + eax]
comiss xmm0, xmm1
jb 0x40866e
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x40866e
mov esi, dword [ebx + 0x4d18]
add esi, edi
mov edi, dword [0x43b430]
mov dword [ebp - 0x24], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x408610
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x4085ff
movsx eax, word [edi + 0x5f04]
mov edx, dword [edi + 0x3f10]
add eax, 0xbe1
mov dword [ebp - 0x20], edx
cmp dword [edi + eax*8], edx
lea eax, [edi + eax*8]
je 0x4085f5
movsx eax, word [edi + 0x5f04]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [edi + 0x5f04], ax
cwde
add eax, 0xbe1
lea eax, [edi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x5f00]
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 0x40864c
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 0x408635
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
sub esi, dword [edi + 0x4d18]
xorps xmm1, xmm1
mov eax, dword [edi + 0x4d38]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
inc ecx
add edi, 0x200
add edx, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
cmp ecx, dword [ebx + 0x4d30]
jl 0x408550
mov eax, dword [ebx + 0x4d04]
mov ecx, eax
mov esi, dword [ebx + 0x4d0c]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x4086dd
xorps xmm1, xmm1
nop word [eax + eax]
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x4086d6
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x4086d6
lea ecx, [esi + 0x20]
call fcn.00425560
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x4086b0
cmp byte [ebx + 0x3f1f], 0
je 0x408789
mov esi, dword [0x43b430]
lea ecx, [esi + 0x4a08]
call fcn.00401010
mov edi, dword [esi + 0x4a1c]
test edi, edi
je 0x408784
mov ecx, dword [0x43b430]
mov dword [esi + 0x4a18], 0
mov dword [esi + 0x4a14], 0
test ecx, ecx
je 0x408773
movsx eax, word [ecx + 0x5f04]
mov edx, dword [ecx + 0x3f10]
add eax, 0xbe1
mov dword [ebp - 0x24], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x408769
movsx eax, word [ecx + 0x5f04]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x5f04], ax
cwde
add eax, 0xbe1
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5f00]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4a1c], 0
call fcn.0042da40
mov eax, dword [ebx + 0x4a50]
mov byte [ebx + 0x3f1f], 0
test eax, eax
je 0x4087f2
cmp byte [eax + 0xbb], 0
jne 0x4087f2
mov eax, dword [0x43b430]
mov edx, dword [eax + 0x3f54]
sub edx, 1
js 0x4087e6
mov eax, dword [eax + 0x3f5c]
lea esi, [eax + edx*4]
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x4087de
cmp byte [ecx + 0xbb], 0
je 0x4087de
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x4087e8
sub esi, 4
sub edx, 1
jns 0x4087c0
xor ecx, ecx
mov edx, 1
call fcn.0040f8b0
mov ecx, dword [ebx + 0x3f70]
test ecx, ecx
jns 0x408818
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.0041a5a0
mov dword [ebx + 0x3f6c], 0
mov ecx, dword [ebx + 0x4a30]
test ecx, ecx
jns 0x408848
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 + 0x4a2c]
call fcn.0041a400
lea esi, [ebx + 0x4a08]
mov dword [ebx + 0x4a2c], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x408877
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.00419d10
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40888c
push 8
mov ecx, esi
call fcn.00419d10
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x4a14]
inc dword [esi]
call fcn.004199e0
call fcn.00419140
mov edx, dword [0x43b430]
mov esi, edx
mov dword [esi + 0x3fcc], 0
mov eax, dword [esi + 0x5edc]
inc eax
cmp dword [esi + 0x3f10], eax
jne 0x4089bb
mov edi, dword [esi + 0x3fd4]
test edi, edi
jne 0x4088e0
mov edi, dword [esi + 0x3fe4]
cmp dword [esi + 0x5ee4], edi
je 0x408933
lea eax, [esi + 0x5ee8]
mov dword [esi + 0x5ee4], edi
mov dword [esi + 0x5ee0], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40892d
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 + 0x5ee8]
call fcn.0041a740
mov edx, dword [0x43b430]
lea eax, [esi + 0x5ee8]
mov dword [eax], 0
test edi, edi
je 0x4089bb
mov eax, dword [esi + 0x5ee0]
test eax, eax
js 0x408984
mov ecx, eax
cmp eax, dword [esi + 0x5ee8]
jge 0x408997
mov ebx, dword [esi + 0x5ef0]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x40897d
mov edx, dword [esi + 0x5ef0]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edx, dword [0x43b430]
jle 0x408997
inc eax
mov dword [esi + 0x5ee0], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x408993
mov dword [esi + 0x3fcc], edi
jmp 0x4089bb
test ecx, ecx
js 0x4089bb
cmp ecx, dword [esi + 0x5ee8]
jge 0x4089bb
mov eax, dword [esi + 0x5ef0]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3fcc], eax
mov eax, dword [esi + 0x5ef0]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edx + 0x5eac]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x408a7f
mov ecx, dword [edx + 0x49d4]
mulss xmm1, dword [0x439130]
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 [0x4390c4]
lea edx, [esi + 0x3998]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x3994]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.004042f0
mov edx, dword [0x43b430]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x49d4]
add eax, 0x39a
add eax, eax
mov dword [edx + eax*8], 0x3f800000
movss xmm0, dword [edx + 0x5eac]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5eac], xmm0
jb 0x408a7f
mov eax, dword [edx + 0x49d4]
cmp eax, 0x35
je 0x408a75
movups xmm0, xmmword [edx + 0x5eb0]
add eax, eax
movups xmmword [edx + eax*8 + 0x3994], xmm0
mov dword [edx + 0x49d4], 0x35
mov al, byte [ebx + 0x5e9d]
test al, al
je 0x408aa4
sub al, 1
mov byte [ebx + 0x5e9d], al
jne 0x408aa4
mov dword [ebx + 0x48e8], 0
mov byte [ebx + 0x5e9e], 0
mov al, byte [ebx + 0x5e9c]
test al, al
je 0x408add
sub al, 1
mov byte [ebx + 0x5e9c], al
jne 0x408add
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.00418db0
mov eax, dword [ebx + 0x5e98]
add esp, 4
not eax
mov dword [ebx + 0x5e98], 0
and dword [ebx + 0x5e78], eax
mov eax, dword [0x43b430]
xor edx, edx
mov byte [ebx + 0x3f1d], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x4968], 2
mov dword [eax + 0x4988], 0x43c80000
mov dword [eax + 0x498c], 0x43c80000
mov dword [eax + 0x4970], 4
call fcn.0040cc20
add esp, 4
cmp byte [ebx + 0x66], 0
je 0x408b5a
mov cl, byte [ebx + 0x5ea4]
cmp cl, 0xff
jne 0x408b34
xor edx, edx
jmp 0x408b5d
mov eax, dword [ebx + 0x3f10]
and eax, 0x80000003
jns 0x408b46
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 0x408b5d
or dl, 0xff
mov byte [ebx + 0x5ea4], dl
mov eax, dword [ebx + 0x5e14]
mov esi, dword [ebx + 0x5e1c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x408b97
nop dword [eax]
cmp dword [esi + 4], 1
jne 0x408b90
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x408b80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret