Function at 0x407780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x4feb00]
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 0x524c]
sub eax, 1
mov dword [ebp - 8], eax
js 0x40780e
lea ebx, [eax + eax*4]
shl ebx, 2
nop word [eax + eax]
mov ecx, dword [edi + 0x5254]
cmp dword [ecx + ebx + 4], 7
jne 0x407803
mov esi, ecx
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 + 0x524c]
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 + 0x524c]
dec eax
sub ebx, 0x14
mov dword [ebp - 8], eax
test eax, eax
jns 0x4077b0
xor esi, esi
cmp dword [edi + 0x524c], esi
jle 0x407844
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [edi + 0x5254]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x407838
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x524c]
jl 0x407820
mov esi, dword [0x4feb00]
cmp byte [esi + 0x66], 0
je 0x40785a
test byte [esi + 0xc], 2
jne 0x40785a
mov byte [esi + 0x66], 0
cmp byte [esi + 0x5215], 0
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 4], ebx
jne 0x4078c0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4078b9
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov edx, 0x49f2a4
call fcn.00403560
mov ecx, eax
add esp, 8
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4078b9
mov edx, dword [ebp - 8]
test edx, edx
je 0x4078a4
call fcn.00416910
mov ecx, dword [ebp - 0x10]
mov eax, dword [0x4feb00]
test eax, eax
je 0x4078b3
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov byte [esi + 0x5215], 1
movss xmm0, dword [esi + 0x5218]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x407948
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5218], xmm0
jb 0x407948
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x407937
mov eax, dword [0x4feb00]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [eax + 0x5218], 0
call fcn.00416b40
mov edx, 0x49f2a8
mov dword [ebp - 0x10], eax
mov ecx, ebx
call fcn.00403460
mov ebx, eax
test ebx, ebx
je 0x40793e
push ebx
push dword [ebp - 8]
push 1
push dword [ebp - 0x10]
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 0x40793e
mov byte [esi + 0x98], 1
mov dword [esi + 0x5218], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3dc8]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3dd4], 1
mov word [edi + 0x51da], ax
mov dword [edi + 0x3e1c], eax
addsd xmm0, qword [edi + 0x3dc0]
movsd qword [edi + 0x3dc0], xmm0
mov ecx, dword [edi + 0x51ec]
test ecx, ecx
jns 0x4079a2
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 + 0x51e8]
call fcn.00417c60
mov dword [edi + 0x51e8], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x53c8]
xorps xmm3, xmm3
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x4f93b0]
movss xmm4, dword [0x4f92f0]
subss xmm0, dword [edi + eax*4 + 0x52d8]
movss dword [ebp - 8], xmm2
addss xmm0, dword [edi + 0x53d0]
movss dword [edi + 0x53d0], xmm0
movss dword [edi + eax*4 + 0x52d8], xmm1
mov eax, dword [edi + 0x53c8]
inc eax
movss xmm1, dword [edi + 0x53d0]
cdq
idiv ecx
mov eax, dword [edi + 0x53cc]
inc eax
mov dword [edi + 0x53c8], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [edi + 0x53cc], ecx
jbe 0x407a3c
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x407a3f
movaps xmm0, xmm2
mov esi, dword [0x4feb00]
xor ebx, ebx
movss dword [edi + 0x9c], xmm0
mov eax, dword [esi + 0x3fd8]
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 + 0x3fd0], ebx
jle 0x407b53
mov eax, dword [esi + 0x3fd8]
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 + 0x3fd0]
jl 0x407a83
movss xmm2, dword [ebp - 8]
mov eax, dword [edi + 0x48]
mov esi, dword [0x4feb00]
mov byte [eax + 0x10], 1
mov ebx, dword [esi + 0x54]
test ebx, ebx
jne 0x407b6f
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
movss xmm0, dword [esi + 0x4c]
movaps xmm1, xmm4
mov eax, dword [esi + 0x3e28]
mov dword [esi + 0x3bb0], ebx
mulss xmm0, dword [ebx + 0x10]
mulss xmm0, dword [ebx + 0x44]
maxss xmm1, xmm0
movss dword [esi + 0x3bb8], xmm1
test eax, eax
je 0x407bb9
mulss xmm1, dword [eax + 0x244]
mov eax, dword [eax + 0x2e0]
test eax, eax
je 0x407bbc
mulss xmm1, dword [eax + 0x244]
jmp 0x407bbc
movaps xmm1, xmm3
movss xmm4, dword [0x4f93d0]
movaps xmm7, xmm2
movss dword [esi + 0x3bb4], xmm1
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 + 0x3db8], eax
mov dword [esi + 0x3bc4], ebx
movss dword [esi + 0x3bc8], xmm1
mov edx, dword [edi + 0x3fd0]
test edx, edx
jle 0x407c55
mov ecx, dword [edi + 0x3fd8]
mov eax, dword [ecx]
movss xmm3, dword [eax + 4]
comiss xmm7, xmm3
movss xmm2, dword [eax + 8]
movaps xmm1, xmm3
addss xmm1, dword [eax + 0xc]
movaps xmm0, xmm2
addss xmm0, dword [eax + 0x10]
jbe 0x407c35
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x407c3d
movaps xmm6, xmm2
comiss xmm1, xmm4
jbe 0x407c45
movaps xmm4, xmm1
comiss xmm0, xmm5
jbe 0x407c4d
movaps xmm5, xmm0
add ecx, 4
sub edx, 1
jne 0x407c11
movss dword [edi + 0x3bd4], xmm7
movss dword [edi + 0x3bd8], xmm6
movss dword [edi + 0x3bdc], xmm4
movss dword [edi + 0x3be0], xmm5
mov eax, dword [edi + 0x3858]
movss xmm1, dword [edi + 0x385c]
mov dword [edi + 0x3bcc], eax
movss xmm0, dword [edi + 0x3bd0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x407d80
movss dword [edi + 0x3bd0], xmm1
xor esi, esi
mov ebx, 0x200
nop dword [eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x407d39
movss xmm1, dword [edi + 0x3bd0]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x4f92f0]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x4f9334]
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 0x407d2f
mov eax, 4
jmp 0x407d3e
cmp eax, 0x200
cmovg eax, ebx
jmp 0x407d3e
mov eax, 0x30
mov byte [esi + edi + 0x3d78], al
inc esi
cmp esi, 0x40
jl 0x407cb0
movsd xmm0, qword [0x4f9300]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4f92f0]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3bd0]
divss xmm0, xmm1
movss dword [edi + 0x3d74], xmm0
xor edx, edx
mov dword [edi + 0x3be4], 0
cmp byte [edi + 0x3854], dl
je 0x407da3
mov dword [edi + 0x3be4], 1
mov edx, 1
cmp byte [edi + 0x3855], 0
mov ecx, edx
je 0x407dc5
mov eax, dword [edi + 0x3bb0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x407dc5
or ecx, 2
mov dword [edi + 0x3be4], ecx
cmp byte [edi + 0x3856], 0
je 0x407dd7
or ecx, 4
mov dword [edi + 0x3be4], ecx
test byte [edi + 0xc], 8
je 0x407de6
or ecx, 8
mov dword [edi + 0x3be4], ecx
xor esi, esi
cmp dword [edi + 0x3fd0], esi
jle 0x407e12
mov eax, dword [edi + 0x3fd8]
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 + 0x3fd0]
jl 0x407df0
cmp byte [edi + 0x415c], 0
je 0x407e4c
mov eax, dword [edi + 0x4174]
cmp eax, dword [edi + 0x3e60]
jne 0x407e4c
mov ecx, dword [0x4feb00]
cmp dword [ecx + 0x3e60], eax
jne 0x407e3d
mov dword [ecx + 0x3e64], eax
cmp dword [ecx + 0x3e88], eax
jne 0x407e4c
mov byte [ecx + 0x3e8c], 1
cmp dword [edi + 0x3e50], 0
jne 0x407e61
mov dword [edi + 0x3e58], 0
jmp 0x407e73
mov eax, dword [edi + 0x3e4c]
test eax, eax
je 0x407e7d
cmp dword [edi + 0x3e60], eax
jne 0x407e7d
mov dword [edi + 0x3e5c], 0
mov eax, dword [edi + 0x3e4c]
test eax, eax
je 0x407eb7
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e58]
movss dword [edi + 0x3e58], xmm0
cmp dword [edi + 0x3e60], eax
je 0x407eb7
addss xmm1, dword [edi + 0x3e5c]
movss dword [edi + 0x3e5c], xmm1
mov dword [edi + 0x3e50], eax
mov al, byte [edi + 0x3e55]
mov byte [edi + 0x3e56], al
mov eax, dword [edi + 0x3e60]
mov dword [edi + 0x3e4c], 0
mov word [edi + 0x3e54], 0
mov byte [edi + 0x3e57], 0
test eax, eax
je 0x407f1c
cmp dword [edi + 0x3e64], eax
je 0x407f1c
cmp dword [edi + 0x3e88], eax
jne 0x407f1c
test byte [edi + 0x5290], 1
je 0x407f13
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.004173a0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00405d80
mov ecx, dword [edi + 0x3e60]
test ecx, ecx
je 0x407f3b
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3e68]
movss dword [edi + 0x3e68], xmm0
mov eax, dword [edi + 0x3e7c]
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3e98]
mov dword [edi + 0x3e90], eax
mov al, byte [edi + 0x3e70]
mov byte [edi + 0x3e8d], al
mov eax, dword [edi + 0x5168]
movss dword [edi + 0x3e98], xmm0
mov dword [edi + 0x3e88], ecx
mov dword [edi + 0x3e64], 0
mov byte [edi + 0x3e71], 0
mov byte [edi + 0x3e8c], 0
mov byte [edi + 0x3e6c], 0
test eax, eax
je 0x407fa5
cmp ecx, eax
je 0x407fa5
mov dword [edi + 0x5168], 0
test ecx, ecx
jne 0x407fbf
mov dword [edi + 0x3e9c], ecx
xorps xmm0, xmm0
movups xmmword [edi + 0x3ea0], xmm0
mov dword [edi + 0x3eb0], ecx
cmp dword [edi + 0x3e60], 0
jne 0x407fd4
mov dword [edi + 0x3eb4], 0
jmp 0x407ff8
mov eax, dword [edi + 0x3eb4]
test eax, eax
je 0x407ff8
test al, 2
je 0x407ff8
mov ecx, dword [0x4feb00]
mov eax, dword [ecx + 0x3ea0]
bts eax, 0xe
mov dword [ecx + 0x3ea0], eax
mov eax, dword [edi + 0x4284]
movss xmm0, dword [edi + 0x428c]
mov dword [edi + 0x4288], eax
test eax, eax
je 0x408029
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4284], 0
movss dword [edi + 0x428c], xmm0
jmp 0x408069
comiss xmm0, dword [0x4f9270]
jbe 0x408073
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x4f92a0]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4290]
addss xmm1, xmm1
movss dword [edi + 0x4290], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x408073
mov dword [edi + 0x428c], 0
mov dword [edi + 0x4290], 0
mov eax, dword [edi + 0x41c0]
mov dword [edi + 0x41c4], eax
mov dword [edi + 0x41c0], 0
mov dword [edi + 0x41bc], 0x7f7fffff
mov word [edi + 0x415d], 0
mov dword [edi + 0x41cc], 0
mov ecx, dword [edi + 0x3790]
test ecx, ecx
jns 0x4080cc
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.004181e0
mov dword [edi + 0x378c], 0
mov cl, byte [edi + 0x62]
call fcn.00410f20
call fcn.004067a0
call fcn.00413dd0
call fcn.00406c10
call fcn.00407510
mov esi, dword [0x4feb00]
mov ecx, dword [esi + 0x3e34]
test ecx, ecx
je 0x4081ac
mov eax, dword [esi + 0x3e60]
mov dword [esi + 0x3e64], eax
cmp dword [esi + 0x3e88], eax
jne 0x408121
mov byte [esi + 0x3e8c], 1
cmp byte [esi + 0xdc0], 0
mov ebx, dword [ecx + 0x2e8]
je 0x4081a0
lea eax, [esi + 0xdb8]
mov ecx, eax
test eax, eax
jne 0x408146
lea ecx, [esi + 0xdb8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x4f93c8]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x4081a0
comiss xmm2, xmm1
jb 0x4081a0
movss xmm0, dword [eax]
lea edx, [ebp - 0x24]
subss xmm0, dword [esi + 0x3e74]
push 1
mov ecx, ebx
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3e78]
movss dword [ebp - 0x20], xmm0
call fcn.00410640
mov ecx, dword [esi + 0x3e34]
add esp, 4
call fcn.00410190
jmp 0x4081e8
mov dword [esi + 0x3e34], 0
jmp 0x4081df
mov ecx, dword [esi + 0x3e7c]
test ecx, ecx
je 0x4081e8
mov eax, dword [esi + 0x3e60]
cmp dword [ecx + 0x54], eax
jne 0x4081e8
mov dword [esi + 0x3e64], eax
cmp dword [esi + 0x3e88], eax
jne 0x4081d6
mov byte [esi + 0x3e8c], 1
cmp byte [esi + 0xdc0], 0
jne 0x4081e8
xor edx, edx
xor ecx, ecx
call fcn.00405d80
mov eax, dword [0x4feb00]
mov edx, dword [eax + 0x3fb4]
sub edx, 1
js 0x40821e
mov eax, dword [eax + 0x3fbc]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x408216
test dword [ecx + 8], 0x8000000
jne 0x408238
sub eax, 0x28
sub edx, 1
jns 0x408207
cmp dword [edi + 0x412c], 0
je 0x408257
movss xmm0, dword [edi + 0x413c]
comiss xmm0, dword [0x4f9270]
jbe 0x408257
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x4f9344]
addss xmm1, dword [edi + 0x4154]
minss xmm1, dword [0x4f92f0]
jmp 0x408278
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x4f9354]
movss xmm1, dword [edi + 0x4154]
subss xmm1, xmm0
maxss xmm1, dword [0x4f9270]
movss dword [edi + 0x4154], xmm1
movups xmm0, xmmword [edi + 0x51f4]
mov dword [edi + 0x4158], 0
mov dword [edi + 0x53dc], 0xffffffff
mov dword [edi + 0x53d8], 0xffffffff
mov dword [edi + 0x53d4], 0xffffffff
movups xmmword [edi + 0x5204], xmm0
mov byte [edi + 0x51f4], 0
call fcn.00406f70
cmp byte [edi + 0x3dd7], 0
jne 0x4082ef
movss xmm0, dword [edi + 0x68]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x4082ef
movsd xmm1, qword [edi + 0x3dc0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 8], xmm1
jmp 0x4082f4
movss xmm1, dword [ebp - 8]
xor ebx, ebx
cmp dword [edi + 0x3de0], ebx
je 0x40849f
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x3de8]
mov esi, dword [eax + ebx*4]
mov ax, word [esi + 0x9a]
mov cl, byte [esi + 0x8e]
mov word [esi + 0x9c], ax
xor eax, eax
mov byte [esi + 0x8f], cl
mov byte [esi + 0x8e], 0
mov byte [esi + 0x90], 0
mov word [esi + 0x9a], ax
test cl, cl
jne 0x40848d
cmp byte [esi + 0x32c], al
jne 0x40848d
comiss xmm1, dword [esi + 0x224]
jbe 0x40848d
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 0x4083c8
mov eax, dword [0x4feb00]
mov dword [esi + 0xcc], 0
mov dword [esi + 0xc8], 0
test eax, eax
je 0x4083b7
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.00420850
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x408411
mov eax, dword [0x4feb00]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x408400
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 0x40844f
mov eax, dword [0x4feb00]
mov dword [esi + 0x194], 0
mov dword [esi + 0x190], 0
test eax, eax
je 0x40843e
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 0x40848d
mov eax, dword [0x4feb00]
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test eax, eax
je 0x40847c
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 + 0x3de0]
jne 0x408310
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [edi + 0x4230], ecx
jle 0x4085ed
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x10], edx
nop dword [eax + eax]
mov eax, dword [edi + 0x4238]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x4085d4
movss xmm2, dword [ebp - 8]
comiss xmm2, xmm0
jbe 0x4085d4
mov esi, dword [edi + 0x4218]
mov ebx, dword [0x4feb00]
add esi, edx
mov dword [ebp - 0x20], ebx
mov dword [esi + 0x1a4], 0
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x408536
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test ebx, ebx
je 0x408525
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 0x40857b
mov eax, dword [0x4feb00]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x40856a
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 0x4085a7
xor ecx, ecx
or ebx, 0xffffffff
nop
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x68]
inc edx
mov word [eax + ecx - 0x18], bx
cmp edx, dword [esi + 0x54]
jl 0x408590
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
sub esi, dword [ebx + 0x4218]
mov eax, 0x22b63cbf
imul esi
xorps xmm1, xmm1
mov eax, dword [ebx + 0x4238]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [ebp - 0xc]
inc ecx
add edx, 0x1d8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
cmp ecx, dword [edi + 0x4230]
jl 0x4084c0
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x4204], eax
jle 0x408642
xor esi, esi
xorps xmm1, xmm1
nop
mov ebx, dword [edi + 0x420c]
movss xmm0, dword [esi + ebx + 4]
comiss xmm0, xmm1
jb 0x408633
movss xmm2, dword [ebp - 8]
comiss xmm2, xmm0
jbe 0x408633
lea ecx, [ebx + 0x10]
add ecx, esi
call fcn.00423190
mov eax, dword [ebp - 0x10]
xorps xmm1, xmm1
mov dword [esi + ebx + 4], 0xbf800000
inc eax
add esi, 0x68
mov dword [ebp - 0x10], eax
cmp eax, dword [edi + 0x4204]
jl 0x408600
cmp byte [edi + 0x3dd7], 0
je 0x4086d7
mov esi, dword [0x4feb00]
mov eax, dword [esi + 0x3fa4]
test eax, eax
je 0x408692
mov dword [esi + 0x3fa0], 0
mov dword [esi + 0x3f9c], 0
test esi, esi
je 0x40867d
dec dword [esi + 0xb0]
mov ebx, dword [ebp - 4]
push eax
call ebx
add esp, 4
mov dword [esi + 0x3fa4], 0
jmp 0x408695
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x3fb0]
test ecx, ecx
je 0x4086d2
mov eax, dword [0x4feb00]
mov dword [esi + 0x3fac], 0
mov dword [esi + 0x3fa8], 0
test eax, eax
je 0x4086c2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x3fb0], 0
call fcn.0042ace0
mov eax, dword [edi + 0x3fdc]
mov byte [edi + 0x3dd7], 0
test eax, eax
je 0x408741
cmp byte [eax + 0x8f], 0
jne 0x408741
mov eax, dword [0x4feb00]
mov edx, dword [eax + 0x3dec]
sub edx, 1
js 0x40873a
mov eax, dword [eax + 0x3df4]
lea esi, [eax + edx*4]
nop word [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x408732
cmp byte [ecx + 0x8f], 0
je 0x408732
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x408920
sub esi, 4
sub edx, 1
jns 0x408710
xor ecx, ecx
call fcn.00410190
mov ecx, dword [edi + 0x3e08]
test ecx, ecx
jns 0x408767
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 + 0x3e04]
call fcn.00418170
mov dword [edi + 0x3e04], 0
mov ecx, dword [edi + 0x3fc4]
test ecx, ecx
jns 0x408797
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 + 0x3fc0]
call fcn.004180f0
mov dword [edi + 0x3fc0], 0
mov ecx, dword [edi + 0x3fa0]
test ecx, ecx
jns 0x4087c7
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea ecx, [edi + 0x3f9c]
test eax, eax
cmovg edx, eax
push edx
call fcn.00417c60
lea eax, [ebp - 0x20]
mov dword [edi + 0x3f9c], 0
push eax
lea ecx, [edi + 0x3f9c]
mov dword [ebp - 0x20], 0
call fcn.00417a30
push 0
lea ecx, [edi + 0x3fa8]
call fcn.00417980
mov esi, dword [0x4feb00]
cmp byte [esi + 0x52a0], 0
mov dword [esi + 0x52a4], 0
je 0x408977
mov eax, dword [esi + 0x3e50]
mov edx, 1
mov ecx, 0x20e
mov dword [ebp - 8], eax
mov dword [esi + 0x4158], 7
call fcn.00410c90
test al, al
je 0x40883e
mov byte [esi + 0x52a0], 0
mov ebx, dword [esi + 0xdd4]
xorps xmm1, xmm1
cmp ebx, 0x3000
je 0x408886
movzx eax, byte [esi + 0x52a1]
cmp byte [eax + esi + 0xdc0], 0
je 0x408886
movss xmm0, dword [esi + eax*4 + 0x3728]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x408886
mov eax, dword [ebp - 8]
test eax, eax
je 0x408886
mov dword [esi + 0x52a4], eax
mov byte [esi + 0x52a0], 0
xor ecx, ecx
mov edx, 0x3728
nop dword [eax]
cmp ebx, 0x3000
jne 0x4088b6
cmp byte [esi + ecx + 0xdc0], 0
je 0x4088b6
movss xmm0, dword [esi + edx]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x4088b6
mov byte [esi + 0x52a1], cl
add edx, 4
inc ecx
cmp edx, 0x3734
jl 0x408890
or dword [esi + 0x3f0c], 0x40
xor ecx, ecx
mov dword [esi + 0x3f60], 0x3f333333
call fcn.00412200
push dword [ebp - 8]
push str.HoveredId:_0x_08X
call fcn.0042b9d0
push str.Press_ESC_to_abort_picking.
call fcn.0042b9d0
add esp, 0xc
mov dword [ebp - 0x28], 0x4a0a6c
mov dword [ebp - 0x24], 0x4a0a74
mov dword [ebp - 0x20], str.Middle
cmp ebx, 0x3000
jne 0x40893c
push str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.0042b9d0
add esp, 4
jmp 0x40896c
mov eax, dword [ecx + 0x2f8]
test eax, eax
je 0x408933
cmp byte [eax + 0x8f], 0
jne 0x408935
mov eax, ecx
mov ecx, eax
jmp 0x40873c
movzx eax, byte [esi + 0x52a1]
mov ecx, 0x3870
cmp dword [ebp - 8], 0
push dword [ebp + eax*4 - 0x28]
mov eax, 0x3860
cmove eax, ecx
add eax, dword [0x4feb00]
push str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
push eax
call fcn.0042ba60
add esp, 0xc
call fcn.0040fff0
mov esi, dword [0x4feb00]
mov ebx, esi
mov dword [ebx + 0x3e48], 0
mov eax, dword [ebx + 0x52b8]
inc eax
cmp dword [ebx + 0x3dc8], eax
jne 0x408a8b
mov ecx, dword [ebx + 0x3e50]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4089ac
mov ecx, dword [ebx + 0x3e60]
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x52c0], ecx
je 0x408a06
lea eax, [ebx + 0x52c4]
mov dword [ebx + 0x52c0], ecx
mov dword [ebx + 0x52bc], 0xffffffff
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], edx
test edx, edx
jns 0x408a00
mov eax, edx
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x20]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x52c4]
call fcn.00418260
mov esi, dword [0x4feb00]
lea eax, [ebx + 0x52c4]
mov ecx, dword [ebp - 8]
mov dword [eax], 0
test ecx, ecx
je 0x408a8b
mov eax, dword [ebx + 0x52bc]
test eax, eax
js 0x408a54
mov edx, eax
cmp eax, dword [ebx + 0x52c4]
jge 0x408a67
mov ecx, dword [ebx + 0x52cc]
lea edx, [eax + eax*8]
cmp byte [ecx + edx*8 + 5], 0
mov ecx, dword [ebp - 8]
jne 0x408a4d
mov edi, dword [ebx + 0x52cc]
lea ecx, [eax + eax*8]
mov edx, eax
cmp byte [edi + ecx*8 + 4], 2
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
jle 0x408a67
inc eax
mov dword [ebx + 0x52bc], eax
mov edx, eax
cmp eax, 0xffffffff
jne 0x408a63
mov dword [ebx + 0x3e48], ecx
jmp 0x408a8b
test edx, edx
js 0x408a8b
cmp edx, dword [ebx + 0x52c4]
jge 0x408a8b
mov eax, dword [ebx + 0x52cc]
lea ecx, [edx + edx*8]
mov eax, dword [eax + ecx*8]
mov dword [ebx + 0x3e48], eax
mov eax, dword [ebx + 0x52cc]
inc byte [eax + ecx*8 + 4]
mov byte [edi + 0x3dd5], 1
xor edx, edx
or dword [esi + 0x3f0c], 2
mov ecx, str.DebugDefault
push 0
mov dword [esi + 0x3f2c], 0x43c80000
mov dword [esi + 0x3f30], 0x43c80000
mov dword [esi + 0x3f14], 4
call fcn.0040d6f0
xor esi, esi
add esp, 4
cmp dword [edi + 0x524c], esi
jle 0x408af8
xor ebx, ebx
mov eax, dword [edi + 0x5254]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x408aec
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x524c]
jl 0x408ad4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret