Function at 0x40dd90
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 [0x44e638]
mov ebx, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5118]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x40de24
lea edi, [eax + eax*4]
shl edi, 2
nop dword [eax + eax]
mov ecx, dword [ebx + 0x5120]
cmp dword [ecx + edi + 4], 7
jne 0x40de13
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 0x40ddc0
mov edi, dword [0x44e638]
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 0x40de60
nop dword [eax]
cmp dword [esi + 4], 0
jne 0x40de53
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 0x40de40
mov edi, dword [0x44e638]
mov eax, dword [edi + 8]
test al, 4
je 0x40de71
and eax, 0xfffffffb
mov byte [edi + 0x45], 1
mov dword [edi + 8], eax
test al, 8
je 0x40de7f
and eax, 0xfffffff7
mov byte [edi + 0x46], 0
mov dword [edi + 8], eax
cmp dword [edi + 0x38a0], 0
je 0x40dea3
mov eax, dword [edi + 0x38b0]
test eax, eax
je 0x40de99
cmp eax, 0x420770
jne 0x40dea3
mov dword [edi + 0x38b0], 0x418f20
cmp dword [edi + 0x38a4], 0
je 0x40dec7
mov eax, dword [edi + 0x38b4]
test eax, eax
je 0x40debd
cmp eax, 0x420850
jne 0x40dec7
mov dword [edi + 0x38b4], 0x418f40
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 0x40df86
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40df7f
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00407b10
mov edi, eax
add esp, 8
test edi, edi
je 0x40df79
mov edx, dword [ebp - 4]
test edx, edx
je 0x40df18
mov ecx, edi
call fcn.0041fe40
mov ecx, dword [0x44e638]
test ecx, ecx
je 0x40df72
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 0x40df68
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 [0x44e638]
mov byte [esi + 0x50e0], 1
movss xmm0, dword [esi + 0x50e4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40e00d
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x50e4], xmm0
jb 0x40e00d
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40dffc
lea ecx, [ebp - 4]
mov dword [edi + 0x50e4], 0
mov dword [ebp - 4], 0
call fcn.00420060
mov ecx, dword [ebp - 0x1c]
mov edx, 0x44a4ec
mov dword [ebp - 0x18], eax
call fcn.00407990
mov edi, eax
test edi, edi
je 0x40e003
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 0x40e003
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 0x40e067
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.00421a70
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 [0x44ad2c]
inc eax
cmp eax, ecx
mov dword [ebx + 0x5370], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x44abb0]
mov dword [ebx + 0x5374], ecx
jbe 0x40e0fd
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x44ac4c]
divss xmm0, xmm1
movss dword [ebx + 0x94], xmm0
mov ecx, dword [ebx + 0x3fb0]
test ecx, ecx
jns 0x40e12b
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.00422330
mov dword [ebx + 0x3fac], 0
mov cl, byte [ebx + 0x4d]
call fcn.004185c0
mov esi, dword [0x44e638]
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 0x40e252
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 0x40e185
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x18], 1
call fcn.0040db80
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x40e26d
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x4c]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x44ac4c]
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 0x40e2c6
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x3d60]
mov eax, dword [ecx + 0x328]
test eax, eax
je 0x40e2c9
mulss xmm1, dword [eax + 0x270]
jmp 0x40e2c9
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 0x40e33d
nop dword [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x40e330
cmp byte [ebx + 0x4ce4], 0
je 0x40e371
mov eax, dword [ebx + 0x4cfc]
cmp eax, dword [ebx + 0x4068]
jne 0x40e371
cmp dword [esi + 0x4068], eax
jne 0x40e362
mov dword [esi + 0x406c], eax
cmp dword [esi + 0x4090], eax
jne 0x40e371
mov byte [esi + 0x4094], 1
mov al, byte [ebx + 0x71]
test al, al
je 0x40e381
cmp byte [ebx + 0xd0], 0
jne 0x40e38f
mov dword [ebx + 0x4048], 0
test al, al
je 0x40e3a4
cmp dword [ebx + 0x4058], 1
jle 0x40e3a4
mov eax, dword [ebx + 0x4054]
mov dword [ebx + 0x4048], eax
cmp dword [ebx + 0x4054], 0
jne 0x40e3b9
mov dword [ebx + 0x405c], 0
jmp 0x40e3cb
mov eax, dword [ebx + 0x4050]
test eax, eax
je 0x40e3d5
cmp dword [ebx + 0x4068], eax
jne 0x40e3d5
mov dword [ebx + 0x4060], 0
mov eax, dword [ebx + 0x4050]
test eax, eax
je 0x40e40f
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x405c]
movss dword [ebx + 0x405c], xmm0
cmp dword [ebx + 0x4068], eax
je 0x40e40f
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 0x40e46b
cmp dword [ebx + 0x406c], eax
je 0x40e46b
cmp dword [ebx + 0x4090], eax
jne 0x40e46b
test byte [ebx + 0x51bc], 2
je 0x40e462
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.004209e0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.0040cae0
mov ecx, dword [ebx + 0x4068]
test ecx, ecx
je 0x40e48a
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 0x40e4f4
cmp ecx, eax
je 0x40e4f4
mov dword [ebx + 0x4fa4], 0
test ecx, ecx
jne 0x40e504
mov dword [ebx + 0x4958], ecx
mov byte [ebx + 0x495c], cl
mov ecx, dword [ebx + 0x4eb4]
test ecx, ecx
je 0x40e527
movss xmm0, dword [ebx + 0x4ed0]
comiss xmm0, dword [ebx + 0x3d44]
jb 0x40e531
mov dword [ebx + 0x4ec4], ecx
jmp 0x40e531
mov dword [ebx + 0x4ec4], 0
mov eax, dword [ebx + 0x4010]
test eax, eax
je 0x40e557
movss xmm0, dword [ebx + 0x4ed0]
comiss xmm0, dword [ebx + 0x3d44]
jb 0x40e561
mov eax, dword [eax + 8]
mov dword [ebx + 0x4ec8], eax
jmp 0x40e561
mov dword [ebx + 0x4ec8], 0
movss xmm0, dword [ebx + 0x4ebc]
mov dword [ebx + 0x4eb8], ecx
test ecx, ecx
je 0x40e58c
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4eb4], 0
movss dword [ebx + 0x4ebc], xmm0
jmp 0x40e5cc
comiss xmm0, dword [0x44abb0]
jbe 0x40e5d6
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x44abf4]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4ec0]
addss xmm1, xmm1
movss dword [ebx + 0x4ec0], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x40e5d6
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.004172b0
call fcn.0041c950
call fcn.00417830
cmp byte [ebx + 0x3f87], 0
jne 0x40e64f
movss xmm1, dword [ebx + 0x54]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40e64f
movsd xmm0, qword [ebx + 0x3f70]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x40e654
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 0x40e721
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 0x40e70e
cmp byte [esi + 0x38c], al
jne 0x40e70e
comiss xmm0, dword [esi + 0x250]
jbe 0x40e70e
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.004061d0
mov ecx, dword [esi + 0x278]
call fcn.0042aac0
lea ecx, [esi + 0x190]
call fcn.004061d0
lea ecx, [esi + 0x1bc]
call fcn.004061d0
lea ecx, [esi + 0x1c8]
call fcn.004061d0
movss xmm0, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x40e670
mov ebx, dword [ebp - 8]
call fcn.0040d8c0
mov esi, dword [0x44e638]
mov ecx, dword [esi + 0x401c]
test ecx, ecx
je 0x40e7de
mov eax, dword [esi + 0x4068]
mov dword [esi + 0x406c], eax
cmp dword [esi + 0x4090], eax
jne 0x40e755
mov byte [esi + 0x4094], 1
cmp byte [esi + 0xbc], 0
mov edi, dword [ecx + 0x330]
je 0x40e7d2
lea eax, [esi + 0xb4]
mov ecx, eax
test eax, eax
jne 0x40e776
lea ecx, [esi + 0xb4]
movss xmm0, dword [ecx]
movss xmm1, dword [0x44ad44]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x40e7d2
comiss xmm2, xmm1
jb 0x40e7d2
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.00416360
mov ecx, dword [esi + 0x401c]
add esp, 4
xor edx, edx
call fcn.00415e40
jmp 0x40e81a
mov dword [esi + 0x401c], 0
jmp 0x40e811
mov ecx, dword [esi + 0x4088]
test ecx, ecx
je 0x40e81a
mov eax, dword [esi + 0x4068]
cmp dword [ecx + 0x7c], eax
jne 0x40e81a
mov dword [esi + 0x406c], eax
cmp dword [esi + 0x4090], eax
jne 0x40e808
mov byte [esi + 0x4094], 1
cmp byte [esi + 0xbc], 0
jne 0x40e81a
xor edx, edx
xor ecx, ecx
call fcn.0040cae0
mov eax, dword [0x44e638]
movss xmm2, dword [0x44aca0]
mov edx, dword [eax + 0x4ab0]
sub edx, 1
js 0x40e858
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 0x40e850
test dword [ecx + 0xc], 0x8000000
jne 0x40e872
sub eax, 0x28
sub edx, 1
jns 0x40e841
cmp dword [ebx + 0x4cb4], 0
je 0x40e88d
movss xmm0, dword [ebx + 0x4cc4]
comiss xmm0, dword [0x44abb0]
jbe 0x40e88d
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4ce0]
minss xmm1, dword [0x44ac4c]
jmp 0x40e8ae
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x44acb0]
movss xmm1, dword [ebx + 0x4ce0]
subss xmm1, xmm0
maxss xmm1, dword [0x44abb0]
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.00417bc0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x4dcc], edx
jle 0x40ea5d
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 0x40ea3e
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x40ea3e
mov esi, dword [ebx + 0x4db4]
add esi, edi
mov edi, dword [0x44e638]
mov dword [ebp - 0x24], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40e9e0
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x40e9cf
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 0x40e9c5
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.004061d0
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x40ea1c
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 0x40ea05
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 0x40e920
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 0x40eaad
xorps xmm1, xmm1
nop word [eax + eax]
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40eaa6
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x40eaa6
lea ecx, [esi + 0x20]
call fcn.0042d5a0
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x40ea80
cmp byte [ebx + 0x3f87], 0
je 0x40eb6e
mov esi, dword [0x44e638]
lea ecx, [esi + 0x4a98]
call fcn.004061d0
mov edi, dword [esi + 0x4aac]
test edi, edi
je 0x40eb54
mov ecx, dword [0x44e638]
mov dword [esi + 0x4aa8], 0
mov dword [esi + 0x4aa4], 0
test ecx, ecx
je 0x40eb43
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 0x40eb39
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.00421330
call fcn.00439b70
mov eax, dword [ebx + 0x4ae8]
mov byte [ebx + 0x3f87], 0
test eax, eax
je 0x40ebd3
cmp byte [eax + 0xbb], 0
jne 0x40ebd3
mov eax, dword [0x44e638]
mov edx, dword [eax + 0x3fcc]
sub edx, 1
js 0x40ebc7
mov eax, dword [eax + 0x3fd4]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x40ebbf
cmp byte [ecx + 0xbb], 0
je 0x40ebbf
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x40ebc9
sub esi, 4
sub edx, 1
jns 0x40eba1
xor ecx, ecx
mov edx, 1
call fcn.00415e40
push 0
lea ecx, [ebx + 0x3fe4]
call fcn.00421970
mov ecx, dword [ebx + 0x4ac0]
test ecx, ecx
jns 0x40ec06
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.00422190
lea esi, [ebx + 0x4a98]
mov dword [ebx + 0x4abc], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40ec35
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.00421a70
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40ec4a
push 8
mov ecx, esi
call fcn.00421a70
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], 0x10
inc dword [esi]
mov ecx, dword [esi]
mov eax, dword [ebx + 0x4aa0]
push ecx
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebx + 0x4aa4]
mov dword [ebx + 0x4968], eax
call fcn.00421640
call fcn.00420d90
mov edx, dword [0x44e638]
mov esi, edx
mov dword [esi + 0x404c], 0
mov eax, dword [esi + 0x5224]
inc eax
cmp dword [esi + 0x3f78], eax
jne 0x40ed8b
mov edi, dword [esi + 0x4054]
test edi, edi
jne 0x40ecb0
mov edi, dword [esi + 0x4068]
cmp dword [esi + 0x522c], edi
je 0x40ed03
lea eax, [esi + 0x5230]
mov dword [esi + 0x522c], edi
mov dword [esi + 0x5228], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40ecfd
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.00422410
mov edx, dword [0x44e638]
lea eax, [esi + 0x5230]
mov dword [eax], 0
test edi, edi
je 0x40ed8b
mov eax, dword [esi + 0x5228]
test eax, eax
js 0x40ed54
mov ecx, eax
cmp eax, dword [esi + 0x5230]
jge 0x40ed67
mov ebx, dword [esi + 0x5238]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x40ed4d
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 [0x44e638]
jle 0x40ed67
inc eax
mov dword [esi + 0x5228], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x40ed63
mov dword [esi + 0x404c], edi
jmp 0x40ed8b
test ecx, ecx
js 0x40ed8b
cmp ecx, dword [esi + 0x5230]
jge 0x40ed8b
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 0x40ee4f
mov ecx, dword [edx + 0x4a64]
mulss xmm1, dword [0x44aca0]
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 [0x44ac14]
lea edx, [esi + 0x39c8]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x39c4]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00407db0
mov edx, dword [0x44e638]
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 0x40ee4f
mov eax, dword [edx + 0x4a64]
cmp eax, 0x38
je 0x40ee45
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 0x40ee74
sub al, 1
mov byte [ebx + 0x51e5], al
jne 0x40ee74
mov dword [ebx + 0x496c], 0
mov byte [ebx + 0x51e6], 0
mov al, byte [ebx + 0x51e4]
test al, al
je 0x40eead
sub al, 1
mov byte [ebx + 0x51e4], al
jne 0x40eead
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.004209e0
mov eax, dword [ebx + 0x51e0]
add esp, 4
not eax
mov dword [ebx + 0x51e0], 0
and dword [ebx + 0x51bc], eax
mov eax, dword [0x44e638]
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.004132c0
add esp, 4
mov dword [ebx + 0x5198], 0
lea ecx, [ebx + 0x519c]
call fcn.00418f60
cmp byte [ebx + 0x73], 0
je 0x40ef3f
mov cl, byte [ebx + 0x51ec]
cmp cl, 0xff
jne 0x40ef19
xor edx, edx
jmp 0x40ef42
mov eax, dword [ebx + 0x3f78]
and eax, 0x80000003
jns 0x40ef2b
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 0x40ef42
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 0x40ef77
nop
cmp dword [esi + 4], 1
jne 0x40ef70
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40ef60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret