Function at 0x40b1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [0x44c448]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5f30]
sub eax, 1
mov dword [ebp - 4], eax
js 0x40b24e
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5f38]
cmp dword [ecx + edi + 4], 7
jne 0x40b243
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 - 4]
add esp, 0xc
dec dword [ebx + 0x5f30]
dec eax
sub edi, 0x14
mov dword [ebp - 4], eax
test eax, eax
jns 0x40b1f0
mov eax, dword [ebx + 0x5f30]
mov esi, dword [ebx + 0x5f38]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40b27b
cmp dword [esi + 4], 0
jne 0x40b274
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40b264
mov esi, dword [0x44c448]
cmp dword [esi + 0x3898], 0
je 0x40b2a5
mov eax, dword [esi + 0x38a8]
test eax, eax
je 0x40b29b
cmp eax, 0x41e100
jne 0x40b2a5
mov dword [esi + 0x38a8], 0x4169f0
cmp dword [esi + 0x389c], 0
je 0x40b2c9
mov eax, dword [esi + 0x38ac]
test eax, eax
je 0x40b2bf
cmp eax, 0x41e1d0
jne 0x40b2c9
mov dword [esi + 0x38ac], 0x416a10
cmp byte [esi + 0x5ef8], 0
jne 0x40b30f
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40b308
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00406c30
mov edi, eax
add esp, 8
test edi, edi
je 0x40b308
mov edx, dword [ebp - 4]
test edx, edx
je 0x40b301
mov ecx, edi
call fcn.0041d7e0
mov ecx, edi
call fcn.0040a8a0
mov byte [esi + 0x5ef8], 1
movss xmm1, dword [esi + 0x5efc]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x40b397
subss xmm1, dword [esi + 0x18]
comiss xmm0, xmm1
movss dword [esi + 0x5efc], xmm1
jb 0x40b397
mov edi, dword [esi + 0x20]
test edi, edi
je 0x40b386
mov eax, dword [0x44c448]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5efc], 0
call fcn.0041d9c0
mov edx, 0x4448e8
mov dword [ebp - 0x10], eax
mov ecx, edi
call fcn.00406b40
mov edi, eax
test edi, edi
je 0x40b38d
push edi
push dword [ebp - 4]
push 1
push dword [ebp - 0x10]
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 0x40b38d
mov byte [esi + 0x88], 1
mov dword [esi + 0x5efc], 0
movss xmm1, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f70]
cvtps2pd xmm0, xmm1
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 0x40b431
mov eax, ecx
xor esi, esi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg esi, eax
cmp esi, ecx
jle 0x40b431
lea ecx, [esi*4]
call fcn.0040a810
mov edi, eax
mov eax, dword [ebx + 0x5e74]
test eax, eax
je 0x40b420
mov ecx, dword [ebx + 0x5e6c]
shl ecx, 2
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x5e74]
add esp, 0xc
call fcn.0040a8a0
mov dword [ebx + 0x5e74], edi
mov dword [ebx + 0x5e70], esi
movss xmm1, dword [ebx + 0x18]
mov dword [ebx + 0x5e6c], 0
movaps xmm0, xmm1
mov eax, dword [ebx + 0x614c]
mov ecx, 0x3c
subss xmm0, dword [ebx + eax*4 + 0x605c]
addss xmm0, dword [ebx + 0x6154]
movss dword [ebx + 0x6154], xmm0
movss dword [ebx + eax*4 + 0x605c], xmm1
mov eax, dword [ebx + 0x614c]
inc eax
movss xmm1, dword [ebx + 0x6154]
cdq
idiv ecx
mov eax, dword [ebx + 0x6150]
movss xmm0, dword [0x449a40]
inc eax
cmp eax, ecx
mov dword [ebx + 0x614c], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x4498dc]
mov dword [ebx + 0x6150], ecx
jbe 0x40b4c2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x44998c]
divss xmm0, xmm1
push ecx
lea ecx, [ebx + 0x3fa4]
movss dword [ebx + 0x8c], xmm0
call fcn.0041f0d0
mov cl, byte [ebx + 0x47]
call fcn.004160a0
mov esi, dword [0x44c448]
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 0x40b5f8
mov ebx, eax
mov edx, dword [edi]
xorps xmm2, xmm2
add edi, 4
mov eax, dword [edx + 0x9c]
mov ecx, dword [edx + 0xa0]
movss xmm1, dword [edx + 8]
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 eax, dword [edx + 0xa4]
mov dword [edx + 0xa8], 0
mov ecx, dword [edx + 0xa8]
mov dword [edx + 0x9c], eax
mov dword [edx + 0xa0], ecx
movss xmm0, dword [edx + 0x90]
addss xmm0, dword [edx + 0xc]
addss xmm1, dword [edx + 0x8c]
movss dword [edx + 0x1c], xmm0
movss xmm0, dword [edx + 0x10]
movss dword [edx + 0x18], xmm1
xorps xmm1, xmm1
subss xmm0, dword [edx + 0x8c]
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 0x40b526
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.0040af90
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x40b613
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x44998c]
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 0x40b66c
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x3d54]
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x40b66f
mulss xmm1, dword [eax + 0x270]
jmp 0x40b66f
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 0x40b6dd
nop
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x40b6d0
cmp byte [ebx + 0x4ccc], 0
je 0x40b711
mov eax, dword [ebx + 0x4ce4]
cmp eax, dword [ebx + 0x4058]
jne 0x40b711
cmp dword [esi + 0x4058], eax
jne 0x40b702
mov dword [esi + 0x405c], eax
cmp dword [esi + 0x4080], eax
jne 0x40b711
mov byte [esi + 0x4084], 1
cmp dword [ebx + 0x4048], 0
mov eax, dword [ebx + 0x4044]
jne 0x40b72c
mov dword [ebx + 0x404c], 0
jmp 0x40b73a
mov ecx, eax
test eax, eax
je 0x40b746
cmp dword [ebx + 0x4058], eax
jne 0x40b74a
mov dword [ebx + 0x4050], 0
mov ecx, eax
test ecx, ecx
je 0x40b77e
movss xmm1, dword [ebx + 0x18]
mov eax, dword [ebx + 0x4058]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x404c]
movss dword [ebx + 0x404c], xmm0
cmp eax, ecx
je 0x40b784
addss xmm1, dword [ebx + 0x4050]
movss dword [ebx + 0x4050], xmm1
jmp 0x40b784
mov eax, dword [ebx + 0x4058]
mov dword [ebx + 0x4048], ecx
mov dword [ebx + 0x4044], 0
mov word [ebx + 0x4054], 0
test eax, eax
je 0x40b7d0
cmp dword [ebx + 0x405c], eax
je 0x40b7d0
cmp dword [ebx + 0x4080], eax
jne 0x40b7d0
test byte [ebx + 0x5f9c], 1
je 0x40b7c7
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041e360
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.0040a0c0
mov ecx, dword [ebx + 0x4058]
test ecx, ecx
je 0x40b7ef
movss xmm0, dword [ebx + 0x4060]
addss xmm0, dword [ebx + 0x18]
movss dword [ebx + 0x4060], xmm0
movss xmm2, dword [ebx + 0x18]
mov eax, dword [ebx + 0x4078]
movaps xmm0, xmm2
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 0x40b85c
cmp ecx, eax
je 0x40b85c
mov dword [ebx + 0x5dbc], 0
test ecx, ecx
jne 0x40b86c
mov dword [ebx + 0x4948], ecx
mov byte [ebx + 0x494c], cl
mov ecx, dword [ebx + 0x4e9c]
test ecx, ecx
je 0x40b88f
movss xmm0, dword [ebx + 0x4eb8]
comiss xmm0, dword [ebx + 0x3d38]
jb 0x40b899
mov dword [ebx + 0x4eac], ecx
jmp 0x40b899
mov dword [ebx + 0x4eac], 0
mov eax, dword [ebx + 0x4008]
test eax, eax
je 0x40b8bf
movss xmm0, dword [ebx + 0x4eb8]
comiss xmm0, dword [ebx + 0x3d38]
jb 0x40b8c9
mov eax, dword [eax + 8]
mov dword [ebx + 0x4eb0], eax
jmp 0x40b8c9
mov dword [ebx + 0x4eb0], 0
movss xmm0, dword [ebx + 0x4ea4]
mov dword [ebx + 0x4ea0], ecx
test ecx, ecx
je 0x40b8f3
addss xmm2, xmm0
mov dword [ebx + 0x4e9c], 0
movss dword [ebx + 0x4ea4], xmm2
jmp 0x40b92e
comiss xmm0, dword [0x4498dc]
jbe 0x40b938
movss xmm0, dword [0x44992c]
movaps xmm1, xmm2
addss xmm1, dword [ebx + 0x4ea8]
addss xmm2, xmm2
movss dword [ebx + 0x4ea8], xmm1
maxss xmm0, xmm2
comiss xmm1, xmm0
jb 0x40b938
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.00414e10
call fcn.00419c60
call fcn.00415340
call fcn.0040acf0
mov esi, dword [0x44c448]
mov ecx, dword [esi + 0x4014]
test ecx, ecx
je 0x40ba21
mov eax, dword [esi + 0x4058]
mov dword [esi + 0x405c], eax
cmp dword [esi + 0x4080], eax
jne 0x40b9ae
mov byte [esi + 0x4084], 1
cmp byte [esi + 0xb4], 0
je 0x40ba15
movss xmm1, dword [esi + 0xac]
movss xmm2, dword [0x449a70]
comiss xmm1, xmm2
movss xmm0, dword [esi + 0xb0]
jb 0x40ba15
comiss xmm0, xmm2
jb 0x40ba15
subss xmm1, dword [esi + 0x4070]
subss xmm0, dword [esi + 0x4074]
mov ecx, dword [ecx + 0x314]
lea edx, [ebp - 0x18]
push 1
movss dword [ebp - 0x18], xmm1
movss dword [ebp - 0x14], xmm0
call fcn.00413b30
mov ecx, dword [esi + 0x4014]
add esp, 4
xor edx, edx
call fcn.004135d0
jmp 0x40ba5d
mov dword [esi + 0x4014], 0
jmp 0x40ba54
mov ecx, dword [esi + 0x4078]
test ecx, ecx
je 0x40ba5d
mov eax, dword [esi + 0x4058]
cmp dword [ecx + 0x7c], eax
jne 0x40ba5d
mov dword [esi + 0x405c], eax
cmp dword [esi + 0x4080], eax
jne 0x40ba4b
mov byte [esi + 0x4084], 1
cmp byte [esi + 0xb4], 0
jne 0x40ba5d
xor edx, edx
xor ecx, ecx
call fcn.0040a0c0
mov eax, dword [0x44c448]
mov edx, dword [eax + 0x4aa0]
sub edx, 1
js 0x40ba97
mov eax, dword [eax + 0x4aa8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x40ba8f
test dword [ecx + 0xc], 0x8000000
jne 0x40bab1
sub eax, 0x28
sub edx, 1
jns 0x40ba80
cmp dword [ebx + 0x4c9c], 0
je 0x40bad0
movss xmm0, dword [ebx + 0x4cac]
comiss xmm0, dword [0x4498dc]
jbe 0x40bad0
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x4499dc]
addss xmm1, dword [ebx + 0x4cc8]
minss xmm1, dword [0x44998c]
jmp 0x40baf1
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x4499e8]
movss xmm1, dword [ebx + 0x4cc8]
subss xmm1, xmm0
maxss xmm1, dword [0x4498dc]
movups xmm0, xmmword [ebx + 0x5ed8]
mov dword [ebx + 0x4eb4], 0
movss dword [ebx + 0x4cc8], xmm1
mov dword [ebx + 0x6160], 0xffffffff
mov dword [ebx + 0x615c], 0xffffffff
mov dword [ebx + 0x6158], 0xffffffff
movups xmmword [ebx + 0x5ee8], xmm0
mov byte [ebx + 0x5ed8], 0
call fcn.004157d0
cmp byte [ebx + 0x3f7f], 0
jne 0x40bb68
movss xmm1, dword [ebx + 0x50]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40bb68
movsd xmm0, qword [ebx + 0x3f68]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x40bb70
movss xmm0, dword [0x449a40]
mov edi, dword [ebx + 0x3fc0]
mov eax, dword [ebx + 0x3fb8]
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], eax
cmp edi, eax
je 0x40bcd5
mov ebx, eax
nop dword [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 0x40bcc2
cmp byte [esi + 0x370], al
jne 0x40bcc2
comiss xmm0, dword [esi + 0x250]
jbe 0x40bcc2
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]
mov dword [esi + 0x36c], eax
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x40bc30
mov dword [esi + 0xf8], 0
mov dword [esi + 0xf4], 0
call fcn.0040a8a0
mov dword [esi + 0xfc], 0
mov ecx, dword [esi + 0x278]
call fcn.00426e40
mov ecx, dword [esi + 0x198]
test ecx, ecx
je 0x40bc68
mov dword [esi + 0x194], 0
mov dword [esi + 0x190], 0
call fcn.0040a8a0
mov dword [esi + 0x198], 0
mov ecx, dword [esi + 0x1c4]
test ecx, ecx
je 0x40bc95
mov dword [esi + 0x1c0], 0
mov dword [esi + 0x1bc], 0
call fcn.0040a8a0
mov dword [esi + 0x1c4], 0
mov ecx, dword [esi + 0x1d0]
test ecx, ecx
je 0x40bcc2
mov dword [esi + 0x1cc], 0
mov dword [esi + 0x1c8], 0
call fcn.0040a8a0
mov dword [esi + 0x1d0], 0
movss xmm0, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x40bb90
mov ebx, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0xc], edi
cmp dword [ebx + 0x4db4], edi
jle 0x40bdef
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], ecx
nop
mov eax, dword [ebx + 0x4dbc]
movss xmm1, dword [eax + edi*4]
comiss xmm1, xmm0
jb 0x40bdd6
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm1
jbe 0x40bdd6
mov esi, dword [ebx + 0x4d9c]
mov eax, dword [0x44c448]
add esi, ecx
mov dword [ebp - 0x14], eax
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40bd59
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
call fcn.0040a8a0
mov dword [esi + 0x1a4], 0
mov byte [esi + 0x1ed], 1
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x40bd8d
mov dword [esi + 0x160], 0
mov dword [esi + 0x15c], 0
call fcn.0040a8a0
mov dword [esi + 0x164], 0
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x40bdb7
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 0x40bda0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x10]
sub esi, dword [eax + 0x4d9c]
mov eax, dword [eax + 0x4dbc]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
inc edi
add ecx, 0x200
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ecx
cmp edi, dword [ebx + 0x4db4]
jl 0x40bcf0
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 0x40be3d
xorps xmm1, xmm1
nop dword [eax]
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40be36
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x40be36
lea ecx, [esi + 0x20]
call fcn.00429540
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x40be10
cmp byte [ebx + 0x3f7f], 0
je 0x40be4b
call fcn.00409ec0
mov eax, dword [ebx + 0x4ad0]
mov byte [ebx + 0x3f7f], 0
test eax, eax
je 0x40beb2
cmp byte [eax + 0xbb], 0
jne 0x40beb2
mov eax, dword [0x44c448]
mov edx, dword [eax + 0x3fc4]
sub edx, 1
js 0x40bea6
mov eax, dword [eax + 0x3fcc]
lea esi, [eax + edx*4]
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x40be9e
cmp byte [ecx + 0xbb], 0
je 0x40be9e
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x40bea8
sub esi, 4
sub edx, 1
jns 0x40be80
xor ecx, ecx
mov edx, 1
call fcn.004135d0
mov ecx, dword [ebx + 0x3fe0]
test ecx, ecx
jns 0x40bf0d
mov eax, ecx
xor esi, esi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg esi, eax
cmp esi, ecx
jle 0x40bf0d
imul ecx, esi, 0x68
call fcn.0040a810
mov edi, eax
mov eax, dword [ebx + 0x3fe4]
test eax, eax
je 0x40bf01
imul ecx, dword [ebx + 0x3fdc], 0x68
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x3fe4]
add esp, 0xc
call fcn.0040a8a0
mov dword [ebx + 0x3fe4], edi
mov dword [ebx + 0x3fe0], esi
mov dword [ebx + 0x3fdc], 0
mov ecx, dword [ebx + 0x4ab0]
test ecx, ecx
jns 0x40bf7a
mov eax, ecx
xor esi, esi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg esi, eax
cmp esi, ecx
jle 0x40bf7a
lea ecx, [esi + esi*4]
shl ecx, 3
call fcn.0040a810
mov edi, eax
mov eax, dword [ebx + 0x4ab4]
test eax, eax
je 0x40bf6e
mov ecx, dword [ebx + 0x4aac]
lea ecx, [ecx + ecx*4]
shl ecx, 3
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x4ab4]
add esp, 0xc
call fcn.0040a8a0
mov dword [ebx + 0x4ab4], edi
mov dword [ebx + 0x4ab0], esi
mov dword [ebx + 0x4aac], 0
mov ecx, dword [ebx + 0x4a8c]
mov eax, ecx
mov edi, ecx
test ecx, ecx
jns 0x40bfed
cdq
xor esi, esi
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg esi, eax
mov eax, ecx
cmp esi, ecx
jle 0x40bfed
lea ecx, [esi*4]
call fcn.0040a810
mov edi, eax
mov eax, dword [ebx + 0x4a90]
test eax, eax
je 0x40bfdd
mov ecx, dword [ebx + 0x4a88]
shl ecx, 2
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x4a90]
add esp, 0xc
call fcn.0040a8a0
mov dword [ebx + 0x4a90], edi
mov eax, esi
mov dword [ebx + 0x4a8c], esi
mov edi, esi
xor ecx, ecx
mov dword [ebx + 0x4a88], 0
test eax, eax
jne 0x40c06a
test edi, edi
je 0x40c01a
mov eax, edi
mov esi, 1
cdq
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, esi
cmovg esi, eax
cmp esi, edi
jle 0x40c06a
jmp 0x40c021
mov eax, 8
mov esi, eax
lea ecx, [esi*4]
call fcn.0040a810
mov edi, eax
mov eax, dword [ebx + 0x4a90]
test eax, eax
je 0x40c058
mov ecx, dword [ebx + 0x4a88]
shl ecx, 2
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x4a90]
add esp, 0xc
call fcn.0040a8a0
mov ecx, dword [ebx + 0x4a88]
mov dword [ebx + 0x4a90], edi
mov dword [ebx + 0x4a8c], esi
mov eax, dword [ebx + 0x4a90]
mov dword [eax + ecx*4], 0x10
inc dword [ebx + 0x4a88]
mov ecx, dword [ebx + 0x4a88]
mov eax, dword [ebx + 0x4a90]
mov eax, dword [eax + ecx*4 - 4]
mov dword [ebx + 0x4958], eax
mov ecx, dword [ebx + 0x4a98]
test ecx, ecx
jns 0x40c102
mov eax, ecx
xor esi, esi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
test eax, eax
cmovg esi, eax
cmp esi, ecx
jle 0x40c102
lea ecx, [esi*8]
sub ecx, esi
shl ecx, 3
call fcn.0040a810
mov edi, eax
mov eax, dword [ebx + 0x4a9c]
test eax, eax
je 0x40c0f6
mov ecx, dword [ebx + 0x4a94]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 3
push edx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx + 0x4a9c]
add esp, 0xc
call fcn.0040a8a0
mov dword [ebx + 0x4a9c], edi
mov dword [ebx + 0x4a98], esi
mov edi, dword [0x44c448]
mov dword [ebx + 0x4a94], 0
cmp byte [edi + 0x5fc9], 0
mov dword [edi + 0x5fcc], 0
je 0x40c2bd
mov esi, dword [edi + 0x4048]
mov edx, 1
push 0
mov ecx, 0x20e
mov dword [ebp - 0x14], esi
mov dword [edi + 0x4eb4], 7
call fcn.00414ba0
add esp, 4
test al, al
je 0x40c15b
mov byte [edi + 0x5fc9], 0
mov eax, dword [edi + 0xcc]
xorps xmm0, xmm0
mov dword [ebp - 4], eax
cmp eax, 0x3000
je 0x40c1c0
movzx ecx, byte [edi + 0x5fca]
cmp byte [ecx + edi + 0xb4], 0
je 0x40c1c0
movss xmm1, dword [edi + ecx*4 + 0x2b00]
comiss xmm0, xmm1
ja 0x40c1c0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x40c1bd
add ecx, 0x28f
xor edx, edx
call fcn.00416790
test al, al
mov eax, dword [ebp - 4]
je 0x40c1c0
test esi, esi
je 0x40c1c0
mov dword [edi + 0x5fcc], esi
mov byte [edi + 0x5fc9], 0
jmp 0x40c1c0
mov eax, dword [ebp - 4]
xor ebx, ebx
mov esi, 0x2b00
cmp eax, 0x3000
jne 0x40c20f
mov eax, dword [0x44c448]
cmp byte [eax + ebx + 0xb4], 0
je 0x40c20c
movss xmm1, dword [eax + esi]
comiss xmm0, xmm1
ja 0x40c20c
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x40c20c
lea ecx, [ebx + 0x28f]
xor edx, edx
call fcn.00416790
test al, al
mov eax, dword [ebp - 4]
je 0x40c20f
mov byte [edi + 0x5fca], bl
jmp 0x40c20f
mov eax, dword [ebp - 4]
add esi, 4
inc ebx
cmp esi, 0x2b0c
jl 0x40c1c7
mov eax, dword [0x44c448]
xor ecx, ecx
or dword [eax + 0x49e8], 0x40
mov dword [eax + 0x4a40], 0x3f333333
call fcn.00417a30
mov ebx, dword [ebp - 8]
test al, al
je 0x40c2bd
mov esi, dword [ebp - 0x14]
push esi
push str.HoveredId:_0x_08X
call fcn.0042f390
push str.Press_ESC_to_abort_picking.
call fcn.0042f390
add esp, 0xc
mov dword [ebp - 0x1c], str.Left
cmp dword [ebp - 4], 0x3000
mov dword [ebp - 0x18], str.Right
mov dword [ebp - 0x14], str.Middle
jne 0x40c287
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.0042f390
add esp, 4
jmp 0x40c2b8
movzx eax, byte [edi + 0x5fca]
xor ecx, ecx
test esi, esi
push dword [ebp + eax*4 - 0x1c]
mov eax, 0x10
cmove ecx, eax
mov eax, dword [0x44c448]
add eax, 0x39b8
add eax, ecx
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.0042f3e0
add esp, 0xc
call fcn.004133f0
call fcn.0041e700
mov edx, dword [0x44c448]
xorps xmm0, xmm0
movss xmm1, dword [edx + 0x5fd0]
comiss xmm0, xmm1
jae 0x40c38b
mulss xmm1, dword [0x4499dc]
lea eax, [edx + 0x39c0]
mov ecx, dword [edx + 0x4a54]
shl ecx, 4
add eax, ecx
cvtps2pd xmm0, xmm1
push eax
lea esi, [ecx + edx]
lea edi, [ecx + edx]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x44994c]
lea edx, [esi + 0x39bc]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x39b8]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00407120
mov edx, dword [0x44c448]
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 + 0x5fd0]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5fd0], xmm0
jb 0x40c38b
mov eax, dword [edx + 0x4a54]
cmp eax, 0x38
je 0x40c381
movups xmm0, xmmword [edx + 0x5fd4]
add eax, eax
movups xmmword [edx + eax*8 + 0x39b8], xmm0
mov dword [edx + 0x4a54], 0x38
mov al, byte [ebx + 0x5fc1]
test al, al
je 0x40c3b0
sub al, 1
mov byte [ebx + 0x5fc1], al
jne 0x40c3b0
mov dword [ebx + 0x495c], 0
mov byte [ebx + 0x5fc2], 0
mov al, byte [ebx + 0x5fc0]
test al, al
je 0x40c3e9
sub al, 1
mov byte [ebx + 0x5fc0], al
jne 0x40c3e9
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.0041e360
mov eax, dword [ebx + 0x5fbc]
add esp, 4
not eax
mov dword [ebx + 0x5fbc], 0
and dword [ebx + 0x5f9c], eax
mov eax, dword [0x44c448]
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.00410a20
add esp, 4
cmp byte [ebx + 0x6a], 0
je 0x40c466
mov cl, byte [ebx + 0x5fc8]
cmp cl, 0xff
jne 0x40c440
xor edx, edx
jmp 0x40c469
mov eax, dword [ebx + 0x3f70]
and eax, 0x80000003
jns 0x40c452
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 0x40c469
or dl, 0xff
mov byte [ebx + 0x5fc8], 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 0x40c49c
cmp dword [esi + 4], 1
jne 0x40c495
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40c485
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret