Function at 0x406b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x4fc310]
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 0x523c]
lea ecx, [edi + 0x5244]
sub eax, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
js 0x406b9c
lea ebx, [eax + eax*4]
shl ebx, 2
nop
mov ecx, dword [ecx]
cmp dword [ecx + ebx + 4], 7
jne 0x406b83
mov esi, dword [edi + 0x5244]
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 + 0x523c]
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 + 0x523c]
dec eax
lea ecx, [edi + 0x5244]
sub ebx, 0x14
mov dword [ebp - 8], eax
test eax, eax
jns 0x406b30
lea ecx, [edi + 0x5244]
jmp 0x406b9f
mov dword [ebp - 0xc], ecx
xor esi, esi
cmp dword [edi + 0x523c], esi
jle 0x406bd3
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [ecx]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x406bc7
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 + 0x523c]
jl 0x406bb0
mov esi, dword [0x4fc310]
cmp byte [esi + 0x66], 0
je 0x406be9
test byte [esi + 0xc], 2
jne 0x406be9
mov byte [esi + 0x66], 0
cmp byte [esi + 0x5205], 0
lea eax, [esi + 0x20]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 4], ebx
jne 0x406c4f
mov ecx, dword [eax]
test ecx, ecx
je 0x406c48
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.00403400
mov ecx, eax
add esp, 8
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x406c45
mov edx, dword [ebp - 8]
test edx, edx
je 0x406c30
call fcn.00415c20
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x4fc310]
test eax, eax
je 0x406c3f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
lea eax, [esi + 0x20]
mov byte [esi + 0x5205], 1
movss xmm0, dword [esi + 0x5208]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x406cd6
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5208], xmm0
jb 0x406cd6
mov ebx, dword [eax]
test ebx, ebx
je 0x406cc5
mov eax, dword [0x4fc310]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [eax + 0x5208], 0
call fcn.00415e40
mov edx, 0x4c6860
mov dword [ebp - 0x14], eax
mov ecx, ebx
call fcn.00403300
mov ebx, eax
test ebx, ebx
je 0x406ccc
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 0x406ccc
mov byte [esi + 0x98], 1
mov dword [esi + 0x5208], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3db8]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3dc4], 1
mov word [edi + 0x51ca], ax
mov dword [edi + 0x3e0c], eax
addsd xmm0, qword [edi + 0x3db0]
movsd qword [edi + 0x3db0], xmm0
mov ecx, dword [edi + 0x51dc]
test ecx, ecx
jns 0x406d30
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 + 0x51d8]
call fcn.00416fb0
mov dword [edi + 0x51d8], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x53b8]
xorps xmm3, xmm3
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x4cca2c]
movss xmm4, dword [0x4cc900]
subss xmm0, dword [edi + eax*4 + 0x52c8]
movss dword [ebp - 8], xmm2
addss xmm0, dword [edi + 0x53c0]
movss dword [edi + 0x53c0], xmm0
movss dword [edi + eax*4 + 0x52c8], xmm1
mov eax, dword [edi + 0x53b8]
inc eax
movss xmm1, dword [edi + 0x53c0]
cdq
idiv ecx
mov eax, dword [edi + 0x53bc]
inc eax
mov dword [edi + 0x53b8], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [edi + 0x53bc], ecx
jbe 0x406dca
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x406dcd
movaps xmm0, xmm2
mov esi, dword [0x4fc310]
xor ebx, ebx
movss dword [edi + 0x9c], xmm0
mov eax, dword [esi + 0x3fc8]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
cmp dword [esi + 0x3fc0], ebx
jle 0x406ee1
mov eax, dword [esi + 0x3fc8]
movaps xmm2, xmm3
mov edx, dword [eax + ebx*4]
inc ebx
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 ebx, dword [esi + 0x3fc0]
jl 0x406e11
movss xmm2, dword [ebp - 8]
mov eax, dword [edi + 0x48]
mov esi, dword [0x4fc310]
mov byte [eax + 0x10], 1
mov ebx, dword [esi + 0x54]
test ebx, ebx
jne 0x406efd
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
movss xmm1, dword [esi + 0x4c]
movaps xmm0, xmm4
mov eax, dword [esi + 0x3e18]
mov dword [esi + 0x3bb0], ebx
mulss xmm1, dword [ebx + 0x10]
mulss xmm1, dword [ebx + 0x44]
maxss xmm0, xmm1
movss dword [esi + 0x3bb8], xmm0
test eax, eax
je 0x406f4f
movss xmm0, dword [eax + 0x244]
mov eax, dword [eax + 0x2e0]
mulss xmm0, dword [esi + 0x3bb8]
test eax, eax
je 0x406f52
mulss xmm0, dword [eax + 0x244]
jmp 0x406f52
movaps xmm0, xmm3
movss xmm4, dword [0x4cca74]
movaps xmm7, xmm2
movss dword [esi + 0x3bb4], xmm0
movaps xmm6, xmm2
mov edx, dword [ebx + 0x30]
movaps xmm5, xmm4
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [esi + 0x3bbc], eax
lea eax, [edx + 0x58]
mov dword [esi + 0x3bc0], ecx
mov dword [esi + 0x3dac], eax
mov dword [esi + 0x3bc4], ebx
movss dword [esi + 0x3bc8], xmm0
mov edx, dword [edi + 0x3fc0]
test edx, edx
jle 0x406ff4
mov ecx, dword [edi + 0x3fc8]
nop word [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 0x406fd4
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x406fdc
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x406fe4
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x406fec
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x406fb0
mov eax, dword [edi + 0x3858]
movss xmm1, dword [edi + 0x385c]
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 + 0x3bcc], eax
movups xmmword [edi + 0x3bd4], xmm0
movss xmm0, dword [edi + 0x3bd0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40711c
movss dword [edi + 0x3bd0], xmm1
xor esi, esi
mov ebx, 0x200
nop dword [eax + eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x4070d5
movss xmm1, dword [edi + 0x3bd0]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x4cc900]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x4cc96c]
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 0x4070cb
mov eax, 4
jmp 0x4070da
cmp eax, 0x200
cmovg eax, ebx
jmp 0x4070da
mov eax, 0x30
mov byte [esi + edi + 0x3d6c], al
inc esi
cmp esi, 0x40
jl 0x407050
movsd xmm0, qword [0x4cc910]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4cc900]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3bd0]
divss xmm0, xmm1
movss dword [edi + 0x3d68], xmm0
xor edx, edx
mov dword [edi + 0x3be4], 0
cmp byte [edi + 0x3854], dl
je 0x40713f
mov dword [edi + 0x3be4], 1
mov edx, 1
cmp byte [edi + 0x3855], 0
mov ecx, edx
je 0x407161
mov eax, dword [edi + 0x3bb0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x407161
or ecx, 2
mov dword [edi + 0x3be4], ecx
cmp byte [edi + 0x3856], 0
je 0x407173
or ecx, 4
mov dword [edi + 0x3be4], ecx
test byte [edi + 0xc], 8
je 0x407182
or ecx, 8
mov dword [edi + 0x3be4], ecx
xor esi, esi
cmp dword [edi + 0x3fc0], esi
jle 0x4071b2
nop dword [eax]
mov eax, dword [edi + 0x3fc8]
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 + 0x3fc0]
jl 0x407190
cmp byte [edi + 0x414c], 0
je 0x4071ec
mov eax, dword [edi + 0x4164]
cmp eax, dword [edi + 0x3e50]
jne 0x4071ec
mov ecx, dword [0x4fc310]
cmp dword [ecx + 0x3e50], eax
jne 0x4071dd
mov dword [ecx + 0x3e54], eax
cmp dword [ecx + 0x3e78], eax
jne 0x4071ec
mov byte [ecx + 0x3e7c], 1
cmp dword [edi + 0x3e40], 0
lea eax, [edi + 0x3e3c]
mov ecx, dword [eax]
jne 0x407209
mov dword [edi + 0x3e48], 0
jmp 0x407219
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x407227
cmp dword [edi + 0x3e50], ecx
jne 0x407227
mov dword [edi + 0x3e4c], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x40725e
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e48]
movss dword [edi + 0x3e48], xmm0
cmp dword [edi + 0x3e50], edx
je 0x40725e
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e4c]
movss dword [edi + 0x3e4c], xmm0
mov al, byte [edi + 0x3e45]
movaps xmm2, xmm1
mov byte [edi + 0x3e46], al
mov eax, dword [edi + 0x3e50]
mov dword [edi + 0x3e40], edx
mov dword [esi], 0
mov word [edi + 0x3e44], 0
mov byte [edi + 0x3e47], 0
test eax, eax
je 0x4072c7
cmp dword [edi + 0x3e54], eax
je 0x4072c7
cmp dword [edi + 0x3e78], eax
jne 0x4072c7
test byte [edi + 0x5280], 1
je 0x4072b9
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.00416670
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00405290
movss xmm2, dword [edi + 0x18]
mov ecx, dword [edi + 0x3e50]
test ecx, ecx
je 0x4072e4
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3e58]
movss dword [edi + 0x3e58], xmm0
mov eax, dword [edi + 0x3e6c]
addss xmm2, dword [edi + 0x3e88]
mov dword [edi + 0x3e80], eax
mov al, byte [edi + 0x3e60]
mov byte [edi + 0x3e7d], al
mov eax, dword [edi + 0x5158]
movss dword [edi + 0x3e88], xmm2
mov dword [edi + 0x3e78], ecx
mov dword [edi + 0x3e54], 0
mov byte [edi + 0x3e61], 0
mov byte [edi + 0x3e7c], 0
mov byte [edi + 0x3e5c], 0
test eax, eax
je 0x407349
cmp ecx, eax
je 0x407349
mov dword [edi + 0x5158], 0
test ecx, ecx
jne 0x407363
mov dword [edi + 0x3e8c], ecx
xorps xmm0, xmm0
movups xmmword [edi + 0x3e90], xmm0
mov dword [edi + 0x3ea0], ecx
cmp dword [edi + 0x3e50], 0
jne 0x407378
mov dword [edi + 0x3ea4], 0
jmp 0x40739c
mov eax, dword [edi + 0x3ea4]
test eax, eax
je 0x40739c
test al, 2
je 0x40739c
mov ecx, dword [0x4fc310]
mov eax, dword [ecx + 0x3e90]
bts eax, 0xe
mov dword [ecx + 0x3e90], eax
mov eax, dword [edi + 0x4274]
movss xmm0, dword [edi + 0x427c]
mov dword [edi + 0x4278], eax
test eax, eax
je 0x4073cd
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4274], 0
movss dword [edi + 0x427c], xmm0
jmp 0x40740d
comiss xmm0, dword [0x4cc848]
jbe 0x407417
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x4cc8a8]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4280]
addss xmm1, xmm1
movss dword [edi + 0x4280], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x407417
mov dword [edi + 0x427c], 0
mov dword [edi + 0x4280], 0
mov eax, dword [edi + 0x41b0]
mov dword [edi + 0x41b4], eax
mov dword [edi + 0x41b0], 0
mov dword [edi + 0x41ac], 0x7f7fffff
mov word [edi + 0x414d], 0
mov dword [edi + 0x41bc], 0
mov ecx, dword [edi + 0x3790]
test ecx, ecx
jns 0x407470
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 + 0x378c]
call fcn.00417520
mov dword [edi + 0x378c], 0
mov cl, byte [edi + 0x62]
call fcn.0040f3f0
call fcn.00405c20
call fcn.00412c70
call fcn.00406080
call fcn.00406890
mov esi, dword [0x4fc310]
mov ecx, dword [esi + 0x3e24]
test ecx, ecx
je 0x40754c
mov eax, dword [esi + 0x3e50]
mov dword [esi + 0x3e54], eax
cmp dword [esi + 0x3e78], eax
jne 0x4074c5
mov byte [esi + 0x3e7c], 1
cmp byte [esi + 0xdc0], 0
mov ebx, dword [ecx + 0x2e8]
je 0x407540
lea eax, [esi + 0xdb8]
mov ecx, eax
test eax, eax
jne 0x4074e6
lea ecx, [esi + 0xdb8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x4cca70]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x407540
comiss xmm2, xmm1
jb 0x407540
movss xmm0, dword [eax]
lea edx, [ebp - 0x20]
subss xmm0, dword [esi + 0x3e64]
push 1
mov ecx, ebx
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3e68]
movss dword [ebp - 0x1c], xmm0
call fcn.0040ecd0
mov ecx, dword [esi + 0x3e24]
add esp, 4
call fcn.0040e880
jmp 0x407588
mov dword [esi + 0x3e24], 0
jmp 0x40757f
mov ecx, dword [esi + 0x3e6c]
test ecx, ecx
je 0x407588
mov eax, dword [esi + 0x3e50]
cmp dword [ecx + 0x54], eax
jne 0x407588
mov dword [esi + 0x3e54], eax
cmp dword [esi + 0x3e78], eax
jne 0x407576
mov byte [esi + 0x3e7c], 1
cmp byte [esi + 0xdc0], 0
jne 0x407588
xor edx, edx
xor ecx, ecx
call fcn.00405290
mov eax, dword [0x4fc310]
mov edx, dword [eax + 0x3fa4]
sub edx, 1
js 0x4075c2
mov eax, dword [eax + 0x3fac]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x4075ba
test dword [ecx + 8], 0x8000000
jne 0x407670
sub eax, 0x28
sub edx, 1
jns 0x4075a7
cmp dword [edi + 0x411c], 0
xorps xmm6, xmm6
je 0x4075df
movss xmm0, dword [edi + 0x412c]
comiss xmm0, xmm6
ja 0x407673
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x4cc9a8]
movss xmm1, dword [edi + 0x4144]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [edi + 0x4144], xmm1
movups xmm0, xmmword [edi + 0x51e4]
mov dword [edi + 0x4148], 0
mov dword [edi + 0x53cc], 0xffffffff
mov dword [edi + 0x53c8], 0xffffffff
mov dword [edi + 0x53c4], 0xffffffff
movups xmmword [edi + 0x51f4], xmm0
mov byte [edi + 0x51e4], 0
call fcn.004063e0
cmp byte [edi + 0x3dc7], 0
jne 0x407695
movss xmm0, dword [edi + 0x68]
comiss xmm6, xmm0
ja 0x407695
movsd xmm1, qword [edi + 0x3db0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 8], xmm1
jmp 0x40769a
xorps xmm6, xmm6
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x4cc998]
addss xmm1, dword [edi + 0x4144]
minss xmm1, dword [0x4cc900]
jmp 0x4075fc
movss xmm1, dword [ebp - 8]
xor ebx, ebx
cmp dword [edi + 0x3dd0], ebx
je 0x40782f
nop dword [eax + eax]
mov eax, dword [edi + 0x3dd8]
xor ecx, ecx
mov esi, dword [eax + ebx*4]
mov al, byte [esi + 0x8e]
mov byte [esi + 0x8f], al
mov word [esi + 0x9a], cx
mov byte [esi + 0x8e], cl
mov byte [esi + 0x90], cl
test al, al
jne 0x40781d
cmp byte [esi + 0x32c], cl
jne 0x40781d
comiss xmm1, dword [esi + 0x224]
jbe 0x40781d
mov ecx, dword [esi + 0x24c]
mov byte [esi + 0x32c], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x324], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x328], eax
mov ecx, dword [esi + 0xd0]
test ecx, ecx
je 0x407758
mov eax, dword [0x4fc310]
mov dword [esi + 0xcc], 0
mov dword [esi + 0xc8], 0
test eax, eax
je 0x407747
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0xd0], 0
mov ecx, dword [esi + 0x24c]
call fcn.0041ec10
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x4077a1
mov eax, dword [0x4fc310]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x407790
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x170], 0
mov ecx, dword [esi + 0x198]
test ecx, ecx
je 0x4077df
mov eax, dword [0x4fc310]
mov dword [esi + 0x194], 0
mov dword [esi + 0x190], 0
test eax, eax
je 0x4077ce
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x198], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40781d
mov eax, dword [0x4fc310]
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test eax, eax
je 0x40780c
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1a4], 0
movss xmm1, dword [ebp - 8]
inc ebx
cmp ebx, dword [edi + 0x3dd0]
jne 0x4076b0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x4220], ecx
jle 0x40797d
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x14], edx
nop dword [eax + eax]
mov eax, dword [edi + 0x4228]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x407964
movss xmm2, dword [ebp - 8]
comiss xmm2, xmm0
jbe 0x407964
mov esi, dword [edi + 0x4208]
mov ebx, dword [0x4fc310]
add esi, edx
mov dword [ebp - 0x1c], ebx
mov dword [esi + 0x1a4], 0
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x4078c6
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test ebx, ebx
je 0x4078b5
dec dword [ebx + 0xb0]
push eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1a0], 0
mov byte [esi + 0x1cc], 1
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x40790b
mov eax, dword [0x4fc310]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x4078fa
dec dword [eax + 0xb0]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x170], 0
xor edx, edx
mov byte [esi + 0x1d6], 1
cmp dword [esi + 0x54], edx
jle 0x407937
xor ecx, ecx
or ebx, 0xffffffff
nop
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x68]
inc edx
mov word [ecx + eax - 0x18], bx
cmp edx, dword [esi + 0x54]
jl 0x407920
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
sub esi, dword [ebx + 0x4208]
mov eax, 0x22b63cbf
imul esi
xorps xmm1, xmm1
mov eax, dword [ebx + 0x4228]
sar edx, 6
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]
inc ecx
add edx, 0x1d8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp ecx, dword [edi + 0x4220]
jl 0x407850
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x41f4], eax
jle 0x4079d2
xor esi, esi
xorps xmm1, xmm1
nop
mov ebx, dword [edi + 0x41fc]
movss xmm0, dword [ebx + esi + 4]
comiss xmm0, xmm1
jb 0x4079c3
movss xmm2, dword [ebp - 8]
comiss xmm2, xmm0
jbe 0x4079c3
lea ecx, [esi + 0x10]
add ecx, ebx
call fcn.00421890
mov eax, dword [ebp - 0x14]
xorps xmm1, xmm1
mov dword [ebx + esi + 4], 0xbf800000
inc eax
add esi, 0x68
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x41f4]
jl 0x407990
cmp byte [edi + 0x3dc7], 0
je 0x407a67
mov esi, dword [0x4fc310]
mov eax, dword [esi + 0x3f94]
test eax, eax
je 0x407a22
mov dword [esi + 0x3f90], 0
mov dword [esi + 0x3f8c], 0
test esi, esi
je 0x407a0d
dec dword [esi + 0xb0]
mov ebx, dword [ebp - 4]
push eax
call ebx
add esp, 4
mov dword [esi + 0x3f94], 0
jmp 0x407a25
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x3fa0]
test ecx, ecx
je 0x407a62
mov eax, dword [0x4fc310]
mov dword [esi + 0x3f9c], 0
mov dword [esi + 0x3f98], 0
test eax, eax
je 0x407a52
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x3fa0], 0
call fcn.004293e0
mov eax, dword [edi + 0x3fcc]
mov byte [edi + 0x3dc7], 0
test eax, eax
je 0x407ad1
cmp byte [eax + 0x8f], 0
jne 0x407ad1
mov eax, dword [0x4fc310]
mov edx, dword [eax + 0x3ddc]
sub edx, 1
js 0x407aca
mov eax, dword [eax + 0x3de4]
lea esi, [eax + edx*4]
nop word [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x407ac2
cmp byte [ecx + 0x8f], 0
je 0x407ac2
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x407caa
sub esi, 4
sub edx, 1
jns 0x407aa0
xor ecx, ecx
call fcn.0040e880
mov ecx, dword [edi + 0x3df8]
test ecx, ecx
jns 0x407af7
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 + 0x3df4]
call fcn.004174b0
mov dword [edi + 0x3df4], 0
mov ecx, dword [edi + 0x3fb4]
test ecx, ecx
jns 0x407b27
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 + 0x3fb0]
call fcn.00417430
mov dword [edi + 0x3fb0], 0
mov ecx, dword [edi + 0x3f90]
test ecx, ecx
jns 0x407b57
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea ecx, [edi + 0x3f8c]
test eax, eax
cmovg edx, eax
push edx
call fcn.00416fb0
lea eax, [ebp - 0x1c]
mov dword [edi + 0x3f8c], 0
push eax
lea ecx, [edi + 0x3f8c]
mov dword [ebp - 0x1c], 0
call fcn.00416d80
push 0
lea ecx, [edi + 0x3f98]
call fcn.00416cd0
mov esi, dword [0x4fc310]
cmp byte [esi + 0x5290], 0
mov dword [esi + 0x5294], 0
je 0x407d01
mov eax, dword [esi + 0x3e40]
mov edx, 1
mov ecx, 0x20e
mov dword [ebp - 8], eax
mov dword [esi + 0x4148], 7
call fcn.0040f110
test al, al
je 0x407bce
mov byte [esi + 0x5290], 0
mov ebx, dword [esi + 0xdd4]
xorps xmm1, xmm1
cmp ebx, 3
je 0x407c13
movzx eax, byte [esi + 0x5291]
cmp byte [eax + esi + 0xdc0], 0
je 0x407c13
movss xmm0, dword [esi + eax*4 + 0x3728]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x407c13
mov eax, dword [ebp - 8]
test eax, eax
je 0x407c13
mov dword [esi + 0x5294], eax
mov byte [esi + 0x5290], 0
xor ecx, ecx
mov edx, 0x3728
nop word [eax + eax]
cmp ebx, 3
jne 0x407c43
cmp byte [esi + ecx + 0xdc0], 0
je 0x407c43
movss xmm0, dword [edx + esi]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x407c43
mov byte [esi + 0x5291], cl
add edx, 4
inc ecx
cmp edx, 0x3734
jl 0x407c20
or dword [esi + 0x3efc], 0x40
xor ecx, ecx
mov dword [esi + 0x3f50], 0x3f333333
call fcn.00410980
push dword [ebp - 8]
push str.HoveredId:_0x_08X
call fcn.0042a200
push str.Press_ESC_to_abort_picking.
call fcn.0042a200
add esp, 0xc
mov dword [ebp - 0x24], str.Left
mov dword [ebp - 0x20], str.Right
mov dword [ebp - 0x1c], str.Middle
cmp ebx, 3
jne 0x407cc6
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.0042a200
add esp, 4
jmp 0x407cf6
mov eax, dword [ecx + 0x2f8]
test eax, eax
je 0x407cbd
cmp byte [eax + 0x8f], 0
jne 0x407cbf
mov eax, ecx
mov ecx, eax
jmp 0x407acc
movzx eax, byte [esi + 0x5291]
mov ecx, 0x3870
cmp dword [ebp - 8], 0
push dword [ebp + eax*4 - 0x24]
mov eax, 0x3860
cmove eax, ecx
add eax, dword [0x4fc310]
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.0042a2f0
add esp, 0xc
call fcn.0040e6e0
mov esi, dword [0x4fc310]
lea eax, [esi + 0x3e38]
lea ebx, [esi + 0x52a8]
mov dword [eax], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
inc eax
cmp dword [esi + 0x3db8], eax
jne 0x407de6
mov edx, dword [esi + 0x3e40]
mov dword [ebp - 8], edx
test edx, edx
jne 0x407d3b
mov edx, dword [esi + 0x3e50]
mov dword [ebp - 8], edx
cmp dword [ebx + 8], edx
je 0x407d7f
lea eax, [ebx + 0xc]
mov dword [ebx + 8], edx
mov dword [ebx + 4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x407d79
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 + 0xc]
call fcn.004175a0
mov esi, dword [0x4fc310]
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 8]
mov dword [eax], 0
test edx, edx
je 0x407de6
mov eax, dword [ebx + 4]
test eax, eax
js 0x407dba
mov ecx, eax
cmp eax, dword [ebx + 0xc]
jge 0x407dcc
mov edx, dword [ebx + 0x14]
lea ecx, [eax + eax*8]
cmp byte [edx + ecx*8 + 5], 0
mov edx, dword [ebp - 8]
jne 0x407db6
mov edi, dword [ebx + 0x14]
lea edx, [eax + eax*8]
mov ecx, eax
cmp byte [edi + edx*8 + 4], 2
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
jle 0x407dcc
inc eax
mov dword [ebx + 4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x407dc8
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x407de6
test ecx, ecx
js 0x407de6
cmp ecx, dword [ebx + 0xc]
jge 0x407de6
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*8]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*8]
mov dword [edx], eax
mov eax, dword [ebx + 0x14]
inc byte [eax + ecx*8 + 4]
mov byte [edi + 0x3dc5], 1
xor edx, edx
or dword [esi + 0x3efc], 2
mov ecx, str.DebugDefault
push 0
mov dword [esi + 0x3f1c], 0x43c80000
mov dword [esi + 0x3f20], 0x43c80000
mov dword [esi + 0x3f04], 4
call fcn.0040be20
xor esi, esi
add esp, 4
cmp dword [edi + 0x523c], esi
jle 0x407e53
xor ebx, ebx
nop
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x407e47
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x523c]
jl 0x407e30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret