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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x45f4d8]
mov ebx, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5118]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x409e14
lea edi, [eax + eax*4]
shl edi, 2
nop dword [eax + eax]
mov ecx, dword [ebx + 0x5120]
cmp dword [ecx + edi + 4], 7
jne 0x409e03
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 + 0x5118]
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 + 0x5118]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x409db0
mov edi, dword [0x45f4d8]
mov eax, dword [ebx + 0x5118]
mov esi, dword [ebx + 0x5120]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [ebp - 0x1c], eax
cmp esi, eax
je 0x409e50
nop dword [eax]
cmp dword [esi + 4], 0
jne 0x409e43
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
mov eax, dword [ebp - 0x1c]
add esp, 8
add esi, 0x14
cmp esi, eax
jne 0x409e30
mov edi, dword [0x45f4d8]
mov eax, dword [edi + 8]
test al, 4
je 0x409e61
and eax, 0xfffffffb
mov byte [edi + 0x45], 1
mov dword [edi + 8], eax
test al, 8
je 0x409e6f
and eax, 0xfffffff7
mov byte [edi + 0x46], 0
mov dword [edi + 8], eax
cmp dword [edi + 0x38a0], 0
je 0x409e93
mov eax, dword [edi + 0x38b0]
test eax, eax
je 0x409e89
cmp eax, 0x41dd00
jne 0x409e93
mov dword [edi + 0x38b0], 0x415720
cmp dword [edi + 0x38a4], 0
je 0x409eb7
mov eax, dword [edi + 0x38b4]
test eax, eax
je 0x409ead
cmp eax, 0x41dde0
jne 0x409eb7
mov dword [edi + 0x38b4], 0x415740
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, edi
mov dword [ebp - 0xc], 6
mov dword [ebp - 0x10], eax
cmp byte [esi + 0x50e0], 0
jne 0x409f76
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x409f6f
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00402c40
mov edi, eax
add esp, 8
test edi, edi
je 0x409f69
mov edx, dword [ebp - 4]
test edx, edx
je 0x409f08
mov ecx, edi
call fcn.0041d3d0
mov ecx, dword [0x45f4d8]
test ecx, ecx
je 0x409f62
movsx eax, word [ecx + 0x524c]
mov edx, dword [ecx + 0x3f78]
add eax, 0xa4a
mov dword [ebp - 0x1c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x409f58
movsx eax, word [ecx + 0x524c]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [ecx + 0x524c], ax
cwde
add eax, 0xa4a
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5248]
push edi
call dword [ebp - 0x10]
add esp, 4
mov edi, dword [0x45f4d8]
mov byte [esi + 0x50e0], 1
movss xmm0, dword [esi + 0x50e4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x409ffd
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x50e4], xmm0
jb 0x409ffd
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x409fec
lea ecx, [ebp - 4]
mov dword [edi + 0x50e4], 0
mov dword [ebp - 4], 0
call fcn.0041d5e0
mov ecx, dword [ebp - 0x1c]
mov edx, 0x457980
mov dword [ebp - 0x18], eax
call fcn.00402ac0
mov edi, eax
test edi, edi
je 0x409ff3
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 0x409ff3
mov byte [esi + 0x90], 1
mov dword [esi + 0x50e4], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f78]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f84], 1
mov word [ebx + 0x5042], ax
mov dword [ebx + 0x3ffc], eax
addsd xmm0, qword [ebx + 0x3f70]
movsd qword [ebx + 0x3f70], xmm0
mov ecx, dword [ebx + 0x5058]
test ecx, ecx
jns 0x40a057
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 + 0x5054]
call fcn.0041f180
mov dword [ebx + 0x5054], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x5370]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x5280]
addss xmm0, dword [ebx + 0x5378]
movss dword [ebx + 0x5378], xmm0
movss dword [ebx + eax*4 + 0x5280], xmm1
mov eax, dword [ebx + 0x5370]
inc eax
movss xmm1, dword [ebx + 0x5378]
cdq
idiv ecx
mov eax, dword [ebx + 0x5374]
movss xmm0, dword [0x45ce8c]
inc eax
cmp eax, ecx
mov dword [ebx + 0x5370], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x45cce0]
mov dword [ebx + 0x5374], ecx
jbe 0x40a0ed
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x45cd9c]
divss xmm0, xmm1
movss dword [ebx + 0x94], xmm0
mov ecx, dword [ebx + 0x3fb0]
test ecx, ecx
jns 0x40a11b
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 + 0x3fac]
call fcn.0041fa50
mov dword [ebx + 0x3fac], 0
mov cl, byte [ebx + 0x4d]
call fcn.00414dc0
mov esi, dword [0x45f4d8]
mov eax, dword [esi + 0x4adc]
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 + 0x4adc]
mov eax, dword [esi + 0x4ad4]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x40a242
mov ebx, 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 0x40a175
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x18], 1
call fcn.00409b80
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x40a25d
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x4c]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x45cd9c]
mov ecx, dword [esi + 0x400c]
mov dword [esi + 0x3d58], edi
mulss xmm1, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x4c]
maxss xmm0, xmm1
movss dword [esi + 0x3d60], xmm0
test ecx, ecx
je 0x40a2b6
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x3d60]
mov eax, dword [ecx + 0x328]
test eax, eax
je 0x40a2b9
mulss xmm1, dword [eax + 0x270]
jmp 0x40a2b9
xorps xmm1, xmm1
movss dword [esi + 0x3d5c], xmm1
movaps xmm0, xmm1
divss xmm0, dword [edi + 0x10]
movss dword [esi + 0x3d64], xmm0
mov edx, dword [edi + 0x30]
mov eax, dword [edx + 0x3c]
mov ecx, dword [edx + 0x40]
mov dword [esi + 0x3d6c], eax
lea eax, [edx + 0x68]
mov dword [esi + 0x3d70], ecx
mov dword [esi + 0x3f6c], eax
mov dword [esi + 0x3d74], edi
movss dword [esi + 0x3d78], xmm1
movss dword [esi + 0x3d7c], xmm0
mov ecx, dword [ebx + 0x4adc]
mov eax, dword [ebx + 0x4ad4]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40a32d
nop dword [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x40a320
cmp byte [ebx + 0x4ce4], 0
je 0x40a361
mov eax, dword [ebx + 0x4cfc]
cmp eax, dword [ebx + 0x4068]
jne 0x40a361
cmp dword [esi + 0x4068], eax
jne 0x40a352
mov dword [esi + 0x406c], eax
cmp dword [esi + 0x4090], eax
jne 0x40a361
mov byte [esi + 0x4094], 1
mov al, byte [ebx + 0x71]
test al, al
je 0x40a371
cmp byte [ebx + 0xd0], 0
jne 0x40a37f
mov dword [ebx + 0x4048], 0
test al, al
je 0x40a394
cmp dword [ebx + 0x4058], 1
jle 0x40a394
mov eax, dword [ebx + 0x4054]
mov dword [ebx + 0x4048], eax
cmp dword [ebx + 0x4054], 0
jne 0x40a3a9
mov dword [ebx + 0x405c], 0
jmp 0x40a3bb
mov eax, dword [ebx + 0x4050]
test eax, eax
je 0x40a3c5
cmp dword [ebx + 0x4068], eax
jne 0x40a3c5
mov dword [ebx + 0x4060], 0
mov eax, dword [ebx + 0x4050]
test eax, eax
je 0x40a3ff
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x405c]
movss dword [ebx + 0x405c], xmm0
cmp dword [ebx + 0x4068], eax
je 0x40a3ff
addss xmm1, dword [ebx + 0x4060]
movss dword [ebx + 0x4060], xmm1
mov dword [ebx + 0x4054], eax
mov eax, dword [ebx + 0x4068]
mov dword [ebx + 0x4058], 0
mov dword [ebx + 0x4050], 0
mov word [ebx + 0x4064], 0
test eax, eax
je 0x40a45b
cmp dword [ebx + 0x406c], eax
je 0x40a45b
cmp dword [ebx + 0x4090], eax
jne 0x40a45b
test byte [ebx + 0x51bc], 2
je 0x40a452
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041df70
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00408ae0
mov ecx, dword [ebx + 0x4068]
test ecx, ecx
je 0x40a47a
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4070]
movss dword [ebx + 0x4070], xmm0
mov eax, dword [ebx + 0x4088]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x40a0]
mov dword [ebx + 0x4098], eax
mov al, byte [ebx + 0x4078]
mov byte [ebx + 0x4095], al
mov eax, dword [ebx + 0x4fa4]
movss dword [ebx + 0x40a0], xmm0
mov dword [ebx + 0x4090], ecx
mov dword [ebx + 0x406c], 0
mov byte [ebx + 0x4079], 0
mov byte [ebx + 0x4094], 0
mov byte [ebx + 0x4074], 0
test eax, eax
je 0x40a4e4
cmp ecx, eax
je 0x40a4e4
mov dword [ebx + 0x4fa4], 0
test ecx, ecx
jne 0x40a4f4
mov dword [ebx + 0x4958], ecx
mov byte [ebx + 0x495c], cl
mov ecx, dword [ebx + 0x4eb4]
test ecx, ecx
je 0x40a517
movss xmm0, dword [ebx + 0x4ed0]
comiss xmm0, dword [ebx + 0x3d44]
jb 0x40a521
mov dword [ebx + 0x4ec4], ecx
jmp 0x40a521
mov dword [ebx + 0x4ec4], 0
mov eax, dword [ebx + 0x4010]
test eax, eax
je 0x40a547
movss xmm0, dword [ebx + 0x4ed0]
comiss xmm0, dword [ebx + 0x3d44]
jb 0x40a551
mov eax, dword [eax + 8]
mov dword [ebx + 0x4ec8], eax
jmp 0x40a551
mov dword [ebx + 0x4ec8], 0
movss xmm0, dword [ebx + 0x4ebc]
mov dword [ebx + 0x4eb8], ecx
test ecx, ecx
je 0x40a57c
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4eb4], 0
movss dword [ebx + 0x4ebc], xmm0
jmp 0x40a5bc
comiss xmm0, dword [0x45cce0]
jbe 0x40a5c6
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x45cd3c]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4ec0]
addss xmm1, xmm1
movss dword [ebx + 0x4ec0], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x40a5c6
mov dword [ebx + 0x4ebc], 0
mov dword [ebx + 0x4ec0], 0
mov eax, dword [ebx + 0x4d58]
mov dword [ebx + 0x4d5c], eax
mov dword [ebx + 0x4d58], 0
mov dword [ebx + 0x4d54], 0x7f7fffff
mov word [ebx + 0x4ce5], 0
mov dword [ebx + 0x4d64], 0
mov dword [ebx + 0x5044], 0
call fcn.00413ab0
call fcn.00419780
call fcn.00414030
cmp byte [ebx + 0x3f87], 0
jne 0x40a63f
movss xmm1, dword [ebx + 0x54]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40a63f
movsd xmm0, qword [ebx + 0x3f70]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x40a644
movss xmm0, dword [ebp - 4]
mov edi, dword [ebx + 0x3fc8]
mov eax, dword [ebx + 0x3fc0]
lea eax, [edi + eax*4]
mov dword [ebp - 0x1c], eax
cmp edi, eax
je 0x40a711
mov ebx, 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 0x40a6fe
cmp byte [esi + 0x38c], al
jne 0x40a6fe
comiss xmm0, dword [esi + 0x250]
jbe 0x40a6fe
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.00401010
mov ecx, dword [esi + 0x278]
call fcn.00428320
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 0x40a660
mov ebx, dword [ebp - 8]
call fcn.004098c0
mov esi, dword [0x45f4d8]
mov ecx, dword [esi + 0x401c]
test ecx, ecx
je 0x40a7ce
mov eax, dword [esi + 0x4068]
mov dword [esi + 0x406c], eax
cmp dword [esi + 0x4090], eax
jne 0x40a745
mov byte [esi + 0x4094], 1
cmp byte [esi + 0xbc], 0
mov edi, dword [ecx + 0x330]
je 0x40a7c2
lea eax, [esi + 0xb4]
mov ecx, eax
test eax, eax
jne 0x40a766
lea ecx, [esi + 0xb4]
movss xmm0, dword [ecx]
movss xmm1, dword [0x45cec8]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x40a7c2
comiss xmm2, xmm1
jb 0x40a7c2
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x4080]
push 1
mov ecx, edi
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x4084]
movss dword [ebp - 0x24], xmm0
call fcn.00412960
mov ecx, dword [esi + 0x401c]
add esp, 4
xor edx, edx
call fcn.00412390
jmp 0x40a80a
mov dword [esi + 0x401c], 0
jmp 0x40a801
mov ecx, dword [esi + 0x4088]
test ecx, ecx
je 0x40a80a
mov eax, dword [esi + 0x4068]
cmp dword [ecx + 0x7c], eax
jne 0x40a80a
mov dword [esi + 0x406c], eax
cmp dword [esi + 0x4090], eax
jne 0x40a7f8
mov byte [esi + 0x4094], 1
cmp byte [esi + 0xbc], 0
jne 0x40a80a
xor edx, edx
xor ecx, ecx
call fcn.00408ae0
mov eax, dword [0x45f4d8]
movss xmm2, dword [0x45ce08]
mov edx, dword [eax + 0x4ab0]
sub edx, 1
js 0x40a848
mov eax, dword [eax + 0x4ab8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x40a840
test dword [ecx + 0xc], 0x8000000
jne 0x40a862
sub eax, 0x28
sub edx, 1
jns 0x40a831
cmp dword [ebx + 0x4cb4], 0
je 0x40a87d
movss xmm0, dword [ebx + 0x4cc4]
comiss xmm0, dword [0x45cce0]
jbe 0x40a87d
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4ce0]
minss xmm1, dword [0x45cd9c]
jmp 0x40a89e
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x45ce18]
movss xmm1, dword [ebx + 0x4ce0]
subss xmm1, xmm0
maxss xmm1, dword [0x45cce0]
movss dword [ebx + 0x4ce0], xmm1
movups xmm0, xmmword [ebx + 0x50c0]
mov dword [ebx + 0x4ecc], 0
mov dword [ebx + 0x5384], 0xffffffff
mov dword [ebx + 0x5380], 0xffffffff
mov dword [ebx + 0x537c], 0xffffffff
movups xmmword [ebx + 0x50d0], xmm0
mov byte [ebx + 0x50c0], 0
call fcn.004143c0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x4dcc], edx
jle 0x40aa4d
xor edi, edi
xorps xmm1, xmm1
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ecx
nop word [eax + eax]
mov eax, dword [ebx + 0x4dd4]
movss xmm0, dword [ecx + eax]
comiss xmm0, xmm1
jb 0x40aa2e
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x40aa2e
mov esi, dword [ebx + 0x4db4]
add esi, edi
mov edi, dword [0x45f4d8]
mov dword [ebp - 0x24], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40a9d0
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x40a9bf
movsx eax, word [edi + 0x524c]
mov edx, dword [edi + 0x3f78]
add eax, 0xa4a
mov dword [ebp - 0x20], edx
cmp dword [edi + eax*8], edx
lea eax, [edi + eax*8]
je 0x40a9b5
movsx eax, word [edi + 0x524c]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [edi + 0x524c], ax
cwde
add eax, 0xa4a
lea eax, [edi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x5248]
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 0x40aa0c
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x74]
inc edx
mov word [eax + ecx - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x40a9f5
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
sub esi, dword [edi + 0x4db4]
xorps xmm1, xmm1
mov eax, dword [edi + 0x4dd4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
inc edx
add edi, 0x200
add ecx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ecx
cmp edx, dword [ebx + 0x4dcc]
jl 0x40a910
mov eax, dword [ebx + 0x4da0]
mov ecx, eax
mov esi, dword [ebx + 0x4da8]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x40aa9d
xorps xmm1, xmm1
nop word [eax + eax]
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40aa96
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x40aa96
lea ecx, [esi + 0x20]
call fcn.0042b170
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x40aa70
cmp byte [ebx + 0x3f87], 0
je 0x40ab5e
mov esi, dword [0x45f4d8]
lea ecx, [esi + 0x4a98]
call fcn.00401010
mov edi, dword [esi + 0x4aac]
test edi, edi
je 0x40ab44
mov ecx, dword [0x45f4d8]
mov dword [esi + 0x4aa8], 0
mov dword [esi + 0x4aa4], 0
test ecx, ecx
je 0x40ab33
movsx eax, word [ecx + 0x524c]
mov edx, dword [ecx + 0x3f78]
add eax, 0xa4a
mov dword [ebp - 0x24], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40ab29
movsx eax, word [ecx + 0x524c]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x524c], ax
cwde
add eax, 0xa4a
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5248]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4aac], 0
lea ecx, [esi + 0x4e88]
mov dword [esi + 0x4e84], 0
call fcn.0041e8d0
call fcn.00437880
mov eax, dword [ebx + 0x4ae8]
mov byte [ebx + 0x3f87], 0
test eax, eax
je 0x40abc3
cmp byte [eax + 0xbb], 0
jne 0x40abc3
mov eax, dword [0x45f4d8]
mov edx, dword [eax + 0x3fcc]
sub edx, 1
js 0x40abb7
mov eax, dword [eax + 0x3fd4]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x40abaf
cmp byte [ecx + 0xbb], 0
je 0x40abaf
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x40abb9
sub esi, 4
sub edx, 1
jns 0x40ab91
xor ecx, ecx
mov edx, 1
call fcn.00412390
push 0
lea ecx, [ebx + 0x3fe4]
call fcn.0041f080
mov ecx, dword [ebx + 0x4ac0]
test ecx, ecx
jns 0x40abf6
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 + 0x4abc]
call fcn.0041f8b0
lea esi, [ebx + 0x4a98]
mov dword [ebx + 0x4abc], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40ac25
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.0041f180
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40ac3a
push 8
mov ecx, esi
call fcn.0041f180
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 + 0x4aa0]
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebx + 0x4aa4]
mov dword [ebx + 0x4968], eax
call fcn.0041ed40
call fcn.0041e330
mov edx, dword [0x45f4d8]
mov esi, edx
mov dword [esi + 0x404c], 0
mov eax, dword [esi + 0x5224]
inc eax
cmp dword [esi + 0x3f78], eax
jne 0x40ad7c
mov edi, dword [esi + 0x4054]
test edi, edi
jne 0x40aca1
mov edi, dword [esi + 0x4068]
cmp dword [esi + 0x522c], edi
je 0x40acf4
lea eax, [esi + 0x5230]
mov dword [esi + 0x522c], edi
mov dword [esi + 0x5228], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40acee
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 + 0x5230]
call fcn.0041fb30
mov edx, dword [0x45f4d8]
lea eax, [esi + 0x5230]
mov dword [eax], 0
test edi, edi
je 0x40ad7c
mov eax, dword [esi + 0x5228]
test eax, eax
js 0x40ad45
mov ecx, eax
cmp eax, dword [esi + 0x5230]
jge 0x40ad58
mov ebx, dword [esi + 0x5238]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x40ad3e
mov edx, dword [esi + 0x5238]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edx, dword [0x45f4d8]
jle 0x40ad58
inc eax
mov dword [esi + 0x5228], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x40ad54
mov dword [esi + 0x404c], edi
jmp 0x40ad7c
test ecx, ecx
js 0x40ad7c
cmp ecx, dword [esi + 0x5230]
jge 0x40ad7c
mov eax, dword [esi + 0x5238]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x404c], eax
mov eax, dword [esi + 0x5238]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edx + 0x51f4]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x40ae40
mov ecx, dword [edx + 0x4a64]
mulss xmm1, dword [0x45ce08]
shl ecx, 4
cvtps2pd xmm0, xmm1
lea eax, [ecx + 0x39cc]
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 [0x45cd5c]
lea edx, [esi + 0x39c8]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x39c4]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00403050
mov edx, dword [0x45f4d8]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x4a64]
add eax, 0x39d
add eax, eax
mov dword [edx + eax*8], 0x3f800000
movss xmm0, dword [edx + 0x51f4]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x51f4], xmm0
jb 0x40ae40
mov eax, dword [edx + 0x4a64]
cmp eax, 0x38
je 0x40ae36
movups xmm0, xmmword [edx + 0x51f8]
add eax, eax
movups xmmword [edx + eax*8 + 0x39c4], xmm0
mov dword [edx + 0x4a64], 0x38
mov al, byte [ebx + 0x51e5]
test al, al
je 0x40ae65
sub al, 1
mov byte [ebx + 0x51e5], al
jne 0x40ae65
mov dword [ebx + 0x496c], 0
mov byte [ebx + 0x51e6], 0
mov al, byte [ebx + 0x51e4]
test al, al
je 0x40ae9e
sub al, 1
mov byte [ebx + 0x51e4], al
jne 0x40ae9e
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.0041df70
mov eax, dword [ebx + 0x51e0]
add esp, 4
not eax
mov dword [ebx + 0x51e0], 0
and dword [ebx + 0x51bc], eax
mov eax, dword [0x45f4d8]
xor edx, edx
mov byte [ebx + 0x3f85], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x49f8], 2
mov dword [eax + 0x4a18], 0x43c80000
mov dword [eax + 0x4a1c], 0x43c80000
mov dword [eax + 0x4a00], 4
call fcn.0040f800
add esp, 4
mov dword [ebx + 0x5198], 0
lea ecx, [ebx + 0x519c]
call fcn.00415760
cmp byte [ebx + 0x73], 0
je 0x40af30
mov cl, byte [ebx + 0x51ec]
cmp cl, 0xff
jne 0x40af0a
xor edx, edx
jmp 0x40af33
mov eax, dword [ebx + 0x3f78]
and eax, 0x80000003
jns 0x40af1c
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 0x40af33
or dl, 0xff
mov byte [ebx + 0x51ec], dl
mov eax, dword [ebx + 0x5118]
mov esi, dword [ebx + 0x5120]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40af67
nop
cmp dword [esi + 4], 1
jne 0x40af60
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40af50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret