Function at 0x40e3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x4931e0]
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 0x5a48]
lea ecx, [edi + 0x5a50]
sub eax, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
js 0x40e44c
lea ebx, [eax + eax*4]
shl ebx, 2
nop
mov ecx, dword [ecx]
cmp dword [ecx + ebx + 4], 7
jne 0x40e433
mov esi, dword [edi + 0x5a50]
mov eax, 0x66666667
sub ecx, esi
add ecx, ebx
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
lea edx, [esi + eax*4]
mov eax, dword [edi + 0x5a48]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 8]
add esp, 0xc
dec dword [edi + 0x5a48]
dec eax
lea ecx, [edi + 0x5a50]
sub ebx, 0x14
mov dword [ebp - 8], eax
test eax, eax
jns 0x40e3e0
lea ecx, [edi + 0x5a50]
jmp 0x40e44f
mov dword [ebp - 0xc], ecx
xor esi, esi
cmp dword [edi + 0x5a48], esi
jle 0x40e483
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [ecx]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x40e477
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [ebp - 0xc]
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a48]
jl 0x40e460
mov esi, dword [0x4931e0]
cmp byte [esi + 0x66], 0
je 0x40e499
test byte [esi + 0xc], 2
jne 0x40e499
mov byte [esi + 0x66], 0
cmp byte [esi + 0x5a11], 0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 4], eax
jne 0x40e4fa
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40e4f3
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.0040af40
mov ecx, eax
add esp, 8
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x40e4f3
mov edx, dword [ebp - 8]
test edx, edx
je 0x40e4dd
call fcn.0041e210
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x4931e0]
test eax, eax
je 0x40e4ec
dec dword [eax + 0xb4]
push ecx
call dword [ebp - 4]
add esp, 4
mov byte [esi + 0x5a11], 1
movss xmm0, dword [esi + 0x5a14]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40e582
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5a14], xmm0
jb 0x40e582
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x40e571
mov eax, dword [0x4931e0]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [eax + 0x5a14], 0
call fcn.0041e430
mov edx, 0x47dbd0
mov dword [ebp - 0x14], eax
mov ecx, ebx
call fcn.0040ae40
mov ebx, eax
test ebx, ebx
je 0x40e578
push ebx
push dword [ebp - 8]
push 1
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x40e578
mov byte [esi + 0x9c], 1
mov dword [esi + 0x5a14], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3de0]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3dec], 1
mov word [edi + 0x59d6], ax
mov dword [edi + 0x3e34], eax
addsd xmm0, qword [edi + 0x3dd8]
movsd qword [edi + 0x3dd8], xmm0
mov ecx, dword [edi + 0x59e8]
test ecx, ecx
jns 0x40e5dc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x59e4]
call fcn.0041f840
mov dword [edi + 0x59e4], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5bf4]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [edi + eax*4 + 0x5b04]
addss xmm0, dword [edi + 0x5bfc]
movss dword [edi + 0x5bfc], xmm0
movss dword [edi + eax*4 + 0x5b04], xmm1
mov eax, dword [edi + 0x5bf4]
inc eax
movss xmm1, dword [edi + 0x5bfc]
cdq
idiv ecx
mov eax, dword [edi + 0x5bf8]
movss xmm0, dword [0x486094]
inc eax
cmp eax, ecx
mov dword [edi + 0x5bf4], edx
movss dword [ebp - 8], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x485f90]
mov dword [edi + 0x5bf8], ecx
jbe 0x40e672
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x486010]
divss xmm0, xmm1
movss dword [edi + 0xa0], xmm0
mov ecx, dword [edi + 0x3798]
test ecx, ecx
jns 0x40e6a0
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x3794]
call fcn.0041fef0
mov dword [edi + 0x3794], 0
mov cl, byte [edi + 0x62]
call fcn.00417eb0
mov ebx, dword [0x4931e0]
xor esi, esi
xorps xmm3, xmm3
mov eax, dword [ebx + 0x47bc]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
cmp dword [ebx + 0x47b4], esi
jle 0x40e7bc
mov eax, dword [ebx + 0x47bc]
movaps xmm2, xmm3
mov edx, dword [eax + esi*4]
inc esi
mov eax, dword [edx + 0x8c]
mov ecx, dword [edx + 0x90]
mov dword [edx + 0x7c], eax
mov eax, dword [edx + 0x94]
mov dword [edx + 0x80], ecx
mov ecx, dword [edx + 0x98]
mov dword [edx + 0x84], eax
mov dword [edx + 0x88], ecx
mov dword [edx + 0x94], 0
mov dword [edx + 0x98], 0
mov dword [edx + 0x8c], 0
mov dword [edx + 0x90], 0
movss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 8]
movss xmm1, dword [edx + 0x7c]
addss xmm1, dword [edx + 4]
movss dword [edx + 0x18], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [edx + 0x14], xmm1
movaps xmm1, xmm3
subss xmm0, dword [edx + 0x7c]
addss xmm0, dword [edx + 0x84]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 0x88]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp esi, dword [ebx + 0x47b4]
jl 0x40e6f1
mov eax, dword [edi + 0x48]
mov byte [eax + 0x10], 1
mov esi, dword [ebx + 0x54]
test esi, esi
jne 0x40e7d2
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm1, dword [ebx + 0x4c]
movss xmm2, dword [0x486010]
mov ecx, dword [ebx + 0x3e40]
movaps xmm0, xmm2
mov dword [ebx + 0x3bcc], esi
mulss xmm1, dword [esi + 0x10]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [ebx + 0x3bd4], xmm0
test ecx, ecx
je 0x40e82e
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x25c]
mulss xmm0, dword [eax + 0x3bd4]
mov eax, dword [ecx + 0x2f8]
test eax, eax
je 0x40e831
mulss xmm0, dword [eax + 0x25c]
jmp 0x40e831
movaps xmm0, xmm3
movss xmm7, dword [ebp - 8]
movss xmm4, dword [0x4860ac]
movaps xmm6, xmm7
movss dword [ebx + 0x3bd0], xmm0
movaps xmm5, xmm4
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3bd8], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3bdc], ecx
mov dword [ebx + 0x3dd4], eax
mov dword [ebx + 0x3be0], esi
movss dword [ebx + 0x3be4], xmm0
mov edx, dword [edi + 0x47b4]
test edx, edx
jle 0x40e8dc
mov ecx, dword [edi + 0x47bc]
nop dword [eax + eax]
mov eax, dword [ecx]
movss xmm3, dword [eax + 4]
comiss xmm7, xmm3
movss xmm2, dword [eax + 8]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0xc]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x10]
jbe 0x40e8b4
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40e8bc
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x40e8c4
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x40e8cc
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x40e890
movss xmm2, dword [0x486010]
mov eax, dword [edi + 0x3874]
movss xmm1, dword [edi + 0x3878]
movss dword [ebp - 0x28], xmm7
movss dword [ebp - 0x24], xmm6
movss dword [ebp - 0x20], xmm4
movss dword [ebp - 0x1c], xmm5
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x3be8], eax
movups xmmword [edi + 0x3bf0], xmm0
movss xmm0, dword [edi + 0x3bec]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40ea08
movss dword [edi + 0x3bec], xmm1
xor esi, esi
mov ebx, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x40e9b3
movss xmm1, dword [edi + 0x3bec]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x486038]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x20], xmm0
fld qword [ebp - 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x40e9a9
mov eax, 4
jmp 0x40e9b8
cmp eax, 0x200
cmovg eax, ebx
jmp 0x40e9b8
mov eax, 0x30
movss xmm2, dword [0x486010]
mov byte [esi + edi + 0x3d94], al
inc esi
cmp esi, 0x40
jl 0x40e933
movsd xmm0, qword [0x486020]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x486010]
cvtsd2ss xmm0, xmm0
mov ebx, dword [0x4931e0]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3bec]
divss xmm0, xmm1
movss dword [edi + 0x3d90], xmm0
xor edx, edx
mov dword [edi + 0x3c00], 0
cmp byte [edi + 0x3870], dl
je 0x40ea2b
mov dword [edi + 0x3c00], 1
mov edx, 1
cmp byte [edi + 0x3871], 0
mov ecx, edx
je 0x40ea4d
mov eax, dword [edi + 0x3bcc]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x40ea4d
or ecx, 2
mov dword [edi + 0x3c00], ecx
cmp byte [edi + 0x3872], 0
je 0x40ea5f
or ecx, 4
mov dword [edi + 0x3c00], ecx
test byte [edi + 0xc], 8
je 0x40ea6e
or ecx, 8
mov dword [edi + 0x3c00], ecx
xor esi, esi
cmp dword [edi + 0x47b4], esi
jle 0x40eaa2
nop dword [eax + eax]
mov eax, dword [edi + 0x47bc]
push 0x2c
push 0
mov eax, dword [eax + esi*4]
add eax, 0x38
push eax
call sub.VCRUNTIME140.dll_memset
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x47b4]
jl 0x40ea80
cmp byte [edi + 0x4944], 0
je 0x40ead6
mov eax, dword [edi + 0x495c]
cmp eax, dword [edi + 0x3e8c]
jne 0x40ead6
cmp dword [ebx + 0x3e8c], eax
jne 0x40eac7
mov dword [ebx + 0x3e90], eax
cmp dword [ebx + 0x3eb4], eax
jne 0x40ead6
mov byte [ebx + 0x3eb8], 1
cmp dword [edi + 0x3e7c], 0
lea eax, [edi + 0x3e78]
mov ecx, dword [eax]
jne 0x40eaf3
mov dword [edi + 0x3e84], 0
jmp 0x40eb03
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x40eb11
cmp dword [edi + 0x3e8c], ecx
jne 0x40eb11
mov dword [edi + 0x3e88], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x40eb48
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e84]
movss dword [edi + 0x3e84], xmm0
cmp dword [edi + 0x3e8c], edx
je 0x40eb48
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e88]
movss dword [edi + 0x3e88], xmm0
mov eax, dword [edi + 0x3e8c]
movaps xmm2, xmm1
mov dword [edi + 0x3e7c], edx
mov dword [esi], 0
mov word [edi + 0x3e80], 0
test eax, eax
je 0x40eba4
cmp dword [edi + 0x3e90], eax
je 0x40eba4
cmp dword [edi + 0x3eb4], eax
jne 0x40eba4
test byte [edi + 0x5aa8], 1
je 0x40eb90
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041ed50
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.0040d800
movss xmm2, dword [edi + 0x18]
mov ebx, dword [0x4931e0]
mov ecx, dword [edi + 0x3e8c]
test ecx, ecx
je 0x40ebc1
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3e94]
movss dword [edi + 0x3e94], xmm0
mov eax, dword [edi + 0x3ea8]
addss xmm2, dword [edi + 0x3ec4]
mov dword [edi + 0x3ebc], eax
mov al, byte [edi + 0x3e9c]
mov byte [edi + 0x3eb9], al
mov eax, dword [edi + 0x595c]
movss dword [edi + 0x3ec4], xmm2
mov dword [edi + 0x3eb4], ecx
mov dword [edi + 0x3e90], 0
mov byte [edi + 0x3e9d], 0
mov byte [edi + 0x3eb8], 0
mov byte [edi + 0x3e98], 0
test eax, eax
je 0x40ec26
cmp ecx, eax
je 0x40ec26
mov dword [edi + 0x595c], 0
test ecx, ecx
jne 0x40ec44
mov dword [edi + 0x4690], ecx
mov dword [edi + 0x4688], ecx
mov byte [edi + 0x468c], cl
mov dword [edi + 0x4690], ecx
jmp 0x40ec67
mov eax, dword [edi + 0x4690]
test eax, eax
je 0x40ec67
test al, 2
je 0x40ec67
mov dword [ebx + 0x3f74], ecx
mov dword [ebx + 0x3f70], ecx
mov word [ebx + 0x3f78], 0
mov eax, dword [edi + 0x4a6c]
movss xmm0, dword [edi + 0x4a74]
mov dword [edi + 0x4a70], eax
test eax, eax
je 0x40ec98
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a6c], 0
movss dword [edi + 0x4a74], xmm0
jmp 0x40ecd8
comiss xmm0, dword [0x485f90]
jbe 0x40ece2
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x485fc4]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a78]
addss xmm1, xmm1
movss dword [edi + 0x4a78], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x40ece2
mov dword [edi + 0x4a74], 0
mov dword [edi + 0x4a78], 0
mov eax, dword [edi + 0x49a8]
mov dword [edi + 0x49ac], eax
mov dword [edi + 0x49a8], 0
mov dword [edi + 0x49a4], 0x7f7fffff
mov word [edi + 0x4945], 0
mov dword [edi + 0x49b4], 0
call fcn.00416c10
call fcn.0041ab30
call fcn.00417160
call fcn.0040e140
mov esi, dword [0x4931e0]
mov ecx, dword [esi + 0x3e4c]
test ecx, ecx
je 0x40eddf
mov eax, dword [esi + 0x3e8c]
mov dword [esi + 0x3e90], eax
cmp dword [esi + 0x3eb4], eax
jne 0x40ed58
mov byte [esi + 0x3eb8], 1
cmp byte [esi + 0xdc8], 0
mov ebx, dword [ecx + 0x300]
je 0x40edd3
lea eax, [esi + 0xdc0]
mov ecx, eax
test eax, eax
jne 0x40ed79
lea ecx, [esi + 0xdc0]
movss xmm0, dword [ecx]
movss xmm1, dword [0x4860a8]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x40edd3
comiss xmm2, xmm1
jb 0x40edd3
movss xmm0, dword [eax]
lea edx, [ebp - 0x20]
subss xmm0, dword [esi + 0x3ea0]
push 1
mov ecx, ebx
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3ea4]
movss dword [ebp - 0x1c], xmm0
call fcn.00416140
mov ecx, dword [esi + 0x3e4c]
add esp, 4
call fcn.00415ea0
jmp 0x40ee1b
mov dword [esi + 0x3e4c], 0
jmp 0x40ee12
mov ecx, dword [esi + 0x3ea8]
test ecx, ecx
je 0x40ee1b
mov eax, dword [esi + 0x3e8c]
cmp dword [ecx + 0x70], eax
jne 0x40ee1b
mov dword [esi + 0x3e90], eax
cmp dword [esi + 0x3eb4], eax
jne 0x40ee09
mov byte [esi + 0x3eb8], 1
cmp byte [esi + 0xdc8], 0
jne 0x40ee1b
xor edx, edx
xor ecx, ecx
call fcn.0040d800
mov eax, dword [0x4931e0]
mov edx, dword [eax + 0x4798]
sub edx, 1
js 0x40ee57
mov eax, dword [eax + 0x47a0]
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 0x40ee4f
test dword [ecx + 0xc], 0x8000000
jne 0x40ee71
sub eax, 0x28
sub edx, 1
jns 0x40ee40
cmp dword [edi + 0x4914], 0
je 0x40ee90
movss xmm0, dword [edi + 0x4924]
comiss xmm0, dword [0x485f90]
jbe 0x40ee90
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x486044]
addss xmm1, dword [edi + 0x493c]
minss xmm1, dword [0x486010]
jmp 0x40eeb1
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x486054]
movss xmm1, dword [edi + 0x493c]
subss xmm1, xmm0
maxss xmm1, dword [0x485f90]
movss dword [edi + 0x493c], xmm1
movups xmm0, xmmword [edi + 0x59f0]
mov dword [edi + 0x4940], 0
mov dword [edi + 0x5c08], 0xffffffff
mov dword [edi + 0x5c04], 0xffffffff
mov dword [edi + 0x5c00], 0xffffffff
movups xmmword [edi + 0x5a00], xmm0
mov byte [edi + 0x59f0], 0
call fcn.004174c0
cmp byte [edi + 0x3def], 0
jne 0x40ef28
movss xmm0, dword [edi + 0x68]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x40ef28
movsd xmm1, qword [edi + 0x3dd8]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 8], xmm1
jmp 0x40ef2d
movss xmm1, dword [ebp - 8]
xor ebx, ebx
cmp dword [edi + 0x3df8], ebx
je 0x40f0cf
nop dword [eax + eax]
mov eax, dword [edi + 0x3e00]
mov esi, dword [eax + ebx*4]
mov ax, word [esi + 0xb6]
mov cl, byte [esi + 0xaa]
mov word [esi + 0xb8], ax
xor eax, eax
mov byte [esi + 0xab], cl
mov byte [esi + 0xaa], 0
mov byte [esi + 0xac], 0
mov word [esi + 0xb6], ax
test cl, cl
jne 0x40f0bd
cmp byte [esi + 0x348], al
jne 0x40f0bd
comiss xmm1, dword [esi + 0x23c]
jbe 0x40f0bd
mov ecx, dword [esi + 0x264]
mov byte [esi + 0x348], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x340], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x344], eax
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x40eff8
mov eax, dword [0x4931e0]
mov dword [esi + 0xe8], 0
mov dword [esi + 0xe4], 0
test eax, eax
je 0x40efe7
dec dword [eax + 0xb4]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0xec], 0
mov ecx, dword [esi + 0x264]
call fcn.00428030
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x40f041
mov eax, dword [0x4931e0]
mov dword [esi + 0x184], 0
mov dword [esi + 0x180], 0
test eax, eax
je 0x40f030
dec dword [eax + 0xb4]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x188], 0
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x40f07f
mov eax, dword [0x4931e0]
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1a8], 0
test eax, eax
je 0x40f06e
dec dword [eax + 0xb4]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1b0], 0
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x40f0bd
mov eax, dword [0x4931e0]
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1b4], 0
test eax, eax
je 0x40f0ac
dec dword [eax + 0xb4]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1bc], 0
movss xmm1, dword [ebp - 8]
inc ebx
cmp ebx, dword [edi + 0x3df8]
jne 0x40ef40
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x4a18], ecx
jle 0x40f21d
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x14], edx
nop dword [eax + eax]
mov eax, dword [edi + 0x4a20]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x40f204
movss xmm1, dword [ebp - 8]
comiss xmm1, xmm0
jbe 0x40f201
mov esi, dword [edi + 0x4a00]
mov ebx, dword [0x4931e0]
add esi, edx
mov dword [ebp - 0x1c], ebx
mov dword [esi + 0x198], 0
mov eax, dword [esi + 0x194]
test eax, eax
je 0x40f166
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test ebx, ebx
je 0x40f155
dec dword [ebx + 0xb4]
push eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x194], 0
mov byte [esi + 0x1d9], 1
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x40f1ab
mov eax, dword [0x4931e0]
mov dword [esi + 0x158], 0
mov dword [esi + 0x154], 0
test eax, eax
je 0x40f19a
dec dword [eax + 0xb4]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x15c], 0
xor edx, edx
mov byte [esi + 0x1e5], 1
cmp dword [esi + 0x40], edx
jle 0x40f1d7
xor ecx, ecx
or ebx, 0xffffffff
nop
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], bx
cmp edx, dword [esi + 0x40]
jl 0x40f1c0
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
sub esi, dword [ebx + 0x4a00]
mov eax, 0x4325c53f
imul esi
mov eax, dword [ebx + 0x4a20]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [ebp - 0x10]
xorps xmm1, xmm1
inc ecx
add edx, 0x1e8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp ecx, dword [edi + 0x4a18]
jl 0x40f0f0
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x49ec], eax
jle 0x40f272
xor esi, esi
xorps xmm1, xmm1
nop
mov ebx, dword [edi + 0x49f4]
movss xmm0, dword [esi + ebx + 4]
comiss xmm0, xmm1
jb 0x40f263
movss xmm1, dword [ebp - 8]
comiss xmm1, xmm0
jbe 0x40f260
lea ecx, [ebx + 0x10]
add ecx, esi
call fcn.0042a970
mov eax, dword [ebp - 0x14]
mov dword [esi + ebx + 4], 0xbf800000
xorps xmm1, xmm1
inc eax
add esi, 0x68
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x49ec]
jl 0x40f230
cmp byte [edi + 0x3def], 0
je 0x40f307
mov esi, dword [0x4931e0]
mov eax, dword [esi + 0x4788]
test eax, eax
je 0x40f2c2
mov dword [esi + 0x4784], 0
mov dword [esi + 0x4780], 0
test esi, esi
je 0x40f2ad
dec dword [esi + 0xb4]
mov ebx, dword [ebp - 4]
push eax
call ebx
add esp, 4
mov dword [esi + 0x4788], 0
jmp 0x40f2c5
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x4794]
test ecx, ecx
je 0x40f302
mov eax, dword [0x4931e0]
mov dword [esi + 0x4790], 0
mov dword [esi + 0x478c], 0
test eax, eax
je 0x40f2f2
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x4794], 0
call fcn.00432540
mov eax, dword [edi + 0x47c0]
mov byte [edi + 0x3def], 0
test eax, eax
je 0x40f371
cmp byte [eax + 0xab], 0
jne 0x40f371
mov eax, dword [0x4931e0]
mov edx, dword [eax + 0x3e04]
sub edx, 1
js 0x40f36a
mov eax, dword [eax + 0x3e0c]
lea esi, [eax + edx*4]
nop word [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40f362
cmp byte [ecx + 0xab], 0
je 0x40f362
mov eax, dword [ecx + 0xc]
and eax, 0x40200
cmp eax, 0x40200
jne 0x40f535
sub esi, 4
sub edx, 1
jns 0x40f340
xor ecx, ecx
call fcn.00415ea0
mov ecx, dword [edi + 0x3e20]
test ecx, ecx
jns 0x40f397
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x3e1c]
call fcn.0041fe80
mov dword [edi + 0x3e1c], 0
mov ecx, dword [edi + 0x47a8]
test ecx, ecx
jns 0x40f3c7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x47a4]
call fcn.0041fe00
lea esi, [edi + 0x4780]
mov dword [edi + 0x47a4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40f3f6
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.0041f840
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40f40b
push 8
mov ecx, esi
call fcn.0041f840
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x478c]
inc dword [esi]
call fcn.0041f610
mov esi, dword [0x4931e0]
cmp byte [esi + 0x5acb], 0
mov dword [esi + 0x5ad0], 0
je 0x40f587
mov ebx, dword [esi + 0x3e7c]
xor edx, edx
push 1
mov ecx, 0x20e
mov dword [ebp - 0x1c], ebx
mov dword [esi + 0x4940], 7
call fcn.00416970
add esp, 4
test al, al
je 0x40f471
mov byte [esi + 0x5acb], 0
mov eax, dword [esi + 0xddc]
mov dword [ebp - 8], eax
cmp eax, 0x3000
je 0x40f4a5
movzx ecx, byte [esi + 0x5acc]
call fcn.00416a60
test al, al
mov eax, dword [ebp - 8]
je 0x40f4a5
test ebx, ebx
je 0x40f4a5
mov dword [esi + 0x5ad0], ebx
mov byte [esi + 0x5acb], 0
xor ebx, ebx
cmp eax, 0x3000
jne 0x40f4c2
mov ecx, ebx
call fcn.00416a60
test al, al
mov eax, dword [ebp - 8]
je 0x40f4c2
mov byte [esi + 0x5acc], bl
inc ebx
cmp ebx, 3
jl 0x40f4a7
mov eax, dword [0x4931e0]
xor ecx, ecx
or dword [eax + 0x46f0], 0x40
mov dword [eax + 0x4744], 0x3f333333
call fcn.00418e30
test al, al
je 0x40f587
mov ebx, dword [ebp - 0x1c]
push ebx
push str.HoveredId:_0x_08X
call fcn.00433ec0
push str.Press_ESC_to_abort_picking.
call fcn.00433ec0
add esp, 0xc
mov dword [ebp - 0x24], str.Left
cmp dword [ebp - 8], 0x3000
mov dword [ebp - 0x20], str.Right
mov dword [ebp - 0x1c], str.Middle
jne 0x40f551
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.00433ec0
add esp, 4
jmp 0x40f582
mov eax, dword [ecx + 0x310]
test eax, eax
je 0x40f548
cmp byte [eax + 0xab], 0
jne 0x40f54a
mov eax, ecx
mov ecx, eax
jmp 0x40f36c
movzx eax, byte [esi + 0x5acc]
xor ecx, ecx
test ebx, ebx
push dword [ebp + eax*4 - 0x24]
mov eax, 0x10
cmove ecx, eax
mov eax, dword [0x4931e0]
add eax, 0x387c
add eax, ecx
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.00433f90
add esp, 0xc
call fcn.00415cc0
mov esi, dword [0x4931e0]
mov dword [esi + 0x3e74], 0
mov eax, dword [esi + 0x5ae4]
inc eax
cmp dword [esi + 0x3de0], eax
jne 0x40f67f
mov ebx, dword [esi + 0x3e7c]
test ebx, ebx
jne 0x40f5ba
mov ebx, dword [esi + 0x3e8c]
cmp dword [esi + 0x5aec], ebx
je 0x40f607
lea eax, [esi + 0x5af0]
mov dword [esi + 0x5aec], ebx
mov dword [esi + 0x5ae8], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40f601
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 + 0x5af0]
call fcn.0041ff70
lea eax, [esi + 0x5af0]
mov dword [eax], 0
test ebx, ebx
je 0x40f67f
mov eax, dword [esi + 0x5ae8]
test eax, eax
js 0x40f648
mov ecx, eax
cmp eax, dword [esi + 0x5af0]
jge 0x40f65b
mov ecx, dword [esi + 0x5af8]
lea edx, [eax + eax*8]
cmp byte [ecx + edx*8 + 5], 0
jne 0x40f641
mov edi, dword [esi + 0x5af8]
mov ecx, eax
cmp byte [edi + edx*8 + 4], 2
mov edi, dword [ebp - 0x18]
jle 0x40f65b
inc eax
mov dword [esi + 0x5ae8], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x40f657
mov dword [esi + 0x3e74], ebx
jmp 0x40f67f
test ecx, ecx
js 0x40f67f
cmp ecx, dword [esi + 0x5af0]
jge 0x40f67f
mov eax, dword [esi + 0x5af8]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3e74], eax
mov eax, dword [esi + 0x5af8]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5ac9]
test al, al
je 0x40f69d
sub al, 1
mov byte [edi + 0x5ac9], al
jne 0x40f69d
mov dword [edi + 0x469c], 0
mov al, byte [edi + 0x5ac8]
test al, al
je 0x40f6c5
sub al, 1
mov byte [edi + 0x5ac8], al
jne 0x40f6c5
push str._Auto_disabled_ImGuiDebugLogFlags_EventClipper_to_avoid_spamming__n
call fcn.0041ed50
add esp, 4
and dword [edi + 0x5aa8], 0xffffffef
mov eax, dword [0x4931e0]
xor edx, edx
mov byte [edi + 0x3ded], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x46f0], 2
mov dword [eax + 0x4710], 0x43c80000
mov dword [eax + 0x4714], 0x43c80000
mov dword [eax + 0x46f8], 4
call fcn.00413280
add esp, 4
cmp byte [edi + 0x6d], 0
je 0x40f742
mov cl, byte [edi + 0x5aca]
cmp cl, 0xff
jne 0x40f71c
xor edx, edx
jmp 0x40f745
mov eax, dword [edi + 0x3de0]
and eax, reloc.WS2_32.dll_closesocket
jns 0x40f72e
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 0x40f745
or dl, 0xff
xor esi, esi
mov byte [edi + 0x5aca], dl
cmp dword [edi + 0x5a48], esi
jle 0x40f77a
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x40f76e
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a48]
jl 0x40f757
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret