Function at 0x408030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [0x438420]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 0x5b5c]
sub eax, 1
mov dword [ebp - 8], eax
js 0x4080be
lea ebx, [eax + eax*4]
shl ebx, 2
nop word [eax + eax]
mov ecx, dword [edi + 0x5b64]
cmp dword [ecx + ebx + 4], 7
jne 0x4080b3
mov esi, ecx
mov eax, 0x66666667
sub ecx, esi
add ecx, ebx
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 [edi + 0x5b5c]
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 - 8]
add esp, 0xc
dec dword [edi + 0x5b5c]
dec eax
sub ebx, 0x14
mov dword [ebp - 8], eax
test eax, eax
jns 0x408060
mov eax, dword [edi + 0x5b5c]
mov esi, dword [edi + 0x5b64]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x4080eb
cmp dword [esi + 4], 0
jne 0x4080e4
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x4080d4
mov esi, dword [0x438420]
cmp byte [esi + 0x4a], 0
je 0x408101
test byte [esi + 0xc], 2
jne 0x408101
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5b24], 0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 8], eax
jne 0x408162
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40815b
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.004045b0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x40815b
mov edx, dword [ebp - 4]
test edx, edx
je 0x408145
call fcn.004175d0
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x438420]
test eax, eax
je 0x408154
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 8]
add esp, 4
mov byte [esi + 0x5b24], 1
movss xmm0, dword [esi + 0x5b28]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x4081ea
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5b28], xmm0
jb 0x4081ea
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x4081d9
mov eax, dword [0x438420]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5b28], 0
call fcn.004177f0
mov edx, 0x430f68
mov dword [ebp - 0x14], eax
mov ecx, ebx
call fcn.00404510
mov ebx, eax
test ebx, ebx
je 0x4081e0
push ebx
push dword [ebp - 4]
push 1
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x4081e0
mov byte [esi + 0x96], 1
mov dword [esi + 0x5b28], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3de0]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3dec], 1
mov word [edi + 0x5a88], ax
mov dword [edi + 0x3e54], eax
addsd xmm0, qword [edi + 0x3dd8]
movsd qword [edi + 0x3dd8], xmm0
mov ecx, dword [edi + 0x5a9c]
test ecx, ecx
jns 0x408244
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, [edi + 0x5a98]
call fcn.00418e10
mov dword [edi + 0x5a98], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5d0c]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x435a08]
subss xmm0, dword [edi + eax*4 + 0x5c1c]
addss xmm0, dword [edi + 0x5d14]
movss dword [edi + 0x5d14], xmm0
movss dword [edi + eax*4 + 0x5c1c], xmm1
mov eax, dword [edi + 0x5d0c]
inc eax
movss xmm1, dword [edi + 0x5d14]
cdq
idiv ecx
mov eax, dword [edi + 0x5d10]
movss xmm0, dword [0x435a9c]
inc eax
cmp eax, ecx
mov dword [edi + 0x5d0c], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x43598c]
mov dword [edi + 0x5d10], ecx
jbe 0x4082dd
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [edi + 0x9c], xmm0
mov ecx, dword [edi + 0x3e08]
test ecx, ecx
jns 0x40830b
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, [edi + 0x3e04]
call fcn.00419420
mov dword [edi + 0x3e04], 0
mov cl, byte [edi + 0x46]
call fcn.00411780
mov ebx, dword [0x438420]
xorps xmm3, xmm3
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 0x47f4]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
mov esi, dword [ebx + 0x47f4]
mov eax, dword [ebx + 0x47ec]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x40843d
mov edi, eax
nop word [eax + eax]
mov edx, dword [esi]
add esi, 4
mov eax, dword [edx + 0x94]
mov ecx, dword [edx + 0x98]
mov dword [edx + 0x84], eax
mov eax, dword [edx + 0x9c]
mov dword [edx + 0x88], ecx
mov ecx, dword [edx + 0xa0]
mov dword [edx + 0x8c], eax
mov dword [edx + 0x90], ecx
mov dword [edx + 0x9c], 0
mov dword [edx + 0xa0], 0
mov dword [edx + 0x94], 0
mov dword [edx + 0x98], 0
movss xmm0, dword [edx + 0x88]
movss xmm2, dword [edx + 0x84]
movaps xmm1, xmm2
addss xmm0, dword [edx + 8]
addss xmm1, dword [edx + 4]
movss dword [edx + 0x18], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [edx + 0x14], xmm1
subss xmm0, xmm2
movaps xmm2, xmm3
movaps xmm1, xmm3
addss xmm0, dword [edx + 0x8c]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x88]
addss xmm0, dword [edx + 0x90]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp esi, edi
jne 0x408370
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 0x2c]
mov byte [eax + 0x10], 1
mov esi, dword [ebx + 0x38]
test esi, esi
jne 0x408453
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm2, dword [0x435a08]
mov ecx, dword [ebx + 0x3e60]
movaps xmm0, xmm2
mov dword [ebx + 0x3bcc], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [ebx + 0x30]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [ebx + 0x3bd4], xmm0
test ecx, ecx
je 0x4084af
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x25c]
mulss xmm0, dword [eax + 0x3bd4]
mov eax, dword [ecx + 0x2f8]
test eax, eax
je 0x4084b2
mulss xmm0, dword [eax + 0x25c]
jmp 0x4084b2
movaps xmm0, xmm3
movss xmm7, dword [ebp - 4]
movss xmm5, dword [0x435ab8]
movaps xmm6, xmm7
movss dword [ebx + 0x3bd0], xmm0
movaps xmm4, xmm5
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3bd8], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3bdc], ecx
mov dword [ebx + 0x3dd4], eax
mov dword [ebx + 0x3be0], esi
movss dword [ebx + 0x3be4], xmm0
mov ecx, dword [edi + 0x47f4]
mov eax, dword [edi + 0x47ec]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40855b
nop dword [eax]
mov eax, dword [ecx]
movss xmm3, dword [eax + 4]
comiss xmm7, xmm3
movss xmm2, dword [eax + 8]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0xc]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x10]
jbe 0x408534
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40853c
movaps xmm6, xmm2
comiss xmm0, xmm5
jbe 0x408544
movaps xmm5, xmm0
comiss xmm1, xmm4
jbe 0x40854c
movaps xmm4, xmm1
add ecx, 4
cmp ecx, edx
jne 0x408510
movss xmm2, dword [0x435a08]
movss dword [edi + 0x3bf0], xmm7
movss dword [edi + 0x3bf4], xmm6
movss dword [edi + 0x3bf8], xmm5
movss dword [edi + 0x3bfc], xmm4
mov eax, dword [edi + 0x3860]
movss xmm1, dword [edi + 0x3864]
mov dword [edi + 0x3be8], eax
movss xmm0, dword [edi + 0x3bec]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x408685
movss dword [edi + 0x3bec], xmm1
xor esi, esi
mov ebx, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x408633
movss xmm1, dword [edi + 0x3bec]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x435a30]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x408629
mov eax, 4
jmp 0x408638
cmp eax, 0x200
cmovg eax, ebx
jmp 0x408638
mov eax, 0x30
movss xmm2, dword [0x435a08]
mov byte [esi + edi + 0x3d94], al
inc esi
cmp esi, 0x40
jl 0x4085b3
movsd xmm0, qword [0x435a18]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x435a08]
cvtsd2ss xmm0, xmm0
mov ebx, dword [ebp - 0x10]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3bec]
divss xmm0, xmm1
movss dword [edi + 0x3d90], xmm0
xor edx, edx
mov dword [edi + 0x3c00], 0
cmp byte [edi + 0x385c], dl
je 0x4086a8
mov dword [edi + 0x3c00], 1
mov edx, 1
cmp byte [edi + 0x385d], 0
mov ecx, edx
je 0x4086ca
mov eax, dword [edi + 0x3bcc]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x4086ca
or ecx, 2
mov dword [edi + 0x3c00], ecx
cmp byte [edi + 0x385e], 0
je 0x4086dc
or ecx, 4
mov dword [edi + 0x3c00], ecx
test byte [edi + 0xc], 8
je 0x4086eb
or ecx, 8
mov dword [edi + 0x3c00], ecx
mov ecx, dword [edi + 0x47f4]
mov eax, dword [edi + 0x47ec]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40870d
nop
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x38], 0
cmp ecx, edx
jne 0x408700
cmp byte [edi + 0x49d4], 0
je 0x408741
mov eax, dword [edi + 0x49ec]
cmp eax, dword [edi + 0x3eac]
jne 0x408741
cmp dword [ebx + 0x3eac], eax
jne 0x408732
mov dword [ebx + 0x3eb0], eax
cmp dword [ebx + 0x3ed4], eax
jne 0x408741
mov byte [ebx + 0x3ed8], 1
cmp dword [edi + 0x3e9c], 0
lea eax, [edi + 0x3e98]
mov ecx, dword [eax]
jne 0x40875e
mov dword [edi + 0x3ea4], 0
jmp 0x40876e
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x40877c
cmp dword [edi + 0x3eac], ecx
jne 0x40877c
mov dword [edi + 0x3ea8], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x4087b3
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3ea4]
movss dword [edi + 0x3ea4], xmm0
cmp dword [edi + 0x3eac], edx
je 0x4087b3
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3ea8]
movss dword [edi + 0x3ea8], xmm0
mov eax, dword [edi + 0x3eac]
movaps xmm2, xmm1
mov dword [edi + 0x3e9c], edx
mov dword [esi], 0
mov word [edi + 0x3ea0], 0
test eax, eax
je 0x40880f
cmp dword [edi + 0x3eb0], eax
je 0x40880f
cmp dword [edi + 0x3ed4], eax
jne 0x40880f
test byte [edi + 0x5bc0], 1
je 0x4087fb
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.00418100
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.004073a0
movss xmm2, dword [edi + 0x18]
mov ebx, dword [0x438420]
mov esi, dword [edi + 0x3eac]
test esi, esi
je 0x40882c
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3eb4]
movss dword [edi + 0x3eb4], xmm0
mov eax, dword [edi + 0x3ec8]
addss xmm2, dword [edi + 0x3ee4]
mov dword [edi + 0x3edc], eax
mov al, byte [edi + 0x3ebc]
mov byte [edi + 0x3ed9], al
mov eax, dword [edi + 0x5a0c]
movss dword [edi + 0x3ee4], xmm2
mov dword [edi + 0x3ed4], esi
mov dword [edi + 0x3eb0], 0
mov byte [edi + 0x3ebd], 0
mov byte [edi + 0x3ed8], 0
mov byte [edi + 0x3eb8], 0
test eax, eax
je 0x408891
cmp esi, eax
je 0x408891
mov dword [edi + 0x5a0c], 0
test esi, esi
jne 0x4088b0
mov dword [edi + 0x46b0], esi
mov dword [edi + 0x46a8], esi
mov byte [edi + 0x46ac], 0
mov dword [edi + 0x46b0], esi
jmp 0x4088d5
mov eax, dword [edi + 0x46b0]
test eax, eax
je 0x4088d5
test al, 2
je 0x4088d5
mov edx, 0x20e
mov ecx, ebx
call fcn.004038a0
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [edi + 0x4afc]
mov eax, edi
mov edx, 0x4b18
mov esi, edi
mov ebx, 0x3bb8
test ecx, ecx
je 0x408906
movss xmm0, dword [edi + 0x4b18]
comiss xmm0, dword [edi + 0x3bb8]
jb 0x408910
mov dword [edi + 0x4b0c], ecx
jmp 0x408910
mov dword [edi + 0x4b0c], 0
cmp dword [edi + 0x3e64], 0
je 0x408935
movss xmm0, dword [eax + edx]
comiss xmm0, dword [esi + ebx]
jb 0x40893f
mov eax, dword [edi + 0x3e64]
mov eax, dword [eax + 8]
mov dword [edi + 0x4b10], eax
jmp 0x40893f
mov dword [edi + 0x4b10], 0
movss xmm0, dword [edi + 0x4b04]
mov dword [edi + 0x4b00], ecx
test ecx, ecx
je 0x40896a
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4afc], 0
movss dword [edi + 0x4b04], xmm0
jmp 0x4089aa
comiss xmm0, dword [0x43598c]
jbe 0x4089b4
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x4359bc]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4b08]
addss xmm1, xmm1
movss dword [edi + 0x4b08], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x4089b4
mov dword [edi + 0x4b04], 0
mov dword [edi + 0x4b08], 0
mov eax, dword [edi + 0x4a38]
mov dword [edi + 0x4a3c], eax
mov dword [edi + 0x4a38], 0
mov dword [edi + 0x4a34], 0x7f7fffff
mov word [edi + 0x49d5], 0
mov dword [edi + 0x4a44], 0
call fcn.004104c0
call fcn.00414380
call fcn.00410980
call fcn.00407da0
mov esi, dword [0x438420]
mov ecx, dword [esi + 0x3e6c]
test ecx, ecx
je 0x408ab3
mov eax, dword [esi + 0x3eac]
mov dword [esi + 0x3eb0], eax
cmp dword [esi + 0x3ed4], eax
jne 0x408a2a
mov byte [esi + 0x3ed8], 1
cmp byte [esi + 0xdc4], 0
mov ebx, dword [ecx + 0x300]
je 0x408aa7
lea eax, [esi + 0xdbc]
mov ecx, eax
test eax, eax
jne 0x408a4b
lea ecx, [esi + 0xdbc]
movss xmm0, dword [ecx]
movss xmm1, dword [0x435ab4]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x408aa7
comiss xmm2, xmm1
jb 0x408aa7
movss xmm0, dword [eax]
lea edx, [ebp - 0x20]
subss xmm0, dword [esi + 0x3ec0]
push 1
mov ecx, ebx
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3ec4]
movss dword [ebp - 0x1c], xmm0
call fcn.0040fa60
mov ecx, dword [esi + 0x3e6c]
add esp, 4
xor edx, edx
call fcn.0040f670
jmp 0x408aef
mov dword [esi + 0x3e6c], 0
jmp 0x408ae6
mov ecx, dword [esi + 0x3ec8]
test ecx, ecx
je 0x408aef
mov eax, dword [esi + 0x3eac]
cmp dword [ecx + 0x70], eax
jne 0x408aef
mov dword [esi + 0x3eb0], eax
cmp dword [esi + 0x3ed4], eax
jne 0x408add
mov byte [esi + 0x3ed8], 1
cmp byte [esi + 0xdc4], 0
jne 0x408aef
xor edx, edx
xor ecx, ecx
call fcn.004073a0
mov eax, dword [0x438420]
mov edx, dword [eax + 0x47c4]
sub edx, 1
js 0x408b27
mov eax, dword [eax + 0x47cc]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x408b1f
test dword [ecx + 0xc], 0x8000000
jne 0x408b41
sub eax, 0x28
sub edx, 1
jns 0x408b10
cmp dword [edi + 0x49a8], 0
je 0x408b60
movss xmm0, dword [edi + 0x49b8]
comiss xmm0, dword [0x43598c]
jbe 0x408b60
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x435a3c]
addss xmm1, dword [edi + 0x49d0]
minss xmm1, dword [0x435a08]
jmp 0x408b81
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x435a48]
movss xmm1, dword [edi + 0x49d0]
subss xmm1, xmm0
maxss xmm1, dword [0x43598c]
movss dword [edi + 0x49d0], xmm1
movups xmm0, xmmword [edi + 0x5b04]
mov dword [edi + 0x4b14], 0
mov dword [edi + 0x5d20], 0xffffffff
mov dword [edi + 0x5d1c], 0xffffffff
mov dword [edi + 0x5d18], 0xffffffff
movups xmmword [edi + 0x5b14], xmm0
mov byte [edi + 0x5b04], 0
call fcn.00410d60
cmp byte [edi + 0x3def], 0
jne 0x408bf8
movss xmm0, dword [edi + 0x4c]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x408bf8
movsd xmm1, qword [edi + 0x3dd8]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 4], xmm1
jmp 0x408bfd
movss xmm1, dword [ebp - 4]
mov ebx, dword [edi + 0x3e20]
mov eax, dword [edi + 0x3e18]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x14], eax
cmp ebx, eax
je 0x408da6
mov edi, dword [ebp - 8]
nop word [eax + eax]
mov esi, dword [ebx]
mov ax, word [esi + 0xb6]
mov cl, byte [esi + 0xaa]
mov word [esi + 0xb8], ax
xor eax, eax
mov byte [esi + 0xab], cl
mov byte [esi + 0xaa], 0
mov byte [esi + 0xac], 0
mov word [esi + 0xb6], ax
test cl, cl
jne 0x408d92
cmp byte [esi + 0x358], al
jne 0x408d92
comiss xmm1, dword [esi + 0x23c]
jbe 0x408d92
mov ecx, dword [esi + 0x264]
mov byte [esi + 0x358], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x350], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x354], eax
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x408cd0
mov eax, dword [0x438420]
mov dword [esi + 0xe8], 0
mov dword [esi + 0xe4], 0
test eax, eax
je 0x408cc0
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0xec], 0
mov ecx, dword [esi + 0x264]
call fcn.004215f0
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x408d18
mov eax, dword [0x438420]
mov dword [esi + 0x184], 0
mov dword [esi + 0x180], 0
test eax, eax
je 0x408d08
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x188], 0
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x408d55
mov eax, dword [0x438420]
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1a8], 0
test eax, eax
je 0x408d45
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1b0], 0
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x408d92
mov eax, dword [0x438420]
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1b4], 0
test eax, eax
je 0x408d82
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1bc], 0
movss xmm1, dword [ebp - 4]
add ebx, 4
cmp ebx, dword [ebp - 0x14]
jne 0x408c20
mov edi, dword [ebp - 0xc]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x4aa8], ecx
jle 0x408eef
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x14], edx
nop
mov eax, dword [edi + 0x4ab0]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x408ed6
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x408ed3
mov esi, dword [edi + 0x4a90]
mov ebx, dword [0x438420]
add esi, edx
mov dword [ebp - 0x1c], ebx
mov dword [esi + 0x1a0], 0
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x408e36
mov dword [esi + 0x198], 0
mov dword [esi + 0x194], 0
test ebx, ebx
je 0x408e25
dec dword [ebx + 0xb0]
push eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x19c], 0
mov byte [esi + 0x1e1], 1
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x408e7b
mov eax, dword [0x438420]
mov dword [esi + 0x158], 0
mov dword [esi + 0x154], 0
test eax, eax
je 0x408e6a
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x15c], 0
xor edx, edx
mov byte [esi + 0x1ed], 1
cmp dword [esi + 0x40], edx
jle 0x408ea7
xor ecx, ecx
or ebx, 0xffffffff
nop
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [eax + ecx - 0x20], bx
cmp edx, dword [esi + 0x40]
jl 0x408e90
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x1c]
sub esi, dword [ebx + 0x4a90]
mov eax, 0x84210843
imul esi
mov eax, dword [ebx + 0x4ab0]
add edx, esi
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [ebp - 0x10]
xorps xmm1, xmm1
inc ecx
add edx, 0x1f0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp ecx, dword [edi + 0x4aa8]
jl 0x408dc0
imul ebx, dword [edi + 0x4a7c], 0x68
mov esi, dword [edi + 0x4a84]
add ebx, esi
cmp esi, ebx
je 0x408f32
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x408f2b
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x408f28
lea ecx, [esi + 0x10]
call fcn.00423ee0
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x68
cmp esi, ebx
jne 0x408f05
cmp byte [edi + 0x3def], 0
je 0x408fc7
mov esi, dword [0x438420]
mov eax, dword [esi + 0x47b4]
test eax, eax
je 0x408f82
mov dword [esi + 0x47b0], 0
mov dword [esi + 0x47ac], 0
test esi, esi
je 0x408f6d
dec dword [esi + 0xb0]
mov ebx, dword [ebp - 8]
push eax
call ebx
add esp, 4
mov dword [esi + 0x47b4], 0
jmp 0x408f85
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x47c0]
test ecx, ecx
je 0x408fc2
mov eax, dword [0x438420]
mov dword [esi + 0x47bc], 0
mov dword [esi + 0x47b8], 0
test eax, eax
je 0x408fb2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x47c0], 0
call fcn.0042b7f0
mov eax, dword [edi + 0x47f8]
mov byte [edi + 0x3def], 0
test eax, eax
je 0x409032
cmp byte [eax + 0xab], 0
jne 0x409032
mov eax, dword [0x438420]
mov edx, dword [eax + 0x3e24]
sub edx, 1
js 0x409026
mov eax, dword [eax + 0x3e2c]
lea esi, [eax + edx*4]
nop word [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40901e
cmp byte [ecx + 0xab], 0
je 0x40901e
mov eax, dword [ecx + 0xc]
and eax, 0x40200
cmp eax, 0x40200
jne 0x409028
sub esi, 4
sub edx, 1
jns 0x409000
xor ecx, ecx
mov edx, 1
call fcn.0040f670
mov ecx, dword [edi + 0x3e40]
test ecx, ecx
jns 0x409058
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, [edi + 0x3e3c]
call fcn.004193a0
mov dword [edi + 0x3e3c], 0
mov ecx, dword [edi + 0x47d4]
test ecx, ecx
jns 0x409088
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, [edi + 0x47d0]
call fcn.00419320
lea esi, [edi + 0x47ac]
mov dword [edi + 0x47d0], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4090b7
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.00418e10
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x4090cc
push 8
mov ecx, esi
call fcn.00418e10
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x47b8]
inc dword [esi]
call fcn.00418bd0
call fcn.00418490
mov esi, dword [0x438420]
mov dword [ebp - 0x14], esi
mov dword [esi + 0x3e94], 0
mov eax, dword [esi + 0x5bfc]
inc eax
cmp dword [esi + 0x3de0], eax
jne 0x4091eb
mov ebx, dword [esi + 0x3e9c]
test ebx, ebx
jne 0x409121
mov ebx, dword [esi + 0x3eac]
lea edx, [esi + 0x5c08]
cmp dword [esi + 0x5c04], ebx
je 0x40916e
mov dword [esi + 0x5c04], ebx
mov dword [esi + 0x5c00], 0xffffffff
mov ecx, dword [edx + 4]
test ecx, ecx
jns 0x409168
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 + 0x5c08]
call fcn.004194b0
lea edx, [esi + 0x5c08]
mov dword [edx], 0
test ebx, ebx
je 0x4091eb
mov eax, dword [esi + 0x5c00]
test eax, eax
js 0x4091b8
mov ecx, eax
cmp eax, dword [edx]
jge 0x4091cb
mov edi, dword [esi + 0x5c10]
lea ecx, [eax + eax*8]
cmp byte [edi + ecx*8 + 5], 0
mov edi, dword [ebp - 0xc]
jne 0x4091b1
mov esi, dword [esi + 0x5c10]
lea edi, [eax + eax*8]
mov ecx, eax
cmp byte [esi + edi*8 + 4], 2
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
jle 0x4091cb
inc eax
mov dword [esi + 0x5c00], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x4091c7
mov dword [esi + 0x3e94], ebx
jmp 0x4091eb
test ecx, ecx
js 0x4091eb
cmp ecx, dword [edx]
jge 0x4091eb
mov eax, dword [esi + 0x5c10]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3e94], eax
mov eax, dword [esi + 0x5c10]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5be1]
test al, al
je 0x409209
sub al, 1
mov byte [edi + 0x5be1], al
jne 0x409209
mov dword [edi + 0x46bc], 0
mov al, byte [edi + 0x5be0]
test al, al
je 0x409231
sub al, 1
mov byte [edi + 0x5be0], al
jne 0x409231
push str._Auto_disabled_ImGuiDebugLogFlags_EventClipper_to_avoid_spamming__n
call fcn.00418100
add esp, 4
and dword [edi + 0x5bc0], 0xffffffef
mov eax, dword [0x438420]
xor edx, edx
mov byte [edi + 0x3ded], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x471c], 2
mov dword [eax + 0x473c], 0x43c80000
mov dword [eax + 0x4740], 0x43c80000
mov dword [eax + 0x4724], 4
call fcn.0040cbb0
add esp, 4
cmp byte [edi + 0x65], 0
je 0x4092ae
mov cl, byte [edi + 0x5be2]
cmp cl, 0xff
jne 0x409288
xor edx, edx
jmp 0x4092b1
mov eax, dword [edi + 0x3de0]
and eax, 0x80000003
jns 0x40929a
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 0x4092b1
or dl, 0xff
mov byte [edi + 0x5be2], dl
mov eax, dword [edi + 0x5b5c]
mov esi, dword [edi + 0x5b64]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x4092e7
nop dword [eax]
cmp dword [esi + 4], 1
jne 0x4092e0
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x4092d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret