Function at 0x408bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [0x43b4a8]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5e70]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x408c4e
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5e78]
cmp dword [ecx + edi + 4], 7
jne 0x408c43
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 + 0x5e70]
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 + 0x5e70]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x408bf0
mov eax, dword [ebx + 0x5e70]
mov esi, dword [ebx + 0x5e78]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x408c7b
cmp dword [esi + 4], 0
jne 0x408c74
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x408c64
mov esi, dword [0x43b4a8]
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
cmp byte [esi + 0x5e38], 0
jne 0x408d38
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x408d31
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00404950
mov edi, eax
add esp, 8
test edi, edi
je 0x408d31
mov edx, dword [ebp - 4]
test edx, edx
je 0x408cd0
mov ecx, edi
call fcn.00419470
mov ecx, dword [0x43b4a8]
test ecx, ecx
je 0x408d2a
movsx eax, word [ecx + 0x5f64]
mov edx, dword [ecx + 0x3f50]
add eax, 0xbed
mov dword [ebp - 0x18], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x408d20
movsx eax, word [ecx + 0x5f64]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x18]
mov word [ecx + 0x5f64], ax
cwde
add eax, 0xbed
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5f60]
push edi
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5e38], 1
movss xmm0, dword [esi + 0x5e3c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x408dc0
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5e3c], xmm0
jb 0x408dc0
mov edi, dword [esi + 0x20]
test edi, edi
je 0x408daf
mov eax, dword [0x43b4a8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5e3c], 0
call fcn.00419690
mov edx, 0x4340dc
mov dword [ebp - 0x18], eax
mov ecx, edi
call fcn.004047d0
mov edi, eax
test edi, edi
je 0x408db6
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 0x408db6
mov byte [esi + 0x9e], 1
mov dword [esi + 0x5e3c], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f50]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f5c], 1
mov word [ebx + 0x5d9c], ax
mov dword [ebx + 0x3fd4], eax
addsd xmm0, qword [ebx + 0x3f48]
movsd qword [ebx + 0x3f48], xmm0
mov ecx, dword [ebx + 0x5db0]
test ecx, ecx
jns 0x408e1a
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 + 0x5dac]
call fcn.0041af70
mov dword [ebx + 0x5dac], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x6088]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x5f98]
addss xmm0, dword [ebx + 0x6090]
movss dword [ebx + 0x6090], xmm0
movss dword [ebx + eax*4 + 0x5f98], xmm1
mov eax, dword [ebx + 0x6088]
inc eax
movss xmm1, dword [ebx + 0x6090]
cdq
idiv ecx
mov eax, dword [ebx + 0x608c]
movss xmm0, dword [0x438cac]
inc eax
cmp eax, ecx
mov dword [ebx + 0x6088], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x438b9c]
mov dword [ebx + 0x608c], ecx
jbe 0x408eb0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x438c24]
divss xmm0, xmm1
movss dword [ebx + 0xa4], xmm0
mov ecx, dword [ebx + 0x3f88]
test ecx, ecx
jns 0x408ede
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 + 0x3f84]
call fcn.0041b8c0
mov dword [ebx + 0x3f84], 0
mov cl, byte [ebx + 0x46]
call fcn.00413170
mov esi, dword [0x43b4a8]
mov eax, dword [esi + 0x4aa4]
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 + 0x4aa4]
mov eax, dword [esi + 0x4a9c]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x40900d
mov ebx, eax
nop dword [eax + 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 0x408f40
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.004089b0
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x409028
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x438c24]
mov ecx, dword [esi + 0x3fe4]
mov dword [esi + 0x3d30], edi
mulss xmm1, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x4c]
maxss xmm0, xmm1
movss dword [esi + 0x3d38], xmm0
test ecx, ecx
je 0x409081
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x3d38]
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x409084
mulss xmm1, dword [eax + 0x270]
jmp 0x409084
xorps xmm1, xmm1
movss dword [esi + 0x3d34], xmm1
movaps xmm0, xmm1
divss xmm0, dword [edi + 0x10]
movss dword [esi + 0x3d3c], xmm0
mov edx, dword [edi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x3d44], eax
lea eax, [edx + 0x60]
mov dword [esi + 0x3d48], ecx
mov dword [esi + 0x3f44], eax
mov dword [esi + 0x3d4c], edi
movss dword [esi + 0x3d50], xmm1
movss dword [esi + 0x3d54], xmm0
mov ecx, dword [ebx + 0x4aa4]
mov eax, dword [ebx + 0x4a9c]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x4090f0
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x4090e3
cmp byte [ebx + 0x4ca4], 0
je 0x409124
mov eax, dword [ebx + 0x4cbc]
cmp eax, dword [ebx + 0x4038]
jne 0x409124
cmp dword [esi + 0x4038], eax
jne 0x409115
mov dword [esi + 0x403c], eax
cmp dword [esi + 0x4060], eax
jne 0x409124
mov byte [esi + 0x4064], 1
cmp dword [ebx + 0x4028], 0
jne 0x409139
mov dword [ebx + 0x402c], 0
jmp 0x40914b
mov eax, dword [ebx + 0x4024]
test eax, eax
je 0x409155
cmp dword [ebx + 0x4038], eax
jne 0x409155
mov dword [ebx + 0x4030], 0
mov eax, dword [ebx + 0x4024]
test eax, eax
je 0x40918f
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x402c]
movss dword [ebx + 0x402c], xmm0
cmp dword [ebx + 0x4038], eax
je 0x40918f
addss xmm1, dword [ebx + 0x4030]
movss dword [ebx + 0x4030], xmm1
mov dword [ebx + 0x4028], eax
mov eax, dword [ebx + 0x4038]
mov dword [ebx + 0x4024], 0
mov word [ebx + 0x4034], 0
test eax, eax
je 0x4091e7
cmp dword [ebx + 0x403c], eax
je 0x4091e7
cmp dword [ebx + 0x4060], eax
jne 0x4091e7
test byte [ebx + 0x5ed8], 1
je 0x4091d8
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041a010
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00407ad0
mov esi, dword [0x43b4a8]
mov ecx, dword [ebx + 0x4038]
test ecx, ecx
je 0x409206
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4040]
movss dword [ebx + 0x4040], xmm0
mov eax, dword [ebx + 0x4058]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4070]
mov dword [ebx + 0x4068], eax
mov al, byte [ebx + 0x4048]
mov byte [ebx + 0x4065], al
mov eax, dword [ebx + 0x5cfc]
movss dword [ebx + 0x4070], xmm0
mov dword [ebx + 0x4060], ecx
mov dword [ebx + 0x403c], 0
mov byte [ebx + 0x4049], 0
mov byte [ebx + 0x4064], 0
mov byte [ebx + 0x4044], 0
test eax, eax
je 0x409270
cmp ecx, eax
je 0x409270
mov dword [ebx + 0x5cfc], 0
test ecx, ecx
jne 0x40928e
mov dword [ebx + 0x4934], ecx
mov dword [ebx + 0x4928], ecx
mov byte [ebx + 0x492c], cl
mov dword [ebx + 0x4934], ecx
jmp 0x4092b7
mov eax, dword [ebx + 0x4934]
test eax, eax
je 0x4092b7
test al, 2
je 0x4092b7
mov eax, dword [ebx + 0x4038]
mov dword [esi + 0x4150], eax
mov dword [esi + 0x414c], eax
mov word [esi + 0x4154], 0
mov ecx, dword [ebx + 0x4de0]
test ecx, ecx
je 0x4092da
movss xmm0, dword [ebx + 0x4dfc]
comiss xmm0, dword [ebx + 0x3d1c]
jb 0x4092e4
mov dword [ebx + 0x4df0], ecx
jmp 0x4092e4
mov dword [ebx + 0x4df0], 0
mov eax, dword [ebx + 0x3fe8]
test eax, eax
je 0x40930a
movss xmm0, dword [ebx + 0x4dfc]
comiss xmm0, dword [ebx + 0x3d1c]
jb 0x409314
mov eax, dword [eax + 8]
mov dword [ebx + 0x4df4], eax
jmp 0x409314
mov dword [ebx + 0x4df4], 0
movss xmm0, dword [ebx + 0x4de8]
mov dword [ebx + 0x4de4], ecx
test ecx, ecx
je 0x40933f
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4de0], 0
movss dword [ebx + 0x4de8], xmm0
jmp 0x40937f
comiss xmm0, dword [0x438b9c]
jbe 0x409389
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x438bd0]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4dec]
addss xmm1, xmm1
movss dword [ebx + 0x4dec], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x409389
mov dword [ebx + 0x4de8], 0
mov dword [ebx + 0x4dec], 0
mov eax, dword [ebx + 0x4d18]
mov dword [ebx + 0x4d1c], eax
mov dword [ebx + 0x4d18], 0
mov dword [ebx + 0x4d14], 0x7f7fffff
mov word [ebx + 0x4ca5], 0
mov dword [ebx + 0x4d24], 0
call fcn.00411e60
call fcn.00415fc0
call fcn.004123e0
call fcn.004086f0
mov esi, dword [0x43b4a8]
mov ecx, dword [esi + 0x3ff4]
test ecx, ecx
je 0x409488
mov eax, dword [esi + 0x4038]
mov dword [esi + 0x403c], eax
cmp dword [esi + 0x4060], eax
jne 0x4093ff
mov byte [esi + 0x4064], 1
cmp byte [esi + 0xcc], 0
mov edi, dword [ecx + 0x314]
je 0x40947c
lea eax, [esi + 0xc4]
mov ecx, eax
test eax, eax
jne 0x409420
lea ecx, [esi + 0xc4]
movss xmm0, dword [ecx]
movss xmm1, dword [0x438cc4]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x40947c
comiss xmm2, xmm1
jb 0x40947c
movss xmm0, dword [eax]
lea edx, [ebp - 0x24]
subss xmm0, dword [esi + 0x4050]
push 1
mov ecx, edi
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x4054]
movss dword [ebp - 0x20], xmm0
call fcn.00410ea0
mov ecx, dword [esi + 0x3ff4]
add esp, 4
xor edx, edx
call fcn.00410a50
jmp 0x4094c4
mov dword [esi + 0x3ff4], 0
jmp 0x4094bb
mov ecx, dword [esi + 0x4058]
test ecx, ecx
je 0x4094c4
mov eax, dword [esi + 0x4038]
cmp dword [ecx + 0x7c], eax
jne 0x4094c4
mov dword [esi + 0x403c], eax
cmp dword [esi + 0x4060], eax
jne 0x4094b2
mov byte [esi + 0x4064], 1
cmp byte [esi + 0xcc], 0
jne 0x4094c4
xor edx, edx
xor ecx, ecx
call fcn.00407ad0
mov eax, dword [0x43b4a8]
movss xmm2, dword [0x438c58]
mov edx, dword [eax + 0x4a78]
sub edx, 1
js 0x409507
mov eax, dword [eax + 0x4a80]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop dword [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x4094ff
test dword [ecx + 0xc], 0x8000000
jne 0x409521
sub eax, 0x28
sub edx, 1
jns 0x4094f0
cmp dword [ebx + 0x4c74], 0
je 0x40953c
movss xmm0, dword [ebx + 0x4c84]
comiss xmm0, dword [0x438b9c]
jbe 0x40953c
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4ca0]
minss xmm1, dword [0x438c24]
jmp 0x40955d
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x438c64]
movss xmm1, dword [ebx + 0x4ca0]
subss xmm1, xmm0
maxss xmm1, dword [0x438b9c]
movss dword [ebx + 0x4ca0], xmm1
movups xmm0, xmmword [ebx + 0x5e18]
mov dword [ebx + 0x4df8], 0
mov dword [ebx + 0x609c], 0xffffffff
mov dword [ebx + 0x6098], 0xffffffff
mov dword [ebx + 0x6094], 0xffffffff
movups xmmword [ebx + 0x5e28], xmm0
mov byte [ebx + 0x5e18], 0
call fcn.00412770
cmp byte [ebx + 0x3f5f], 0
jne 0x4095d4
movss xmm1, dword [ebx + 0x4c]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x4095d4
movsd xmm0, qword [ebx + 0x3f48]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x4095d9
movss xmm0, dword [ebp - 4]
mov edi, dword [ebx + 0x3fa0]
mov eax, dword [ebx + 0x3f98]
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x4096b1
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 0x40969e
cmp byte [esi + 0x370], al
jne 0x40969e
comiss xmm0, dword [esi + 0x250]
jbe 0x40969e
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.00401d30
mov ecx, dword [esi + 0x278]
call fcn.00423f40
lea ecx, [esi + 0x190]
call fcn.00401d30
lea ecx, [esi + 0x1bc]
call fcn.00401d30
lea ecx, [esi + 0x1c8]
call fcn.00401d30
movss xmm0, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x409600
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4d8c], ecx
jle 0x409804
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x18], edx
nop word [eax + eax]
mov eax, dword [ebx + 0x4d94]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x4097eb
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x4097eb
mov esi, dword [ebx + 0x4d74]
mov edi, dword [0x43b4a8]
add esi, edx
mov dword [ebp - 0x20], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x409790
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x40977f
movsx eax, word [edi + 0x5f64]
mov edx, dword [edi + 0x3f50]
add eax, 0xbed
mov dword [ebp - 0x1c], edx
cmp dword [edi + eax*8], edx
lea eax, [edi + eax*8]
je 0x409775
movsx eax, word [edi + 0x5f64]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [edi + 0x5f64], ax
cwde
add eax, 0xbed
lea eax, [edi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x5f60]
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.00401d30
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x4097cc
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x4097b5
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x20]
sub esi, dword [edi + 0x4d74]
xorps xmm1, xmm1
mov eax, dword [edi + 0x4d94]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
inc ecx
add edx, 0x200
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
cmp ecx, dword [ebx + 0x4d8c]
jl 0x4096d0
mov eax, dword [ebx + 0x4d60]
mov ecx, eax
mov esi, dword [ebx + 0x4d68]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x40984e
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x409847
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x409847
lea ecx, [esi + 0x20]
call fcn.00426870
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x409821
cmp byte [ebx + 0x3f5f], 0
je 0x4098fa
mov esi, dword [0x43b4a8]
lea ecx, [esi + 0x4a60]
call fcn.00401d30
mov edi, dword [esi + 0x4a74]
test edi, edi
je 0x4098f5
mov ecx, dword [0x43b4a8]
mov dword [esi + 0x4a70], 0
mov dword [esi + 0x4a6c], 0
test ecx, ecx
je 0x4098e4
movsx eax, word [ecx + 0x5f64]
mov edx, dword [ecx + 0x3f50]
add eax, 0xbed
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x4098da
movsx eax, word [ecx + 0x5f64]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5f64], ax
cwde
add eax, 0xbed
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5f60]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4a74], 0
call fcn.0042d520
mov eax, dword [ebx + 0x4aa8]
mov byte [ebx + 0x3f5f], 0
test eax, eax
je 0x409962
cmp byte [eax + 0xbb], 0
jne 0x409962
mov eax, dword [0x43b4a8]
mov edx, dword [eax + 0x3fa4]
sub edx, 1
js 0x409956
mov eax, dword [eax + 0x3fac]
lea esi, [eax + edx*4]
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40994e
cmp byte [ecx + 0xbb], 0
je 0x40994e
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x409958
sub esi, 4
sub edx, 1
jns 0x409930
xor ecx, ecx
mov edx, 1
call fcn.00410a50
mov ecx, dword [ebx + 0x3fc0]
test ecx, ecx
jns 0x409988
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 + 0x3fbc]
call fcn.0041b800
mov dword [ebx + 0x3fbc], 0
mov ecx, dword [ebx + 0x4a88]
test ecx, ecx
jns 0x4099b8
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 + 0x4a84]
call fcn.0041b660
lea esi, [ebx + 0x4a60]
mov dword [ebx + 0x4a84], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4099e7
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.0041af70
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x4099fc
push 8
mov ecx, esi
call fcn.0041af70
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x4a6c]
inc dword [esi]
call fcn.0041ac40
call fcn.0041a3c0
mov edx, dword [0x43b4a8]
mov esi, edx
mov dword [esi + 0x4020], 0
mov eax, dword [esi + 0x5f3c]
inc eax
cmp dword [esi + 0x3f50], eax
jne 0x409b2b
mov edi, dword [esi + 0x4028]
test edi, edi
jne 0x409a50
mov edi, dword [esi + 0x4038]
cmp dword [esi + 0x5f44], edi
je 0x409aa3
lea eax, [esi + 0x5f48]
mov dword [esi + 0x5f44], edi
mov dword [esi + 0x5f40], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x409a9d
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 + 0x5f48]
call fcn.0041b9a0
mov edx, dword [0x43b4a8]
lea eax, [esi + 0x5f48]
mov dword [eax], 0
test edi, edi
je 0x409b2b
mov eax, dword [esi + 0x5f40]
test eax, eax
js 0x409af4
mov ecx, eax
cmp eax, dword [esi + 0x5f48]
jge 0x409b07
mov ebx, dword [esi + 0x5f50]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x409aed
mov edx, dword [esi + 0x5f50]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edx, dword [0x43b4a8]
jle 0x409b07
inc eax
mov dword [esi + 0x5f40], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x409b03
mov dword [esi + 0x4020], edi
jmp 0x409b2b
test ecx, ecx
js 0x409b2b
cmp ecx, dword [esi + 0x5f48]
jge 0x409b2b
mov eax, dword [esi + 0x5f50]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x4020], eax
mov eax, dword [esi + 0x5f50]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edx + 0x5f0c]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x409bee
mov ecx, dword [edx + 0x4a2c]
mulss xmm1, dword [0x438c58]
shl ecx, 4
cvtps2pd xmm0, xmm1
lea eax, [ecx + 0x39a4]
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 [0x438bec]
lea edx, [esi + 0x39a0]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x399c]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00404bf0
mov edx, dword [0x43b4a8]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x4a2c]
add eax, eax
mov dword [edx + eax*8 + 0x39a8], 0x3f800000
movss xmm0, dword [edx + 0x5f0c]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5f0c], xmm0
jb 0x409bee
mov eax, dword [edx + 0x4a2c]
cmp eax, 0x38
je 0x409be4
movups xmm0, xmmword [edx + 0x5f10]
add eax, eax
movups xmmword [edx + eax*8 + 0x399c], xmm0
mov dword [edx + 0x4a2c], 0x38
mov al, byte [ebx + 0x5efd]
test al, al
je 0x409c13
sub al, 1
mov byte [ebx + 0x5efd], al
jne 0x409c13
mov dword [ebx + 0x4940], 0
mov byte [ebx + 0x5efe], 0
mov al, byte [ebx + 0x5efc]
test al, al
je 0x409c4c
sub al, 1
mov byte [ebx + 0x5efc], al
jne 0x409c4c
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.0041a010
mov eax, dword [ebx + 0x5ef8]
add esp, 4
not eax
mov dword [ebx + 0x5ef8], 0
and dword [ebx + 0x5ed8], eax
mov eax, dword [0x43b4a8]
xor edx, edx
mov byte [ebx + 0x3f5d], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x49c0], 2
mov dword [eax + 0x49e0], 0x43c80000
mov dword [eax + 0x49e4], 0x43c80000
mov dword [eax + 0x49c8], 4
call fcn.0040ddc0
add esp, 4
cmp byte [ebx + 0x66], 0
je 0x409cc9
mov cl, byte [ebx + 0x5f04]
cmp cl, 0xff
jne 0x409ca3
xor edx, edx
jmp 0x409ccc
mov eax, dword [ebx + 0x3f50]
and eax, 0x80000003
jns 0x409cb5
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 0x409ccc
or dl, 0xff
mov byte [ebx + 0x5f04], dl
mov eax, dword [ebx + 0x5e70]
mov esi, dword [ebx + 0x5e78]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x409cff
cmp dword [esi + 4], 1
jne 0x409cf8
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x409ce8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret