Function at 0x4093e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [0x4434a8]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5f30]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x40946e
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5f38]
cmp dword [ecx + edi + 4], 7
jne 0x409463
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 + 0x5f30]
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 + 0x5f30]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x409410
mov eax, dword [ebx + 0x5f30]
mov esi, dword [ebx + 0x5f38]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40949b
cmp dword [esi + 4], 0
jne 0x409494
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x409484
mov eax, dword [0x4434a8]
cmp dword [eax + 0x3898], 0
je 0x4094c5
mov ecx, dword [eax + 0x38a8]
test ecx, ecx
je 0x4094bb
cmp ecx, 0x41abb0
jne 0x4094c5
mov dword [eax + 0x38a8], 0x414510
cmp dword [eax + 0x389c], 0
je 0x4094ea
mov ecx, dword [eax + 0x38ac]
test ecx, ecx
je 0x4094e0
cmp ecx, 0x41ac90
jne 0x4094ea
mov dword [eax + 0x38ac], 0x414530
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, eax
mov dword [ebp - 0xc], 6
mov dword [ebp - 0x10], ecx
cmp byte [esi + 0x5ef8], 0
jne 0x4095a9
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4095a2
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00404e50
mov edi, eax
add esp, 8
test edi, edi
je 0x40959d
mov edx, dword [ebp - 4]
test edx, edx
je 0x40953c
mov ecx, edi
call fcn.0041a280
mov ecx, dword [0x4434a8]
test ecx, ecx
je 0x409596
movsx eax, word [ecx + 0x6024]
mov edx, dword [ecx + 0x3f70]
add eax, 0xc05
mov dword [ebp - 0x1c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40958c
movsx eax, word [ecx + 0x6024]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [ecx + 0x6024], ax
cwde
add eax, 0xc05
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6020]
push edi
call dword [ebp - 0x10]
add esp, 4
mov eax, dword [0x4434a8]
mov byte [esi + 0x5ef8], 1
movss xmm0, dword [esi + 0x5efc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40962c
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5efc], xmm0
jb 0x40962c
mov edi, dword [esi + 0x20]
test edi, edi
je 0x40961b
lea ecx, [ebp - 4]
mov dword [eax + 0x5efc], 0
mov dword [ebp - 4], 0
call fcn.0041a4a0
mov edx, 0x43c11c
mov dword [ebp - 0x1c], eax
mov ecx, edi
call fcn.00404cd0
mov edi, eax
test edi, edi
je 0x409622
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 0x409622
mov byte [esi + 0x88], 1
mov dword [esi + 0x5efc], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f70]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f7c], 1
mov word [ebx + 0x5e5c], ax
mov dword [ebx + 0x3ff4], eax
addsd xmm0, qword [ebx + 0x3f68]
movsd qword [ebx + 0x3f68], xmm0
mov ecx, dword [ebx + 0x5e70]
test ecx, ecx
jns 0x409686
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 + 0x5e6c]
call fcn.0041bf60
mov dword [ebx + 0x5e6c], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x6148]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x6058]
addss xmm0, dword [ebx + 0x6150]
movss dword [ebx + 0x6150], xmm0
movss dword [ebx + eax*4 + 0x6058], xmm1
mov eax, dword [ebx + 0x6148]
inc eax
movss xmm1, dword [ebx + 0x6150]
cdq
idiv ecx
mov eax, dword [ebx + 0x614c]
movss xmm0, dword [0x440d68]
inc eax
cmp eax, ecx
mov dword [ebx + 0x6148], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x440c44]
mov dword [ebx + 0x614c], ecx
jbe 0x40971c
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x440ccc]
divss xmm0, xmm1
movss dword [ebx + 0x8c], xmm0
mov ecx, dword [ebx + 0x3fa8]
test ecx, ecx
jns 0x40974a
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 + 0x3fa4]
call fcn.0041c7f0
mov dword [ebx + 0x3fa4], 0
mov cl, byte [ebx + 0x47]
call fcn.00413bb0
mov esi, dword [0x4434a8]
mov eax, dword [esi + 0x4acc]
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 + 0x4acc]
mov eax, dword [esi + 0x4ac4]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x409871
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
addss xmm0, dword [edx + 0x94]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x90]
addss xmm0, dword [edx + 0x98]
movss dword [edx + 0x20], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x24], xmm1
cmp edi, ebx
jne 0x4097a4
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.004091d0
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x40988c
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x440ccc]
mov ecx, dword [esi + 0x4004]
mov dword [esi + 0x3d4c], edi
mulss xmm1, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x4c]
maxss xmm0, xmm1
movss dword [esi + 0x3d54], xmm0
test ecx, ecx
je 0x4098e5
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x3d54]
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x4098e8
mulss xmm1, dword [eax + 0x270]
jmp 0x4098e8
xorps xmm1, xmm1
movss dword [esi + 0x3d50], xmm1
movaps xmm0, xmm1
divss xmm0, dword [edi + 0x10]
movss dword [esi + 0x3d58], xmm0
mov edx, dword [edi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x3d60], eax
lea eax, [edx + 0x60]
mov dword [esi + 0x3d64], ecx
mov dword [esi + 0x3f60], eax
mov dword [esi + 0x3d68], edi
movss dword [esi + 0x3d6c], xmm1
movss dword [esi + 0x3d70], xmm0
mov ecx, dword [ebx + 0x4acc]
mov eax, dword [ebx + 0x4ac4]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x409954
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x409947
cmp byte [ebx + 0x4ccc], 0
je 0x409988
mov eax, dword [ebx + 0x4ce4]
cmp eax, dword [ebx + 0x4058]
jne 0x409988
cmp dword [esi + 0x4058], eax
jne 0x409979
mov dword [esi + 0x405c], eax
cmp dword [esi + 0x4080], eax
jne 0x409988
mov byte [esi + 0x4084], 1
cmp dword [ebx + 0x4048], 0
jne 0x40999d
mov dword [ebx + 0x404c], 0
jmp 0x4099af
mov eax, dword [ebx + 0x4044]
test eax, eax
je 0x4099b9
cmp dword [ebx + 0x4058], eax
jne 0x4099b9
mov dword [ebx + 0x4050], 0
mov eax, dword [ebx + 0x4044]
test eax, eax
je 0x4099f3
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x404c]
movss dword [ebx + 0x404c], xmm0
cmp dword [ebx + 0x4058], eax
je 0x4099f3
addss xmm1, dword [ebx + 0x4050]
movss dword [ebx + 0x4050], xmm1
mov dword [ebx + 0x4048], eax
mov eax, dword [ebx + 0x4058]
mov dword [ebx + 0x4044], 0
mov word [ebx + 0x4054], 0
test eax, eax
je 0x409a45
cmp dword [ebx + 0x405c], eax
je 0x409a45
cmp dword [ebx + 0x4080], eax
jne 0x409a45
test byte [ebx + 0x5f98], 1
je 0x409a3c
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041ae20
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00408260
mov ecx, dword [ebx + 0x4058]
test ecx, ecx
je 0x409a64
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4060]
movss dword [ebx + 0x4060], xmm0
mov eax, dword [ebx + 0x4078]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4090]
mov dword [ebx + 0x4088], eax
mov al, byte [ebx + 0x4068]
mov byte [ebx + 0x4085], al
mov eax, dword [ebx + 0x5dbc]
movss dword [ebx + 0x4090], xmm0
mov dword [ebx + 0x4080], ecx
mov dword [ebx + 0x405c], 0
mov byte [ebx + 0x4069], 0
mov byte [ebx + 0x4084], 0
mov byte [ebx + 0x4064], 0
test eax, eax
je 0x409ace
cmp ecx, eax
je 0x409ace
mov dword [ebx + 0x5dbc], 0
test ecx, ecx
jne 0x409ade
mov dword [ebx + 0x4948], ecx
mov byte [ebx + 0x494c], cl
mov ecx, dword [ebx + 0x4e9c]
test ecx, ecx
je 0x409b01
movss xmm0, dword [ebx + 0x4eb8]
comiss xmm0, dword [ebx + 0x3d38]
jb 0x409b0b
mov dword [ebx + 0x4eac], ecx
jmp 0x409b0b
mov dword [ebx + 0x4eac], 0
mov eax, dword [ebx + 0x4008]
test eax, eax
je 0x409b31
movss xmm0, dword [ebx + 0x4eb8]
comiss xmm0, dword [ebx + 0x3d38]
jb 0x409b3b
mov eax, dword [eax + 8]
mov dword [ebx + 0x4eb0], eax
jmp 0x409b3b
mov dword [ebx + 0x4eb0], 0
movss xmm0, dword [ebx + 0x4ea4]
mov dword [ebx + 0x4ea0], ecx
test ecx, ecx
je 0x409b66
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4e9c], 0
movss dword [ebx + 0x4ea4], xmm0
jmp 0x409ba6
comiss xmm0, dword [0x440c44]
jbe 0x409bb0
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x440c78]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4ea8]
addss xmm1, xmm1
movss dword [ebx + 0x4ea8], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x409bb0
mov dword [ebx + 0x4ea4], 0
mov dword [ebx + 0x4ea8], 0
mov eax, dword [ebx + 0x4d40]
mov dword [ebx + 0x4d44], eax
mov dword [ebx + 0x4d40], 0
mov dword [ebx + 0x4d3c], 0x7f7fffff
mov word [ebx + 0x4ccd], 0
mov dword [ebx + 0x4d4c], 0
call fcn.004128a0
call fcn.00416d70
call fcn.00412e20
call fcn.00408f20
mov esi, dword [0x4434a8]
mov ecx, dword [esi + 0x4014]
test ecx, ecx
je 0x409caf
mov eax, dword [esi + 0x4058]
mov dword [esi + 0x405c], eax
cmp dword [esi + 0x4080], eax
jne 0x409c26
mov byte [esi + 0x4084], 1
cmp byte [esi + 0xb4], 0
mov edi, dword [ecx + 0x314]
je 0x409ca3
lea eax, [esi + 0xac]
mov ecx, eax
test eax, eax
jne 0x409c47
lea ecx, [esi + 0xac]
movss xmm0, dword [ecx]
movss xmm1, dword [0x440d90]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x409ca3
comiss xmm2, xmm1
jb 0x409ca3
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x4070]
push 1
mov ecx, edi
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x4074]
movss dword [ebp - 0x24], xmm0
call fcn.00411930
mov ecx, dword [esi + 0x4014]
add esp, 4
xor edx, edx
call fcn.004114d0
jmp 0x409ceb
mov dword [esi + 0x4014], 0
jmp 0x409ce2
mov ecx, dword [esi + 0x4078]
test ecx, ecx
je 0x409ceb
mov eax, dword [esi + 0x4058]
cmp dword [ecx + 0x7c], eax
jne 0x409ceb
mov dword [esi + 0x405c], eax
cmp dword [esi + 0x4080], eax
jne 0x409cd9
mov byte [esi + 0x4084], 1
cmp byte [esi + 0xb4], 0
jne 0x409ceb
xor edx, edx
xor ecx, ecx
call fcn.00408260
mov eax, dword [0x4434a8]
movss xmm2, dword [0x440d10]
mov edx, dword [eax + 0x4aa0]
sub edx, 1
js 0x409d29
mov eax, dword [eax + 0x4aa8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x409d21
test dword [ecx + 0xc], 0x8000000
jne 0x409d43
sub eax, 0x28
sub edx, 1
jns 0x409d12
cmp dword [ebx + 0x4c9c], 0
je 0x409d5e
movss xmm0, dword [ebx + 0x4cac]
comiss xmm0, dword [0x440c44]
jbe 0x409d5e
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4cc8]
minss xmm1, dword [0x440ccc]
jmp 0x409d7f
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x440d1c]
movss xmm1, dword [ebx + 0x4cc8]
subss xmm1, xmm0
maxss xmm1, dword [0x440c44]
movss dword [ebx + 0x4cc8], xmm1
movups xmm0, xmmword [ebx + 0x5ed8]
mov dword [ebx + 0x4eb4], 0
mov dword [ebx + 0x615c], 0xffffffff
mov dword [ebx + 0x6158], 0xffffffff
mov dword [ebx + 0x6154], 0xffffffff
movups xmmword [ebx + 0x5ee8], xmm0
mov byte [ebx + 0x5ed8], 0
call fcn.004131b0
cmp byte [ebx + 0x3f7f], 0
jne 0x409df6
movss xmm1, dword [ebx + 0x50]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x409df6
movsd xmm0, qword [ebx + 0x3f68]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x409dfb
movss xmm0, dword [ebp - 4]
mov edi, dword [ebx + 0x3fc0]
mov eax, dword [ebx + 0x3fb8]
lea eax, [edi + eax*4]
mov dword [ebp - 0x1c], eax
cmp edi, eax
je 0x409ed1
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 0x409ebe
cmp byte [esi + 0x370], al
jne 0x409ebe
comiss xmm0, dword [esi + 0x250]
jbe 0x409ebe
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.00401d80
mov ecx, dword [esi + 0x278]
call fcn.00424dc0
lea ecx, [esi + 0x190]
call fcn.00401d80
lea ecx, [esi + 0x1bc]
call fcn.00401d80
lea ecx, [esi + 0x1c8]
call fcn.00401d80
movss xmm0, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x409e20
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4db4], ecx
jle 0x40a038
xor edi, edi
xorps xmm1, xmm1
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
nop
mov eax, dword [ebx + 0x4dbc]
movss xmm0, dword [edx + eax]
comiss xmm0, xmm1
jb 0x40a019
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x40a019
mov esi, dword [ebx + 0x4d9c]
add esi, edi
mov edi, dword [0x4434a8]
mov dword [ebp - 0x24], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x409fb4
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x409fa3
movsx eax, word [edi + 0x6024]
mov edx, dword [edi + 0x3f70]
add eax, 0xc05
mov dword [ebp - 0x20], edx
cmp dword [edi + eax*8], edx
lea eax, [edi + eax*8]
je 0x409f99
movsx eax, word [edi + 0x6024]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [edi + 0x6024], ax
cwde
add eax, 0xc05
lea eax, [edi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x6020]
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.00401d80
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x409ff7
xor ecx, ecx
or edi, 0xffffffff
nop dword [eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [eax + ecx - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x409fe0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
sub esi, dword [edi + 0x4d9c]
xorps xmm1, xmm1
mov eax, dword [edi + 0x4dbc]
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 + 0x4db4]
jl 0x409ef0
mov eax, dword [ebx + 0x4d88]
mov ecx, eax
mov esi, dword [ebx + 0x4d90]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x40a082
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40a07b
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x40a07b
lea ecx, [esi + 0x20]
call fcn.004276e0
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x40a055
cmp byte [ebx + 0x3f7f], 0
je 0x40a147
mov esi, dword [0x4434a8]
lea ecx, [esi + 0x4a88]
call fcn.00401d80
mov edi, dword [esi + 0x4a9c]
test edi, edi
je 0x40a12d
mov ecx, dword [0x4434a8]
mov dword [esi + 0x4a98], 0
mov dword [esi + 0x4a94], 0
test ecx, ecx
je 0x40a11c
movsx eax, word [ecx + 0x6024]
mov edx, dword [ecx + 0x3f70]
add eax, 0xc05
mov dword [ebp - 0x24], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40a112
movsx eax, word [ecx + 0x6024]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x6024], ax
cwde
add eax, 0xc05
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6020]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4a9c], 0
lea ecx, [esi + 0x4e70]
mov dword [esi + 0x4e6c], 0
call fcn.0041b770
call fcn.0042f620
mov eax, dword [ebx + 0x4ad0]
mov byte [ebx + 0x3f7f], 0
test eax, eax
je 0x40a1b2
cmp byte [eax + 0xbb], 0
jne 0x40a1b2
mov eax, dword [0x4434a8]
mov edx, dword [eax + 0x3fc4]
sub edx, 1
js 0x40a1a6
mov eax, dword [eax + 0x3fcc]
lea esi, [eax + edx*4]
nop word [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40a19e
cmp byte [ecx + 0xbb], 0
je 0x40a19e
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x40a1a8
sub esi, 4
sub edx, 1
jns 0x40a180
xor ecx, ecx
mov edx, 1
call fcn.004114d0
mov ecx, dword [ebx + 0x3fe0]
test ecx, ecx
jns 0x40a1d8
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 + 0x3fdc]
call fcn.0041c730
mov dword [ebx + 0x3fdc], 0
mov ecx, dword [ebx + 0x4ab0]
test ecx, ecx
jns 0x40a208
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 + 0x4aac]
call fcn.0041c590
lea esi, [ebx + 0x4a88]
mov dword [ebx + 0x4aac], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40a237
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.0041bf60
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40a24c
push 8
mov ecx, esi
call fcn.0041bf60
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 + 0x4a90]
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebx + 0x4a94]
mov dword [ebx + 0x4958], eax
call fcn.0041bc20
call fcn.0041b1d0
mov edx, dword [0x4434a8]
mov esi, edx
mov dword [esi + 0x4040], 0
mov eax, dword [esi + 0x5ffc]
inc eax
cmp dword [esi + 0x3f70], eax
jne 0x40a38e
mov edi, dword [esi + 0x4048]
test edi, edi
jne 0x40a2b3
mov edi, dword [esi + 0x4058]
cmp dword [esi + 0x6004], edi
je 0x40a306
lea eax, [esi + 0x6008]
mov dword [esi + 0x6004], edi
mov dword [esi + 0x6000], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40a300
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 + 0x6008]
call fcn.0041c8d0
mov edx, dword [0x4434a8]
lea eax, [esi + 0x6008]
mov dword [eax], 0
test edi, edi
je 0x40a38e
mov eax, dword [esi + 0x6000]
test eax, eax
js 0x40a357
mov ecx, eax
cmp eax, dword [esi + 0x6008]
jge 0x40a36a
mov ebx, dword [esi + 0x6010]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x40a350
mov edx, dword [esi + 0x6010]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edx, dword [0x4434a8]
jle 0x40a36a
inc eax
mov dword [esi + 0x6000], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x40a366
mov dword [esi + 0x4040], edi
jmp 0x40a38e
test ecx, ecx
js 0x40a38e
cmp ecx, dword [esi + 0x6008]
jge 0x40a38e
mov eax, dword [esi + 0x6010]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x4040], eax
mov eax, dword [esi + 0x6010]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edx + 0x5fcc]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x40a451
mov ecx, dword [edx + 0x4a54]
mulss xmm1, dword [0x440d10]
shl ecx, 4
cvtps2pd xmm0, xmm1
lea eax, [ecx + 0x39c0]
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 [0x440c94]
lea edx, [esi + 0x39bc]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x39b8]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00405270
mov edx, dword [0x4434a8]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x4a54]
add eax, eax
mov dword [edx + eax*8 + 0x39c4], 0x3f800000
movss xmm0, dword [edx + 0x5fcc]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5fcc], xmm0
jb 0x40a451
mov eax, dword [edx + 0x4a54]
cmp eax, 0x38
je 0x40a447
movups xmm0, xmmword [edx + 0x5fd0]
add eax, eax
movups xmmword [edx + eax*8 + 0x39b8], xmm0
mov dword [edx + 0x4a54], 0x38
mov al, byte [ebx + 0x5fbd]
test al, al
je 0x40a476
sub al, 1
mov byte [ebx + 0x5fbd], al
jne 0x40a476
mov dword [ebx + 0x495c], 0
mov byte [ebx + 0x5fbe], 0
mov al, byte [ebx + 0x5fbc]
test al, al
je 0x40a4af
sub al, 1
mov byte [ebx + 0x5fbc], al
jne 0x40a4af
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.0041ae20
mov eax, dword [ebx + 0x5fb8]
add esp, 4
not eax
mov dword [ebx + 0x5fb8], 0
and dword [ebx + 0x5f98], eax
mov eax, dword [0x4434a8]
xor edx, edx
mov byte [ebx + 0x3f7d], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x49e8], 2
mov dword [eax + 0x4a08], 0x43c80000
mov dword [eax + 0x4a0c], 0x43c80000
mov dword [eax + 0x49f0], 4
call fcn.0040e7b0
add esp, 4
cmp byte [ebx + 0x6a], 0
je 0x40a52c
mov cl, byte [ebx + 0x5fc4]
cmp cl, 0xff
jne 0x40a506
xor edx, edx
jmp 0x40a52f
mov eax, dword [ebx + 0x3f70]
and eax, 0x80000003
jns 0x40a518
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 0x40a52f
or dl, 0xff
mov byte [ebx + 0x5fc4], dl
mov eax, dword [ebx + 0x5f30]
mov esi, dword [ebx + 0x5f38]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40a567
nop dword [eax + eax]
cmp dword [esi + 4], 1
jne 0x40a560
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40a550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret