Function at 0x4095a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [0x449430]
push esi
push edi
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 0x5f14]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x40962e
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5f1c]
cmp dword [ecx + edi + 4], 7
jne 0x409623
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 + 0x5f14]
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 + 0x5f14]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x4095d0
mov eax, dword [ebx + 0x5f14]
mov esi, dword [ebx + 0x5f1c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40965b
cmp dword [esi + 4], 0
jne 0x409654
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x409644
mov esi, dword [0x449430]
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 + 0x5edc], 0
jne 0x409719
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x409712
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.00404140
mov edi, eax
add esp, 8
test edi, edi
je 0x409712
mov edx, dword [ebp - 8]
test edx, edx
je 0x4096b0
mov ecx, edi
call fcn.0041b240
mov ecx, dword [0x449430]
test ecx, ecx
je 0x40970b
movsx eax, word [ecx + 0x6008]
mov edx, dword [ecx + 0x3f58]
mov dword [ebp - 0x1c], edx
lea eax, [eax*8 + 0x600c]
add eax, ecx
cmp dword [eax], edx
je 0x409701
movsx eax, word [ecx + 0x6008]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [ecx + 0x6008], ax
cwde
lea eax, [eax*8 + 0x600c]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6004]
push edi
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5edc], 1
movss xmm0, dword [esi + 0x5ee0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x4097a1
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5ee0], xmm0
jb 0x4097a1
mov edi, dword [esi + 0x20]
test edi, edi
je 0x409790
mov eax, dword [0x449430]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [eax + 0x5ee0], 0
call fcn.0041b460
mov edx, 0x442244
mov dword [ebp - 0x1c], eax
mov ecx, edi
call fcn.00403fb0
mov edi, eax
test edi, edi
je 0x409797
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 0x409797
mov byte [esi + 0xa2], 1
mov dword [esi + 0x5ee0], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f58]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f64], 1
mov word [ebx + 0x5e40], ax
mov dword [ebx + 0x3fdc], eax
addsd xmm0, qword [ebx + 0x3f50]
movsd qword [ebx + 0x3f50], xmm0
mov ecx, dword [ebx + 0x5e54]
test ecx, ecx
jns 0x4097fb
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 + 0x5e50]
call fcn.0041ce90
mov dword [ebx + 0x5e50], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x612c]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x603c]
addss xmm0, dword [ebx + 0x6134]
movss dword [ebx + 0x6134], xmm0
movss dword [ebx + eax*4 + 0x603c], xmm1
mov eax, dword [ebx + 0x612c]
inc eax
movss xmm1, dword [ebx + 0x6134]
cdq
idiv ecx
mov eax, dword [ebx + 0x6130]
movss xmm0, dword [0x4470b4]
inc eax
cmp eax, ecx
mov dword [ebx + 0x612c], edx
movss dword [ebp - 8], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x446f7c]
mov dword [ebx + 0x6130], ecx
jbe 0x409891
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x447004]
divss xmm0, xmm1
movss dword [ebx + 0xa8], xmm0
mov ecx, dword [ebx + 0x3f90]
test ecx, ecx
jns 0x4098bf
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 + 0x3f8c]
call fcn.0041d730
mov dword [ebx + 0x3f8c], 0
mov cl, byte [ebx + 0x47]
call fcn.004145a0
mov esi, dword [0x449430]
mov eax, dword [esi + 0x4ab4]
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 + 0x4ab4]
mov eax, dword [esi + 0x4aac]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x4099ed
mov ebx, eax
nop dword [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 0x409920
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.00409390
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x409a08
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x447004]
mov ecx, dword [esi + 0x3fec]
mov dword [esi + 0x3d34], edi
mulss xmm1, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x4c]
maxss xmm0, xmm1
movss dword [esi + 0x3d3c], xmm0
test ecx, ecx
je 0x409a61
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x3d3c]
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x409a64
mulss xmm1, dword [eax + 0x270]
jmp 0x409a64
xorps xmm1, xmm1
movss dword [esi + 0x3d38], xmm1
movaps xmm0, xmm1
divss xmm0, dword [edi + 0x10]
movss dword [esi + 0x3d40], xmm0
mov edx, dword [edi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x3d48], eax
lea eax, [edx + 0x60]
mov dword [esi + 0x3d4c], ecx
mov dword [esi + 0x3f48], eax
mov dword [esi + 0x3d50], edi
movss dword [esi + 0x3d54], xmm1
movss dword [esi + 0x3d58], xmm0
mov ecx, dword [ebx + 0x4ab4]
mov eax, dword [ebx + 0x4aac]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x409ad0
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x409ac3
cmp byte [ebx + 0x4cb4], 0
je 0x409b04
mov eax, dword [ebx + 0x4ccc]
cmp eax, dword [ebx + 0x4040]
jne 0x409b04
cmp dword [esi + 0x4040], eax
jne 0x409af5
mov dword [esi + 0x4044], eax
cmp dword [esi + 0x4068], eax
jne 0x409b04
mov byte [esi + 0x406c], 1
cmp dword [ebx + 0x4030], 0
jne 0x409b19
mov dword [ebx + 0x4034], 0
jmp 0x409b2b
mov eax, dword [ebx + 0x402c]
test eax, eax
je 0x409b35
cmp dword [ebx + 0x4040], eax
jne 0x409b35
mov dword [ebx + 0x4038], 0
mov eax, dword [ebx + 0x402c]
test eax, eax
je 0x409b6f
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x4034]
movss dword [ebx + 0x4034], xmm0
cmp dword [ebx + 0x4040], eax
je 0x409b6f
addss xmm1, dword [ebx + 0x4038]
movss dword [ebx + 0x4038], xmm1
mov dword [ebx + 0x4030], eax
mov eax, dword [ebx + 0x4040]
mov dword [ebx + 0x402c], 0
mov word [ebx + 0x403c], 0
test eax, eax
je 0x409bc1
cmp dword [ebx + 0x4044], eax
je 0x409bc1
cmp dword [ebx + 0x4068], eax
jne 0x409bc1
test byte [ebx + 0x5f7c], 1
je 0x409bb8
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041bde0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.004084b0
mov ecx, dword [ebx + 0x4040]
test ecx, ecx
je 0x409be0
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4048]
movss dword [ebx + 0x4048], xmm0
mov eax, dword [ebx + 0x4060]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4078]
mov dword [ebx + 0x4070], eax
mov al, byte [ebx + 0x4050]
mov byte [ebx + 0x406d], al
mov eax, dword [ebx + 0x5da0]
movss dword [ebx + 0x4078], xmm0
mov dword [ebx + 0x4068], ecx
mov dword [ebx + 0x4044], 0
mov byte [ebx + 0x4051], 0
mov byte [ebx + 0x406c], 0
mov byte [ebx + 0x404c], 0
test eax, eax
je 0x409c4a
cmp ecx, eax
je 0x409c4a
mov dword [ebx + 0x5da0], 0
test ecx, ecx
jne 0x409c5a
mov dword [ebx + 0x4930], ecx
mov byte [ebx + 0x4934], cl
mov ecx, dword [ebx + 0x4e84]
test ecx, ecx
je 0x409c7d
movss xmm0, dword [ebx + 0x4ea0]
comiss xmm0, dword [ebx + 0x3d20]
jb 0x409c87
mov dword [ebx + 0x4e94], ecx
jmp 0x409c87
mov dword [ebx + 0x4e94], 0
mov eax, dword [ebx + 0x3ff0]
test eax, eax
je 0x409cad
movss xmm0, dword [ebx + 0x4ea0]
comiss xmm0, dword [ebx + 0x3d20]
jb 0x409cb7
mov eax, dword [eax + 8]
mov dword [ebx + 0x4e98], eax
jmp 0x409cb7
mov dword [ebx + 0x4e98], 0
movss xmm0, dword [ebx + 0x4e8c]
mov dword [ebx + 0x4e88], ecx
test ecx, ecx
je 0x409ce2
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4e84], 0
movss dword [ebx + 0x4e8c], xmm0
jmp 0x409d22
comiss xmm0, dword [0x446f7c]
jbe 0x409d2c
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x446fb0]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4e90]
addss xmm1, xmm1
movss dword [ebx + 0x4e90], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x409d2c
mov dword [ebx + 0x4e8c], 0
mov dword [ebx + 0x4e90], 0
mov eax, dword [ebx + 0x4d28]
mov dword [ebx + 0x4d2c], eax
mov dword [ebx + 0x4d28], 0
mov dword [ebx + 0x4d24], 0x7f7fffff
mov word [ebx + 0x4cb5], 0
mov dword [ebx + 0x4d34], 0
call fcn.00413290
call fcn.00417d30
call fcn.00413810
call fcn.004090d0
mov esi, dword [0x449430]
mov ecx, dword [esi + 0x3ffc]
test ecx, ecx
je 0x409e2b
mov eax, dword [esi + 0x4040]
mov dword [esi + 0x4044], eax
cmp dword [esi + 0x4068], eax
jne 0x409da2
mov byte [esi + 0x406c], 1
cmp byte [esi + 0xd0], 0
mov edi, dword [ecx + 0x314]
je 0x409e1f
lea eax, [esi + 0xc8]
mov ecx, eax
test eax, eax
jne 0x409dc3
lea ecx, [esi + 0xc8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x4470cc]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x409e1f
comiss xmm2, xmm1
jb 0x409e1f
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x4058]
push 1
mov ecx, edi
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x405c]
movss dword [ebp - 0x24], xmm0
call fcn.00412200
mov ecx, dword [esi + 0x3ffc]
add esp, 4
xor edx, edx
call fcn.00411b00
jmp 0x409e67
mov dword [esi + 0x3ffc], 0
jmp 0x409e5e
mov ecx, dword [esi + 0x4060]
test ecx, ecx
je 0x409e67
mov eax, dword [esi + 0x4040]
cmp dword [ecx + 0x7c], eax
jne 0x409e67
mov dword [esi + 0x4044], eax
cmp dword [esi + 0x4068], eax
jne 0x409e55
mov byte [esi + 0x406c], 1
cmp byte [esi + 0xd0], 0
jne 0x409e67
xor edx, edx
xor ecx, ecx
call fcn.004084b0
mov eax, dword [0x449430]
movss xmm2, dword [0x447058]
mov edx, dword [eax + 0x4a88]
sub edx, 1
js 0x409ea7
mov eax, dword [eax + 0x4a90]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x409e9f
test dword [ecx + 0xc], 0x8000000
jne 0x409ec1
sub eax, 0x28
sub edx, 1
jns 0x409e90
cmp dword [ebx + 0x4c84], 0
je 0x409edc
movss xmm0, dword [ebx + 0x4c94]
comiss xmm0, dword [0x446f7c]
jbe 0x409edc
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4cb0]
minss xmm1, dword [0x447004]
jmp 0x409efd
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x447064]
movss xmm1, dword [ebx + 0x4cb0]
subss xmm1, xmm0
maxss xmm1, dword [0x446f7c]
movss dword [ebx + 0x4cb0], xmm1
movups xmm0, xmmword [ebx + 0x5ebc]
mov dword [ebx + 0x4e9c], 0
mov dword [ebx + 0x6140], 0xffffffff
mov dword [ebx + 0x613c], 0xffffffff
mov dword [ebx + 0x6138], 0xffffffff
movups xmmword [ebx + 0x5ecc], xmm0
mov byte [ebx + 0x5ebc], 0
call fcn.00413ba0
cmp byte [ebx + 0x3f67], 0
jne 0x409f74
movss xmm1, dword [ebx + 0x50]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x409f74
movsd xmm0, qword [ebx + 0x3f50]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 8], xmm0
jmp 0x409f79
movss xmm0, dword [ebp - 8]
mov edi, dword [ebx + 0x3fa8]
mov eax, dword [ebx + 0x3fa0]
lea eax, [edi + eax*4]
mov dword [ebp - 0x1c], eax
cmp edi, eax
je 0x40a051
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 0x40a03e
cmp byte [esi + 0x370], al
jne 0x40a03e
comiss xmm0, dword [esi + 0x250]
jbe 0x40a03e
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.00401020
mov ecx, dword [esi + 0x278]
call fcn.00425dd0
lea ecx, [esi + 0x190]
call fcn.00401020
lea ecx, [esi + 0x1bc]
call fcn.00401020
lea ecx, [esi + 0x1c8]
call fcn.00401020
movss xmm0, dword [ebp - 8]
add edi, 4
cmp edi, ebx
jne 0x409fa0
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4d9c], ecx
jle 0x40a1ae
xor edi, edi
xorps xmm1, xmm1
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
nop
mov eax, dword [ebx + 0x4da4]
movss xmm0, dword [edx + eax]
comiss xmm0, xmm1
jb 0x40a18f
movss xmm1, dword [ebp - 8]
comiss xmm1, xmm0
jbe 0x40a18c
mov esi, dword [ebx + 0x4d84]
add esi, edi
mov edi, dword [0x449430]
mov dword [ebp - 0x24], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40a131
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x40a120
movsx eax, word [edi + 0x6008]
mov edx, dword [edi + 0x3f58]
mov dword [ebp - 0x20], edx
lea eax, [eax*8 + 0x600c]
add eax, edi
cmp dword [eax], edx
je 0x40a116
movsx eax, word [edi + 0x6008]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [edi + 0x6008], ax
cwde
lea eax, [eax*8 + 0x600c]
add eax, edi
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x6004]
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.00401020
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x40a16d
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 0x40a156
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0x24]
sub esi, dword [edi + 0x4d84]
mov eax, dword [edi + 0x4da4]
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 + 0x4d9c]
jl 0x40a070
mov eax, dword [ebx + 0x4d70]
mov ecx, eax
mov esi, dword [ebx + 0x4d78]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x40a1fd
xorps xmm1, xmm1
nop dword [eax + eax]
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40a1f6
movss xmm1, dword [ebp - 8]
comiss xmm1, xmm0
jbe 0x40a1f3
lea ecx, [esi + 0x20]
call fcn.004286f0
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x40a1d0
cmp byte [ebx + 0x3f67], 0
je 0x40a2c3
mov esi, dword [0x449430]
lea ecx, [esi + 0x4a70]
call fcn.00401020
mov edi, dword [esi + 0x4a84]
test edi, edi
je 0x40a2a9
mov ecx, dword [0x449430]
mov dword [esi + 0x4a80], 0
mov dword [esi + 0x4a7c], 0
test ecx, ecx
je 0x40a298
movsx eax, word [ecx + 0x6008]
mov edx, dword [ecx + 0x3f58]
mov dword [ebp - 0x24], edx
lea eax, [eax*8 + 0x600c]
add eax, ecx
cmp dword [eax], edx
je 0x40a28e
movsx eax, word [ecx + 0x6008]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x6008], ax
cwde
lea eax, [eax*8 + 0x600c]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6004]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4a84], 0
lea ecx, [esi + 0x4e58]
mov dword [esi + 0x4e54], 0
call fcn.0041c540
call fcn.00430f40
mov eax, dword [ebx + 0x4ab8]
mov byte [ebx + 0x3f67], 0
test eax, eax
je 0x40a328
cmp byte [eax + 0xbb], 0
jne 0x40a328
mov eax, dword [0x449430]
mov edx, dword [eax + 0x3fac]
sub edx, 1
js 0x40a31c
mov eax, dword [eax + 0x3fb4]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x40a314
cmp byte [ecx + 0xbb], 0
je 0x40a314
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x40a31e
sub esi, 4
sub edx, 1
jns 0x40a2f6
xor ecx, ecx
mov edx, 1
call fcn.00411b00
mov ecx, dword [ebx + 0x3fc8]
test ecx, ecx
jns 0x40a34e
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 + 0x3fc4]
call fcn.0041d670
mov dword [ebx + 0x3fc4], 0
mov ecx, dword [ebx + 0x4a98]
test ecx, ecx
jns 0x40a37e
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 + 0x4a94]
call fcn.0041d4d0
lea esi, [ebx + 0x4a70]
mov dword [ebx + 0x4a94], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40a3ad
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.0041ce90
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40a3c2
push 8
mov ecx, esi
call fcn.0041ce90
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 + 0x4a78]
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebx + 0x4a7c]
mov dword [ebx + 0x4940], eax
call fcn.0041cb50
mov edi, dword [0x449430]
mov dword [ebp - 8], edi
cmp byte [edi + 0x5fa9], 0
mov dword [edi + 0x5fac], 0
je 0x40a537
mov eax, dword [edi + 0x4030]
mov edx, 1
push 0
mov ecx, 0x20e
mov dword [ebp - 0x10], eax
mov dword [edi + 0x4e9c], 7
call fcn.00413060
add esp, 4
test al, al
je 0x40a441
mov byte [edi + 0x5fa9], 0
mov esi, dword [edi + 0xe8]
cmp esi, 0x3000
je 0x40a473
movzx ecx, byte [edi + 0x5faa]
call fcn.00413210
test al, al
je 0x40a473
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40a473
mov dword [edi + 0x5fac], eax
mov byte [edi + 0x5fa9], 0
xor ebx, ebx
cmp esi, 0x3000
jne 0x40a48e
mov ecx, ebx
call fcn.00413210
test al, al
je 0x40a48e
mov byte [edi + 0x5faa], bl
inc ebx
cmp ebx, 3
jl 0x40a475
or dword [edi + 0x49d0], 0x40
xor ecx, ecx
mov dword [edi + 0x4a28], 0x3f333333
call fcn.00415d70
mov ebx, dword [ebp - 4]
test al, al
je 0x40a52e
push dword [ebp - 0x10]
push str.HoveredId:_0x_08X
call fcn.00431f80
push str.Press_ESC_to_abort_picking.
call fcn.00431f80
add esp, 0xc
mov dword [ebp - 0x2c], str.Left
mov dword [ebp - 0x28], str.Right
mov dword [ebp - 0x24], str.Middle
cmp esi, 0x3000
jne 0x40a4f9
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.00431f80
add esp, 4
jmp 0x40a529
movzx eax, byte [edi + 0x5faa]
mov ecx, 0x39b0
cmp dword [ebp - 0x10], 0
push dword [ebp + eax*4 - 0x2c]
mov eax, 0x39a0
cmove eax, ecx
add eax, dword [0x449430]
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.00431fd0
add esp, 0xc
call fcn.004117d0
mov edi, dword [0x449430]
mov dword [ebp - 8], edi
mov esi, edi
mov dword [esi + 0x4028], 0
mov eax, dword [esi + 0x5fe0]
inc eax
cmp dword [esi + 0x3f58], eax
jne 0x40a64e
mov ecx, dword [esi + 0x4030]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x40a56c
mov ecx, dword [esi + 0x4040]
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x5fe8], ecx
je 0x40a5c9
lea eax, [esi + 0x5fec]
mov dword [esi + 0x5fe8], ecx
mov dword [esi + 0x5fe4], 0xffffffff
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
test edx, edx
jns 0x40a5c3
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 + 0x5fec]
call fcn.0041d810
mov edi, dword [0x449430]
lea eax, [esi + 0x5fec]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [eax], 0
test ecx, ecx
je 0x40a64e
mov eax, dword [esi + 0x5fe4]
test eax, eax
js 0x40a617
mov edx, eax
cmp eax, dword [esi + 0x5fec]
jge 0x40a62a
mov ebx, dword [esi + 0x5ff4]
lea edx, [eax + eax*8]
cmp byte [ebx + edx*8 + 5], 0
mov ebx, dword [ebp - 4]
jne 0x40a610
mov edi, dword [esi + 0x5ff4]
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 0x40a62a
inc eax
mov dword [esi + 0x5fe4], eax
mov edx, eax
cmp eax, 0xffffffff
jne 0x40a626
mov dword [esi + 0x4028], ecx
jmp 0x40a64e
test edx, edx
js 0x40a64e
cmp edx, dword [esi + 0x5fec]
jge 0x40a64e
mov eax, dword [esi + 0x5ff4]
lea ecx, [edx + edx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x4028], eax
mov eax, dword [esi + 0x5ff4]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edi + 0x5fb0]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x40a70e
mov ecx, dword [edi + 0x4a3c]
mulss xmm1, dword [0x447058]
shl ecx, 4
cvtps2pd xmm0, xmm1
lea eax, [ecx + 0x39a8]
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 [0x446fcc]
lea edx, [esi + 0x39a4]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x39a0]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00404560
mov edi, dword [ebp - 8]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edi + 0x4a3c]
add eax, eax
mov dword [edi + eax*8 + 0x39ac], 0x3f800000
movss xmm0, dword [edi + 0x5fb0]
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x5fb0], xmm0
jb 0x40a70e
mov eax, dword [edi + 0x4a3c]
cmp eax, 0x38
je 0x40a704
movups xmm0, xmmword [edi + 0x5fb4]
add eax, 0x39a
add eax, eax
movups xmmword [edi + eax*8], xmm0
mov dword [edi + 0x4a3c], 0x38
mov al, byte [ebx + 0x5fa1]
test al, al
je 0x40a733
sub al, 1
mov byte [ebx + 0x5fa1], al
jne 0x40a733
mov dword [ebx + 0x4944], 0
mov byte [ebx + 0x5fa2], 0
mov al, byte [ebx + 0x5fa0]
test al, al
je 0x40a772
sub al, 1
mov byte [ebx + 0x5fa0], al
jne 0x40a772
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.0041bde0
mov eax, dword [ebx + 0x5f9c]
add esp, 4
mov edi, dword [0x449430]
not eax
and dword [ebx + 0x5f7c], eax
mov dword [ebx + 0x5f9c], 0
mov byte [ebx + 0x3f65], 1
xor edx, edx
or dword [edi + 0x49d0], 2
mov ecx, str.DebugDefault
push 0
mov dword [edi + 0x49f0], 0x43c80000
mov dword [edi + 0x49f4], 0x43c80000
mov dword [edi + 0x49d8], 4
call fcn.0040edc0
add esp, 4
cmp byte [ebx + 0x6a], 0
je 0x40a7ea
mov cl, byte [ebx + 0x5fa8]
cmp cl, 0xff
jne 0x40a7c4
xor edx, edx
jmp 0x40a7ed
mov eax, dword [ebx + 0x3f58]
and eax, 0x80000003
jns 0x40a7d6
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 0x40a7ed
or dl, 0xff
mov byte [ebx + 0x5fa8], dl
mov eax, dword [ebx + 0x5f14]
mov esi, dword [ebx + 0x5f1c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40a827
nop dword [eax]
cmp dword [esi + 4], 1
jne 0x40a820
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40a810
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret