Function at 0x408a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x451660]
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 0x5238]
lea ecx, [edi + 0x5240]
sub eax, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
js 0x408afc
lea ebx, [eax + eax*4]
shl ebx, 2
nop
mov ecx, dword [ecx]
cmp dword [ecx + ebx + 4], 7
jne 0x408ae3
mov esi, dword [edi + 0x5240]
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 + 0x5238]
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 + 0x5238]
dec eax
lea ecx, [edi + 0x5240]
sub ebx, 0x14
mov dword [ebp - 8], eax
test eax, eax
jns 0x408a90
lea ecx, [edi + 0x5240]
jmp 0x408aff
mov dword [ebp - 0xc], ecx
xor esi, esi
cmp dword [edi + 0x5238], esi
jle 0x408b33
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [ecx]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x408b27
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 + 0x5238]
jl 0x408b10
mov esi, dword [0x451660]
cmp byte [esi + 0x5e], 0
je 0x408b49
test byte [esi + 0xc], 2
jne 0x408b49
mov byte [esi + 0x5e], 0
cmp byte [esi + 0x5201], 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 0x408baf
mov ecx, dword [eax]
test ecx, ecx
je 0x408ba8
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call fcn.00405840
mov ecx, eax
add esp, 8
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x408ba5
mov edx, dword [ebp - 8]
test edx, edx
je 0x408b90
call fcn.00416fd0
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x451660]
test eax, eax
je 0x408b9f
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
lea eax, [esi + 0x20]
mov byte [esi + 0x5201], 1
movss xmm0, dword [esi + 0x5204]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x408c36
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5204], xmm0
jb 0x408c36
mov ebx, dword [eax]
test ebx, ebx
je 0x408c25
mov eax, dword [0x451660]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [eax + 0x5204], 0
call fcn.004171f0
mov edx, 0x4477f0
mov dword [ebp - 0x14], eax
mov ecx, ebx
call fcn.00405740
mov ebx, eax
test ebx, ebx
je 0x408c2c
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 0x408c2c
mov byte [esi + 0x90], 1
mov dword [esi + 0x5204], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3dc0]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3dcc], 1
mov word [edi + 0x51c2], ax
mov dword [edi + 0x3e14], eax
addsd xmm0, qword [edi + 0x3db8]
movsd qword [edi + 0x3db8], xmm0
mov ecx, dword [edi + 0x51d8]
test ecx, ecx
jns 0x408c90
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 + 0x51d4]
call fcn.00418230
mov dword [edi + 0x51d4], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x53b4]
xorps xmm3, xmm3
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x44d62c]
movss xmm4, dword [0x44d510]
subss xmm0, dword [edi + eax*4 + 0x52c4]
movss dword [ebp - 8], xmm2
addss xmm0, dword [edi + 0x53bc]
movss dword [edi + 0x53bc], xmm0
movss dword [edi + eax*4 + 0x52c4], xmm1
mov eax, dword [edi + 0x53b4]
inc eax
movss xmm1, dword [edi + 0x53bc]
cdq
idiv ecx
mov eax, dword [edi + 0x53b8]
inc eax
mov dword [edi + 0x53b4], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [edi + 0x53b8], ecx
jbe 0x408d2a
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x408d2d
movaps xmm0, xmm2
mov esi, dword [0x451660]
xor ebx, ebx
movss dword [edi + 0x94], xmm0
mov eax, dword [esi + 0x3fd0]
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 + 0x3fc8], ebx
jle 0x408e41
mov eax, dword [esi + 0x3fd0]
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 + 0x3fc8]
jl 0x408d71
movss xmm2, dword [ebp - 8]
mov eax, dword [edi + 0x40]
mov esi, dword [0x451660]
mov byte [eax + 0x10], 1
mov ebx, dword [esi + 0x4c]
test ebx, ebx
jne 0x408e5d
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
movss xmm1, dword [esi + 0x44]
movaps xmm0, xmm4
mov eax, dword [esi + 0x3e20]
mov dword [esi + 0x3bb8], ebx
mulss xmm1, dword [ebx + 0x10]
mulss xmm1, dword [ebx + 0x44]
maxss xmm0, xmm1
movss dword [esi + 0x3bc0], xmm0
test eax, eax
je 0x408eaf
movss xmm0, dword [eax + 0x244]
mov eax, dword [eax + 0x2e0]
mulss xmm0, dword [esi + 0x3bc0]
test eax, eax
je 0x408eb2
mulss xmm0, dword [eax + 0x244]
jmp 0x408eb2
movaps xmm0, xmm3
movss xmm4, dword [0x44d644]
movaps xmm7, xmm2
movss dword [esi + 0x3bbc], 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 + 0x3bc4], eax
lea eax, [edx + 0x58]
mov dword [esi + 0x3bc8], ecx
mov dword [esi + 0x3db4], eax
mov dword [esi + 0x3bcc], ebx
movss dword [esi + 0x3bd0], xmm0
mov edx, dword [edi + 0x3fc8]
test edx, edx
jle 0x408f54
mov ecx, dword [edi + 0x3fd0]
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 0x408f34
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x408f3c
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x408f44
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x408f4c
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x408f10
movss dword [edi + 0x3bdc], xmm7
movss dword [edi + 0x3be0], xmm6
movss dword [edi + 0x3be4], xmm4
movss dword [edi + 0x3be8], xmm5
mov eax, dword [edi + 0x3850]
movss xmm1, dword [edi + 0x3854]
mov dword [edi + 0x3bd4], eax
movss xmm0, dword [edi + 0x3bd8]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40907c
movss dword [edi + 0x3bd8], xmm1
xor esi, esi
mov ebx, 0x200
nop dword [eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x409035
movss xmm1, dword [edi + 0x3bd8]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x44d510]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x44d538]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x40902b
mov eax, 4
jmp 0x40903a
cmp eax, 0x200
cmovg eax, ebx
jmp 0x40903a
mov eax, 0x30
mov byte [esi + edi + 0x3d74], al
inc esi
cmp esi, 0x40
jl 0x408fb0
movsd xmm0, qword [0x44d520]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x44d510]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3bd8]
divss xmm0, xmm1
movss dword [edi + 0x3d70], xmm0
xor edx, edx
mov dword [edi + 0x3bec], 0
cmp byte [edi + 0x384c], dl
je 0x40909f
mov dword [edi + 0x3bec], 1
mov edx, 1
cmp byte [edi + 0x384d], 0
mov ecx, edx
je 0x4090c1
mov eax, dword [edi + 0x3bb8]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x4090c1
or ecx, 2
mov dword [edi + 0x3bec], ecx
cmp byte [edi + 0x384e], 0
je 0x4090d3
or ecx, 4
mov dword [edi + 0x3bec], ecx
test byte [edi + 0xc], 8
je 0x4090e2
or ecx, 8
mov dword [edi + 0x3bec], ecx
xor esi, esi
cmp dword [edi + 0x3fc8], esi
jle 0x409112
nop dword [eax]
mov eax, dword [edi + 0x3fd0]
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 + 0x3fc8]
jl 0x4090f0
cmp byte [edi + 0x4154], 0
je 0x40914c
mov eax, dword [edi + 0x416c]
cmp eax, dword [edi + 0x3e58]
jne 0x40914c
mov ecx, dword [0x451660]
cmp dword [ecx + 0x3e58], eax
jne 0x40913d
mov dword [ecx + 0x3e5c], eax
cmp dword [ecx + 0x3e80], eax
jne 0x40914c
mov byte [ecx + 0x3e84], 1
cmp dword [edi + 0x3e48], 0
lea eax, [edi + 0x3e44]
mov ecx, dword [eax]
jne 0x409169
mov dword [edi + 0x3e50], 0
jmp 0x409179
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x409187
cmp dword [edi + 0x3e58], ecx
jne 0x409187
mov dword [edi + 0x3e54], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x4091be
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e50]
movss dword [edi + 0x3e50], xmm0
cmp dword [edi + 0x3e58], edx
je 0x4091be
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e54]
movss dword [edi + 0x3e54], xmm0
mov al, byte [edi + 0x3e4d]
movaps xmm2, xmm1
mov byte [edi + 0x3e4e], al
mov eax, dword [edi + 0x3e58]
mov dword [edi + 0x3e48], edx
mov dword [esi], 0
mov word [edi + 0x3e4c], 0
mov byte [edi + 0x3e4f], 0
test eax, eax
je 0x409227
cmp dword [edi + 0x3e5c], eax
je 0x409227
cmp dword [edi + 0x3e80], eax
jne 0x409227
test byte [edi + 0x527c], 1
je 0x409219
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.00417a40
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00407230
movss xmm2, dword [edi + 0x18]
mov ecx, dword [edi + 0x3e58]
test ecx, ecx
je 0x409244
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3e60]
movss dword [edi + 0x3e60], xmm0
mov eax, dword [edi + 0x3e74]
addss xmm2, dword [edi + 0x3e90]
mov dword [edi + 0x3e88], eax
mov al, byte [edi + 0x3e68]
mov byte [edi + 0x3e85], al
mov eax, dword [edi + 0x5150]
movss dword [edi + 0x3e90], xmm2
mov dword [edi + 0x3e80], ecx
mov dword [edi + 0x3e5c], 0
mov byte [edi + 0x3e69], 0
mov byte [edi + 0x3e84], 0
mov byte [edi + 0x3e64], 0
test eax, eax
je 0x4092a9
cmp ecx, eax
je 0x4092a9
mov dword [edi + 0x5150], 0
test ecx, ecx
jne 0x4092c3
mov dword [edi + 0x3e94], ecx
xorps xmm0, xmm0
movups xmmword [edi + 0x3e98], xmm0
mov dword [edi + 0x3ea8], ecx
cmp dword [edi + 0x3e58], 0
jne 0x4092d8
mov dword [edi + 0x3eac], 0
jmp 0x4092fc
mov eax, dword [edi + 0x3eac]
test eax, eax
je 0x4092fc
test al, 2
je 0x4092fc
mov ecx, dword [0x451660]
mov eax, dword [ecx + 0x3e98]
bts eax, 0xe
mov dword [ecx + 0x3e98], eax
mov eax, dword [edi + 0x41b8]
mov dword [edi + 0x41bc], eax
mov dword [edi + 0x41b8], 0
mov dword [edi + 0x41b4], 0x7f7fffff
mov word [edi + 0x4155], 0
mov dword [edi + 0x41c4], 0
mov ecx, dword [edi + 0x3788]
test ecx, ecx
jns 0x409355
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 + 0x3784]
call fcn.00418850
mov dword [edi + 0x3784], 0
mov cl, byte [edi + 0x5a]
call fcn.004119a0
call fcn.00407b80
call fcn.004144a0
call fcn.00407fe0
call fcn.004087f0
mov esi, dword [0x451660]
mov ecx, dword [esi + 0x3e2c]
test ecx, ecx
je 0x409431
mov eax, dword [esi + 0x3e58]
mov dword [esi + 0x3e5c], eax
cmp dword [esi + 0x3e80], eax
jne 0x4093aa
mov byte [esi + 0x3e84], 1
cmp byte [esi + 0xdb8], 0
mov ebx, dword [ecx + 0x2e8]
je 0x409425
lea eax, [esi + 0xdb0]
mov ecx, eax
test eax, eax
jne 0x4093cb
lea ecx, [esi + 0xdb0]
movss xmm0, dword [ecx]
movss xmm1, dword [0x44d640]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x409425
comiss xmm2, xmm1
jb 0x409425
movss xmm0, dword [eax]
lea edx, [ebp - 0x24]
subss xmm0, dword [esi + 0x3e6c]
push 1
mov ecx, ebx
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3e70]
movss dword [ebp - 0x20], xmm0
call fcn.00411590
mov ecx, dword [esi + 0x3e2c]
add esp, 4
call fcn.00411280
jmp 0x40946d
mov dword [esi + 0x3e2c], 0
jmp 0x409464
mov ecx, dword [esi + 0x3e74]
test ecx, ecx
je 0x40946d
mov eax, dword [esi + 0x3e58]
cmp dword [ecx + 0x54], eax
jne 0x40946d
mov dword [esi + 0x3e5c], eax
cmp dword [esi + 0x3e80], eax
jne 0x40945b
mov byte [esi + 0x3e84], 1
cmp byte [esi + 0xdb8], 0
jne 0x40946d
xor edx, edx
xor ecx, ecx
call fcn.00407230
mov eax, dword [0x451660]
mov edx, dword [eax + 0x3fac]
sub edx, 1
js 0x4094ab
mov eax, dword [eax + 0x3fb4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x4094a3
test dword [ecx + 8], 0x8000000
jne 0x409559
sub eax, 0x28
sub edx, 1
jns 0x409490
cmp dword [edi + 0x4124], 0
xorps xmm6, xmm6
je 0x4094c8
movss xmm0, dword [edi + 0x4134]
comiss xmm0, xmm6
ja 0x40955c
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x44d558]
movss xmm1, dword [edi + 0x414c]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [edi + 0x414c], xmm1
movups xmm0, xmmword [edi + 0x51e0]
mov dword [edi + 0x4150], 0
mov dword [edi + 0x53c8], 0xffffffff
mov dword [edi + 0x53c4], 0xffffffff
mov dword [edi + 0x53c0], 0xffffffff
movups xmmword [edi + 0x51f0], xmm0
mov byte [edi + 0x51e0], 0
call fcn.00408340
cmp byte [edi + 0x3dcf], 0
jne 0x40957e
movss xmm0, dword [edi + 0x60]
comiss xmm6, xmm0
ja 0x40957e
movsd xmm1, qword [edi + 0x3db8]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 8], xmm1
jmp 0x409583
xorps xmm6, xmm6
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x44d544]
addss xmm1, dword [edi + 0x414c]
minss xmm1, dword [0x44d510]
jmp 0x4094e5
movss xmm1, dword [ebp - 8]
xor ebx, ebx
cmp dword [edi + 0x3dd8], ebx
je 0x409710
mov eax, dword [edi + 0x3de0]
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 0x4096fe
cmp byte [esi + 0x32c], cl
jne 0x4096fe
comiss xmm1, dword [esi + 0x224]
jbe 0x4096fe
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 0x409639
mov eax, dword [0x451660]
mov dword [esi + 0xcc], 0
mov dword [esi + 0xc8], 0
test eax, eax
je 0x409628
dec dword [eax + 0xa8]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0xd0], 0
mov ecx, dword [esi + 0x24c]
call fcn.00420900
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x409682
mov eax, dword [0x451660]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x409671
dec dword [eax + 0xa8]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x170], 0
mov ecx, dword [esi + 0x198]
test ecx, ecx
je 0x4096c0
mov eax, dword [0x451660]
mov dword [esi + 0x194], 0
mov dword [esi + 0x190], 0
test eax, eax
je 0x4096af
dec dword [eax + 0xa8]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x198], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x4096fe
mov eax, dword [0x451660]
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test eax, eax
je 0x4096ed
dec dword [eax + 0xa8]
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 + 0x3dd8]
jne 0x409591
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x4228], ecx
jle 0x40985d
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x14], edx
nop dword [eax]
mov eax, dword [edi + 0x4230]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x409844
movss xmm2, dword [ebp - 8]
comiss xmm2, xmm0
jbe 0x409844
mov esi, dword [edi + 0x4210]
mov ebx, dword [0x451660]
add esi, edx
mov dword [ebp - 0x20], ebx
mov dword [esi + 0x1a4], 0
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x4097a6
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test ebx, ebx
je 0x409795
dec dword [ebx + 0xa8]
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 0x4097eb
mov eax, dword [0x451660]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x4097da
dec dword [eax + 0xa8]
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 0x409817
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 0x409800
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
sub esi, dword [ebx + 0x4210]
mov eax, 0x22b63cbf
imul esi
xorps xmm1, xmm1
mov eax, dword [ebx + 0x4230]
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 + 0x4228]
jl 0x409730
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x41fc], eax
jle 0x4098b2
xor esi, esi
xorps xmm1, xmm1
nop
mov ebx, dword [edi + 0x4204]
movss xmm0, dword [esi + ebx + 4]
comiss xmm0, xmm1
jb 0x4098a3
movss xmm2, dword [ebp - 8]
comiss xmm2, xmm0
jbe 0x4098a3
lea ecx, [ebx + 0x10]
add ecx, esi
call fcn.004231f0
mov eax, dword [ebp - 0x14]
xorps xmm1, xmm1
mov dword [esi + ebx + 4], 0xbf800000
inc eax
add esi, 0x68
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0x41fc]
jl 0x409870
cmp byte [edi + 0x3dcf], 0
je 0x409947
mov esi, dword [0x451660]
mov eax, dword [esi + 0x3f9c]
test eax, eax
je 0x409902
mov dword [esi + 0x3f98], 0
mov dword [esi + 0x3f94], 0
test esi, esi
je 0x4098ed
dec dword [esi + 0xa8]
mov ebx, dword [ebp - 4]
push eax
call ebx
add esp, 4
mov dword [esi + 0x3f9c], 0
jmp 0x409905
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x3fa8]
test ecx, ecx
je 0x409942
mov eax, dword [0x451660]
mov dword [esi + 0x3fa4], 0
mov dword [esi + 0x3fa0], 0
test eax, eax
je 0x409932
dec dword [eax + 0xa8]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x3fa8], 0
call fcn.004283f0
mov eax, dword [edi + 0x3fd4]
mov byte [edi + 0x3dcf], 0
test eax, eax
je 0x4099b1
cmp byte [eax + 0x8f], 0
jne 0x4099b1
mov eax, dword [0x451660]
mov edx, dword [eax + 0x3de4]
sub edx, 1
js 0x4099aa
mov eax, dword [eax + 0x3dec]
lea esi, [eax + edx*4]
nop word [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x4099a2
cmp byte [ecx + 0x8f], 0
je 0x4099a2
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x409b71
sub esi, 4
sub edx, 1
jns 0x409980
xor ecx, ecx
call fcn.00411280
mov ecx, dword [edi + 0x3e00]
test ecx, ecx
jns 0x4099d7
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 + 0x3dfc]
call fcn.004187e0
mov dword [edi + 0x3dfc], 0
mov ecx, dword [edi + 0x3fbc]
test ecx, ecx
jns 0x409a07
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 + 0x3fb8]
call fcn.00418760
lea esi, [edi + 0x3f94]
mov dword [edi + 0x3fb8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x409a36
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.00418230
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x409a4b
push 8
mov ecx, esi
call fcn.00418230
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x3fa0]
inc dword [esi]
call fcn.00418000
mov esi, dword [0x451660]
cmp byte [esi + 0x528c], 0
mov dword [esi + 0x5290], 0
je 0x409bce
mov eax, dword [esi + 0x3e48]
mov edx, 1
mov ecx, 0x20e
mov dword [ebp - 8], eax
mov dword [esi + 0x4150], 7
call fcn.00411870
test al, al
je 0x409aaf
mov byte [esi + 0x528c], 0
mov ebx, dword [esi + 0xdcc]
xorps xmm1, xmm1
cmp ebx, 3
je 0x409aea
movzx eax, byte [esi + 0x528d]
movss xmm0, dword [esi + eax*4 + 0x3720]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x409aea
mov eax, dword [ebp - 8]
test eax, eax
je 0x409aea
mov dword [esi + 0x5290], eax
mov byte [esi + 0x528c], 0
xor edx, edx
mov ecx, 0x3720
cmp ebx, 3
jne 0x409b0a
movss xmm0, dword [ecx + esi]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x409b0a
mov byte [esi + 0x528d], dl
add ecx, 4
inc edx
cmp ecx, 0x372c
jl 0x409af1
or dword [esi + 0x3f04], 0x40
xor ecx, ecx
mov dword [esi + 0x3f58], 0x3f333333
call fcn.004129a0
push dword [ebp - 8]
push str.HoveredId:_0x_08X
call fcn.00429250
push str.Press_ESC_to_abort_picking.
call fcn.00429250
add esp, 0xc
mov dword [ebp - 0x28], str.Left
mov dword [ebp - 0x24], str.Right
mov dword [ebp - 0x20], str.Middle
cmp ebx, 3
jne 0x409b8d
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.00429250
add esp, 4
jmp 0x409bc3
mov eax, dword [ecx + 0x2f8]
test eax, eax
je 0x409b84
cmp byte [eax + 0x8f], 0
jne 0x409b86
mov eax, ecx
mov ecx, eax
jmp 0x4099ac
movzx eax, byte [esi + 0x528d]
mov ecx, 0x20
cmp dword [ebp - 8], 0
push dword [ebp + eax*4 - 0x28]
mov eax, 0x10
cmovne ecx, eax
mov eax, dword [0x451660]
add eax, 0x3858
add eax, ecx
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.00429340
add esp, 0xc
call fcn.00411040
mov esi, dword [0x451660]
lea eax, [esi + 0x3e40]
lea ebx, [esi + 0x52a4]
mov dword [eax], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
inc eax
cmp dword [esi + 0x3dc0], eax
jne 0x409cb3
mov edx, dword [esi + 0x3e48]
mov dword [ebp - 8], edx
test edx, edx
jne 0x409c08
mov edx, dword [esi + 0x3e58]
mov dword [ebp - 8], edx
cmp dword [ebx + 8], edx
je 0x409c4c
lea eax, [ebx + 0xc]
mov dword [ebx + 8], edx
mov dword [ebx + 4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x409c46
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.004188d0
mov esi, dword [0x451660]
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 8]
mov dword [eax], 0
test edx, edx
je 0x409cb3
mov eax, dword [ebx + 4]
test eax, eax
js 0x409c87
mov ecx, eax
cmp eax, dword [ebx + 0xc]
jge 0x409c99
mov edx, dword [ebx + 0x14]
lea ecx, [eax + eax*8]
cmp byte [edx + ecx*8 + 5], 0
mov edx, dword [ebp - 8]
jne 0x409c83
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 0x409c99
inc eax
mov dword [ebx + 4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x409c95
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x409cb3
test ecx, ecx
js 0x409cb3
cmp ecx, dword [ebx + 0xc]
jge 0x409cb3
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 + 0x3dcd], 1
xor edx, edx
or dword [esi + 0x3f04], 2
mov ecx, str.DebugDefault
push 0
mov dword [esi + 0x3f24], 0x43c80000
mov dword [esi + 0x3f28], 0x43c80000
mov dword [esi + 0x3f0c], 4
call fcn.0040e630
xor esi, esi
add esp, 4
cmp dword [edi + 0x5238], esi
jle 0x409d23
xor ebx, ebx
nop dword [eax]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x409d17
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5238]
jl 0x409d00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret