Function at 0x40b5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [0x465538]
push esi
push edi
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 0x5108]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x40b67e
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5110]
cmp dword [ecx + edi + 4], 7
jne 0x40b673
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 + 0x5108]
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 + 0x5108]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x40b620
mov eax, dword [ebx + 0x5108]
mov esi, dword [ebx + 0x5110]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40b6ab
cmp dword [esi + 4], 0
jne 0x40b6a4
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40b694
mov eax, dword [0x465538]
cmp dword [eax + 0x3898], 0
je 0x40b6d5
mov ecx, dword [eax + 0x38a8]
test ecx, ecx
je 0x40b6cb
cmp ecx, 0x41efe0
jne 0x40b6d5
mov dword [eax + 0x38a8], 0x4174e0
cmp dword [eax + 0x389c], 0
je 0x40b6fa
mov ecx, dword [eax + 0x38ac]
test ecx, ecx
je 0x40b6f0
cmp ecx, 0x41f0c0
jne 0x40b6fa
mov dword [eax + 0x38ac], 0x417500
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 + 0x50d0], 0
jne 0x40b7ba
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40b7b3
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.00405bd0
mov edi, eax
add esp, 8
test edi, edi
je 0x40b7ae
mov edx, dword [ebp - 8]
test edx, edx
je 0x40b74c
mov ecx, edi
call fcn.0041e6b0
mov ecx, dword [0x465538]
test ecx, ecx
je 0x40b7a7
movsx eax, word [ecx + 0x5200]
mov edx, dword [ecx + 0x3f70]
mov dword [ebp - 0x1c], edx
lea eax, [eax*8 + 0x5204]
add eax, ecx
cmp dword [eax], edx
je 0x40b79d
movsx eax, word [ecx + 0x5200]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [ecx + 0x5200], ax
cwde
lea eax, [eax*8 + 0x5204]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x51fc]
push edi
call dword [ebp - 0x10]
add esp, 4
mov eax, dword [0x465538]
mov byte [esi + 0x50d0], 1
movss xmm0, dword [esi + 0x50d4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40b83d
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x50d4], xmm0
jb 0x40b83d
mov edi, dword [esi + 0x20]
test edi, edi
je 0x40b82c
lea ecx, [ebp - 8]
mov dword [eax + 0x50d4], 0
mov dword [ebp - 8], 0
call fcn.0041e8d0
mov edx, 0x4600c0
mov dword [ebp - 0x1c], eax
mov ecx, edi
call fcn.00405a40
mov edi, eax
test edi, edi
je 0x40b833
push edi
push dword [ebp - 8]
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 0x40b833
mov byte [esi + 0x88], 1
mov dword [esi + 0x50d4], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f70]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f7c], 1
mov word [ebx + 0x5034], ax
mov dword [ebx + 0x3ff4], eax
addsd xmm0, qword [ebx + 0x3f68]
movsd qword [ebx + 0x3f68], xmm0
mov ecx, dword [ebx + 0x5048]
test ecx, ecx
jns 0x40b897
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 + 0x5044]
call fcn.00420f90
mov dword [ebx + 0x5044], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x5324]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x5234]
addss xmm0, dword [ebx + 0x532c]
movss dword [ebx + 0x532c], xmm0
movss dword [ebx + eax*4 + 0x5234], xmm1
mov eax, dword [ebx + 0x5324]
inc eax
movss xmm1, dword [ebx + 0x532c]
cdq
idiv ecx
mov eax, dword [ebx + 0x5328]
movss xmm0, dword [0x461e1c]
inc eax
cmp eax, ecx
mov dword [ebx + 0x5324], edx
movss dword [ebp - 8], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x461c5c]
mov dword [ebx + 0x5328], ecx
jbe 0x40b92d
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x461d20]
divss xmm0, xmm1
movss dword [ebx + 0x8c], xmm0
mov ecx, dword [ebx + 0x3fa8]
test ecx, ecx
jns 0x40b95b
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.00421830
mov dword [ebx + 0x3fa4], 0
mov cl, byte [ebx + 0x47]
call fcn.00416b80
mov esi, dword [0x465538]
mov eax, dword [esi + 0x4ad4]
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 + 0x4ad4]
mov eax, dword [esi + 0x4acc]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x40ba82
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 0x40b9b5
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.0040b3e0
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x40ba9d
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x461d20]
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 0x40baf6
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x3d54]
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x40baf9
mulss xmm1, dword [eax + 0x270]
jmp 0x40baf9
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 + 0x4ad4]
mov eax, dword [ebx + 0x4acc]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40bb6d
nop dword [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x40bb60
cmp byte [ebx + 0x4cd4], 0
je 0x40bba1
mov eax, dword [ebx + 0x4cec]
cmp eax, dword [ebx + 0x4060]
jne 0x40bba1
cmp dword [esi + 0x4060], eax
jne 0x40bb92
mov dword [esi + 0x4064], eax
cmp dword [esi + 0x4088], eax
jne 0x40bba1
mov byte [esi + 0x408c], 1
cmp byte [ebx + 0x69], 0
mov dword [ebx + 0x4040], 0
je 0x40bbc6
cmp dword [ebx + 0x4050], 1
jle 0x40bbc6
mov eax, dword [ebx + 0x404c]
mov dword [ebx + 0x4040], eax
cmp dword [ebx + 0x404c], 0
jne 0x40bbdb
mov dword [ebx + 0x4054], 0
jmp 0x40bbed
mov eax, dword [ebx + 0x4048]
test eax, eax
je 0x40bbf7
cmp dword [ebx + 0x4060], eax
jne 0x40bbf7
mov dword [ebx + 0x4058], 0
mov eax, dword [ebx + 0x4048]
test eax, eax
je 0x40bc31
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x4054]
movss dword [ebx + 0x4054], xmm0
cmp dword [ebx + 0x4060], eax
je 0x40bc31
addss xmm1, dword [ebx + 0x4058]
movss dword [ebx + 0x4058], xmm1
mov dword [ebx + 0x404c], eax
mov eax, dword [ebx + 0x4060]
mov dword [ebx + 0x4050], 0
mov dword [ebx + 0x4048], 0
mov word [ebx + 0x405c], 0
test eax, eax
je 0x40bc8d
cmp dword [ebx + 0x4064], eax
je 0x40bc8d
cmp dword [ebx + 0x4088], eax
jne 0x40bc8d
test byte [ebx + 0x5174], 1
je 0x40bc84
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041fdd0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.0040a390
mov ecx, dword [ebx + 0x4060]
test ecx, ecx
je 0x40bcac
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4068]
movss dword [ebx + 0x4068], xmm0
mov eax, dword [ebx + 0x4080]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4098]
mov dword [ebx + 0x4090], eax
mov al, byte [ebx + 0x4070]
mov byte [ebx + 0x408d], al
mov eax, dword [ebx + 0x4f94]
movss dword [ebx + 0x4098], xmm0
mov dword [ebx + 0x4088], ecx
mov dword [ebx + 0x4064], 0
mov byte [ebx + 0x4071], 0
mov byte [ebx + 0x408c], 0
mov byte [ebx + 0x406c], 0
test eax, eax
je 0x40bd16
cmp ecx, eax
je 0x40bd16
mov dword [ebx + 0x4f94], 0
test ecx, ecx
jne 0x40bd26
mov dword [ebx + 0x4950], ecx
mov byte [ebx + 0x4954], cl
mov ecx, dword [ebx + 0x4ea4]
test ecx, ecx
je 0x40bd49
movss xmm0, dword [ebx + 0x4ec0]
comiss xmm0, dword [ebx + 0x3d38]
jb 0x40bd53
mov dword [ebx + 0x4eb4], ecx
jmp 0x40bd53
mov dword [ebx + 0x4eb4], 0
mov eax, dword [ebx + 0x4008]
test eax, eax
je 0x40bd79
movss xmm0, dword [ebx + 0x4ec0]
comiss xmm0, dword [ebx + 0x3d38]
jb 0x40bd83
mov eax, dword [eax + 8]
mov dword [ebx + 0x4eb8], eax
jmp 0x40bd83
mov dword [ebx + 0x4eb8], 0
movss xmm0, dword [ebx + 0x4eac]
mov dword [ebx + 0x4ea8], ecx
test ecx, ecx
je 0x40bdae
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4ea4], 0
movss dword [ebx + 0x4eac], xmm0
jmp 0x40bdee
comiss xmm0, dword [0x461c5c]
jbe 0x40bdf8
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x461cb4]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4eb0]
addss xmm1, xmm1
movss dword [ebx + 0x4eb0], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x40bdf8
mov dword [ebx + 0x4eac], 0
mov dword [ebx + 0x4eb0], 0
mov eax, dword [ebx + 0x4d48]
mov dword [ebx + 0x4d4c], eax
mov dword [ebx + 0x4d48], 0
mov dword [ebx + 0x4d44], 0x7f7fffff
mov word [ebx + 0x4cd5], 0
mov dword [ebx + 0x4d54], 0
call fcn.00415870
call fcn.0041a990
call fcn.00415df0
call fcn.0040b130
mov esi, dword [0x465538]
mov ecx, dword [esi + 0x4014]
test ecx, ecx
je 0x40bef7
mov eax, dword [esi + 0x4060]
mov dword [esi + 0x4064], eax
cmp dword [esi + 0x4088], eax
jne 0x40be6e
mov byte [esi + 0x408c], 1
cmp byte [esi + 0xb4], 0
mov edi, dword [ecx + 0x314]
je 0x40beeb
lea eax, [esi + 0xac]
mov ecx, eax
test eax, eax
jne 0x40be8f
lea ecx, [esi + 0xac]
movss xmm0, dword [ecx]
movss xmm1, dword [0x461e5c]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x40beeb
comiss xmm2, xmm1
jb 0x40beeb
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x4078]
push 1
mov ecx, edi
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x407c]
movss dword [ebp - 0x24], xmm0
call fcn.00414680
mov ecx, dword [esi + 0x4014]
add esp, 4
xor edx, edx
call fcn.004140e0
jmp 0x40bf33
mov dword [esi + 0x4014], 0
jmp 0x40bf2a
mov ecx, dword [esi + 0x4080]
test ecx, ecx
je 0x40bf33
mov eax, dword [esi + 0x4060]
cmp dword [ecx + 0x7c], eax
jne 0x40bf33
mov dword [esi + 0x4064], eax
cmp dword [esi + 0x4088], eax
jne 0x40bf21
mov byte [esi + 0x408c], 1
cmp byte [esi + 0xb4], 0
jne 0x40bf33
xor edx, edx
xor ecx, ecx
call fcn.0040a390
mov eax, dword [0x465538]
movss xmm2, dword [0x461d98]
mov edx, dword [eax + 0x4aa8]
sub edx, 1
js 0x40bf77
mov eax, dword [eax + 0x4ab0]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop word [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x40bf6f
test dword [ecx + 0xc], 0x8000000
jne 0x40bf91
sub eax, 0x28
sub edx, 1
jns 0x40bf60
cmp dword [ebx + 0x4ca4], 0
je 0x40bfac
movss xmm0, dword [ebx + 0x4cb4]
comiss xmm0, dword [0x461c5c]
jbe 0x40bfac
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4cd0]
minss xmm1, dword [0x461d20]
jmp 0x40bfcd
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x461da8]
movss xmm1, dword [ebx + 0x4cd0]
subss xmm1, xmm0
maxss xmm1, dword [0x461c5c]
movss dword [ebx + 0x4cd0], xmm1
movups xmm0, xmmword [ebx + 0x50b0]
mov dword [ebx + 0x4ebc], 0
mov dword [ebx + 0x5338], 0xffffffff
mov dword [ebx + 0x5334], 0xffffffff
mov dword [ebx + 0x5330], 0xffffffff
movups xmmword [ebx + 0x50c0], xmm0
mov byte [ebx + 0x50b0], 0
call fcn.00416180
cmp byte [ebx + 0x3f7f], 0
jne 0x40c044
movss xmm1, dword [ebx + 0x50]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40c044
movsd xmm0, qword [ebx + 0x3f68]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 8], xmm0
jmp 0x40c049
movss xmm0, dword [ebp - 8]
mov edi, dword [ebx + 0x3fc0]
mov eax, dword [ebx + 0x3fb8]
lea eax, [edi + eax*4]
mov dword [ebp - 0x1c], eax
cmp edi, eax
je 0x40c121
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 0x40c10e
cmp byte [esi + 0x370], al
jne 0x40c10e
comiss xmm0, dword [esi + 0x250]
jbe 0x40c10e
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.004026a0
mov ecx, dword [esi + 0x278]
call fcn.0042d270
lea ecx, [esi + 0x190]
call fcn.004026a0
lea ecx, [esi + 0x1bc]
call fcn.004026a0
lea ecx, [esi + 0x1c8]
call fcn.004026a0
movss xmm0, dword [ebp - 8]
add edi, 4
cmp edi, ebx
jne 0x40c070
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4dbc], ecx
jle 0x40c27e
xor edi, edi
xorps xmm1, xmm1
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
nop
mov eax, dword [ebx + 0x4dc4]
movss xmm0, dword [edx + eax]
comiss xmm0, xmm1
jb 0x40c25f
movss xmm1, dword [ebp - 8]
comiss xmm1, xmm0
jbe 0x40c25c
mov esi, dword [ebx + 0x4da4]
add esi, edi
mov edi, dword [0x465538]
mov dword [ebp - 0x24], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40c201
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x40c1f0
movsx eax, word [edi + 0x5200]
mov edx, dword [edi + 0x3f70]
mov dword [ebp - 0x20], edx
lea eax, [eax*8 + 0x5204]
add eax, edi
cmp dword [eax], edx
je 0x40c1e6
movsx eax, word [edi + 0x5200]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [edi + 0x5200], ax
cwde
lea eax, [eax*8 + 0x5204]
add eax, edi
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x51fc]
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.004026a0
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x40c23d
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x74]
inc edx
mov word [ecx + eax - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x40c226
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0x24]
sub esi, dword [edi + 0x4da4]
mov eax, dword [edi + 0x4dc4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
xorps xmm1, xmm1
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 + 0x4dbc]
jl 0x40c140
mov eax, dword [ebx + 0x4d90]
mov ecx, eax
mov esi, dword [ebx + 0x4d98]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x40c2cd
xorps xmm1, xmm1
nop dword [eax + eax]
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40c2c6
movss xmm1, dword [ebp - 8]
comiss xmm1, xmm0
jbe 0x40c2c3
lea ecx, [esi + 0x20]
call fcn.0042fe40
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x40c2a0
cmp byte [ebx + 0x3f7f], 0
je 0x40c393
mov esi, dword [0x465538]
lea ecx, [esi + 0x4a90]
call fcn.004026a0
mov edi, dword [esi + 0x4aa4]
test edi, edi
je 0x40c379
mov ecx, dword [0x465538]
mov dword [esi + 0x4aa0], 0
mov dword [esi + 0x4a9c], 0
test ecx, ecx
je 0x40c368
movsx eax, word [ecx + 0x5200]
mov edx, dword [ecx + 0x3f70]
mov dword [ebp - 0x24], edx
lea eax, [eax*8 + 0x5204]
add eax, ecx
cmp dword [eax], edx
je 0x40c35e
movsx eax, word [ecx + 0x5200]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x5200], ax
cwde
lea eax, [eax*8 + 0x5204]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x51fc]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4aa4], 0
lea ecx, [esi + 0x4e78]
mov dword [esi + 0x4e74], 0
call fcn.00420540
call fcn.004389c0
mov eax, dword [ebx + 0x4ad8]
mov byte [ebx + 0x3f7f], 0
test eax, eax
je 0x40c3f8
cmp byte [eax + 0xbb], 0
jne 0x40c3f8
mov eax, dword [0x465538]
mov edx, dword [eax + 0x3fc4]
sub edx, 1
js 0x40c3ec
mov eax, dword [eax + 0x3fcc]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x40c3e4
cmp byte [ecx + 0xbb], 0
je 0x40c3e4
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x40c3ee
sub esi, 4
sub edx, 1
jns 0x40c3c6
xor ecx, ecx
mov edx, 1
call fcn.004140e0
mov ecx, dword [ebx + 0x3fe0]
test ecx, ecx
jns 0x40c41e
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.00421770
mov dword [ebx + 0x3fdc], 0
mov ecx, dword [ebx + 0x4ab8]
test ecx, ecx
jns 0x40c44e
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 + 0x4ab4]
call fcn.004215d0
lea esi, [ebx + 0x4a90]
mov dword [ebx + 0x4ab4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40c47d
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.00420f90
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40c492
push 8
mov ecx, esi
call fcn.00420f90
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 + 0x4a98]
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebx + 0x4a9c]
mov dword [ebx + 0x4960], eax
call fcn.00420c50
mov edi, dword [0x465538]
mov dword [ebp - 8], edi
cmp byte [edi + 0x51a1], 0
mov dword [edi + 0x51a4], 0
je 0x40c60d
mov eax, dword [edi + 0x404c]
mov edx, 1
push 0
mov ecx, 0x20e
mov dword [ebp - 0x10], eax
mov dword [edi + 0x4ebc], 7
call fcn.00415640
add esp, 4
test al, al
je 0x40c511
mov byte [edi + 0x51a1], 0
mov esi, dword [edi + 0xcc]
cmp esi, 0x3000
je 0x40c543
movzx ecx, byte [edi + 0x51a2]
call fcn.004157f0
test al, al
je 0x40c543
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c543
mov dword [edi + 0x51a4], eax
mov byte [edi + 0x51a1], 0
xor ebx, ebx
cmp esi, 0x3000
jne 0x40c55e
mov ecx, ebx
call fcn.004157f0
test al, al
je 0x40c55e
mov byte [edi + 0x51a2], bl
inc ebx
cmp ebx, 3
jl 0x40c545
or dword [edi + 0x49f0], 0x40
xor ecx, ecx
mov dword [edi + 0x4a48], 0x3f333333
call fcn.004185b0
mov ebx, dword [ebp - 4]
test al, al
je 0x40c604
push dword [ebp - 0x10]
push str.HoveredId:_0x_08X
call fcn.004398b0
push str.Press_ESC_to_abort_picking.
call fcn.004398b0
add esp, 0xc
mov dword [ebp - 0x2c], 0x460584
mov dword [ebp - 0x28], 0x46058c
mov dword [ebp - 0x24], str.Middle
cmp esi, 0x3000
jne 0x40c5cd
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.004398b0
add esp, 4
jmp 0x40c5ff
movzx eax, byte [edi + 0x51a2]
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
push dword [ebp + eax*4 - 0x2c]
mov eax, 0x10
cmove ecx, eax
mov eax, dword [0x465538]
add eax, 0x39b8
add eax, ecx
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.00439900
add esp, 0xc
call fcn.00413da0
mov edi, dword [0x465538]
mov dword [ebp - 8], edi
mov esi, edi
mov dword [esi + 0x4044], 0
mov eax, dword [esi + 0x51d8]
inc eax
cmp dword [esi + 0x3f70], eax
jne 0x40c724
mov ecx, dword [esi + 0x404c]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x40c642
mov ecx, dword [esi + 0x4060]
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x51e0], ecx
je 0x40c69f
lea eax, [esi + 0x51e4]
mov dword [esi + 0x51e0], ecx
mov dword [esi + 0x51dc], 0xffffffff
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
test edx, edx
jns 0x40c699
mov eax, edx
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x24]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x51e4]
call fcn.00421910
mov edi, dword [0x465538]
lea eax, [esi + 0x51e4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [eax], 0
test ecx, ecx
je 0x40c724
mov eax, dword [esi + 0x51dc]
test eax, eax
js 0x40c6ed
mov edx, eax
cmp eax, dword [esi + 0x51e4]
jge 0x40c700
mov ebx, dword [esi + 0x51ec]
lea edx, [eax + eax*8]
cmp byte [ebx + edx*8 + 5], 0
mov ebx, dword [ebp - 4]
jne 0x40c6e6
mov edi, dword [esi + 0x51ec]
lea ebx, [eax + eax*8]
mov edx, eax
cmp byte [edi + ebx*8 + 4], 2
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
jle 0x40c700
inc eax
mov dword [esi + 0x51dc], eax
mov edx, eax
cmp eax, 0xffffffff
jne 0x40c6fc
mov dword [esi + 0x4044], ecx
jmp 0x40c724
test edx, edx
js 0x40c724
cmp edx, dword [esi + 0x51e4]
jge 0x40c724
mov eax, dword [esi + 0x51ec]
lea ecx, [edx + edx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x4044], eax
mov eax, dword [esi + 0x51ec]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edi + 0x51a8]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x40c7e3
mov ecx, dword [edi + 0x4a5c]
mulss xmm1, dword [0x461d98]
shl ecx, 4
cvtps2pd xmm0, xmm1
lea eax, [ecx + 0x39c0]
add eax, edi
lea esi, [ecx + edi]
push eax
add edi, ecx
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x461cdc]
lea edx, [esi + 0x39bc]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x39b8]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00405fe0
mov edi, dword [ebp - 8]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edi + 0x4a5c]
add eax, eax
mov dword [edi + eax*8 + 0x39c4], 0x3f800000
movss xmm0, dword [edi + 0x51a8]
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x51a8], xmm0
jb 0x40c7e3
mov eax, dword [edi + 0x4a5c]
cmp eax, 0x38
je 0x40c7d9
movups xmm0, xmmword [edi + 0x51ac]
add eax, eax
movups xmmword [edi + eax*8 + 0x39b8], xmm0
mov dword [edi + 0x4a5c], 0x38
mov al, byte [ebx + 0x5199]
test al, al
je 0x40c808
sub al, 1
mov byte [ebx + 0x5199], al
jne 0x40c808
mov dword [ebx + 0x4964], 0
mov byte [ebx + 0x519a], 0
mov al, byte [ebx + 0x5198]
test al, al
je 0x40c847
sub al, 1
mov byte [ebx + 0x5198], al
jne 0x40c847
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.0041fdd0
mov eax, dword [ebx + 0x5194]
add esp, 4
mov edi, dword [0x465538]
not eax
and dword [ebx + 0x5174], eax
mov dword [ebx + 0x5194], 0
mov byte [ebx + 0x3f7d], 1
xor edx, edx
or dword [edi + 0x49f0], 2
mov ecx, str.DebugDefault
push 0
mov dword [edi + 0x4a10], 0x43c80000
mov dword [edi + 0x4a14], 0x43c80000
mov dword [edi + 0x49f8], 4
call fcn.00411300
add esp, 4
cmp byte [ebx + 0x6b], 0
je 0x40c8bf
mov cl, byte [ebx + 0x51a0]
cmp cl, 0xff
jne 0x40c899
xor edx, edx
jmp 0x40c8c2
mov eax, dword [ebx + 0x3f70]
and eax, 0x80000003
jns 0x40c8ab
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 0x40c8c2
or dl, 0xff
mov byte [ebx + 0x51a0], dl
mov eax, dword [ebx + 0x5108]
mov esi, dword [ebx + 0x5110]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40c8f7
nop
cmp dword [esi + 4], 1
jne 0x40c8f0
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40c8e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret