Function at 0x407180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [0x495280]
push esi
push edi
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebx + 0x3018]
lea ecx, [ebx + 0x3020]
sub eax, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
js 0x407218
lea edi, [eax + eax*4]
shl edi, 2
nop
mov edx, dword [ecx]
cmp dword [edi + edx + 4], 7
jne 0x40720b
mov esi, dword [ebx + 0x3020]
mov ecx, edi
sub ecx, esi
mov eax, 0x66666667
add ecx, edx
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
lea edx, [esi + eax*4]
mov eax, dword [ebx + 0x3018]
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]
lea ecx, [ebx + 0x3020]
add esp, 0xc
dec dword [ebx + 0x3018]
dec eax
sub edi, 0x14
mov dword [ebp - 8], eax
test eax, eax
jns 0x4071b0
jmp 0x40721b
mov dword [ebp - 0xc], ecx
xor esi, esi
cmp dword [ebx + 0x3018], esi
jle 0x40724a
xor edi, edi
mov eax, dword [ecx]
add eax, edi
cmp dword [eax + 4], 0
jne 0x40723e
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
mov ecx, dword [ebp - 0xc]
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x3018]
jl 0x407227
mov ecx, dword [0x495280]
mov eax, dword [ebx + 0x19cc]
mov dword [ebx + 0x19d0], eax
cmp byte [ecx + 0xbb], 0
je 0x407272
test byte [ecx + 0xc], 2
jne 0x407272
mov byte [ecx + 0xbb], 0
mov edx, dword [ecx + 8]
test edx, 0x400
je 0x407295
mov eax, dword [ecx + 0xc]
and eax, 0x1400
cmp eax, 0x1400
je 0x407295
and edx, 0xfffffbff
mov dword [ecx + 8], edx
mov eax, dword [ebx + 8]
mov esi, ecx
mov dword [ebx + 0x19cc], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 4], eax
cmp byte [esi + 0x2fe0], 0
jne 0x407305
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4072fe
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
mov ecx, eax
call fcn.004039b0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4072f8
mov edx, dword [ebp - 8]
mov ecx, eax
call fcn.00416070
mov ecx, dword [0x495280]
test ecx, ecx
je 0x4072ef
dec dword [ecx + 0x374]
push dword [ebp - 0x1c]
call dword [ebp - 4]
add esp, 4
mov ecx, dword [0x495280]
mov byte [esi + 0x2fe0], 1
movss xmm0, dword [esi + 0x2fe4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x407388
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x2fe4], xmm0
jb 0x407388
mov edi, dword [esi + 0x20]
test edi, edi
je 0x407377
mov dword [ecx + 0x2fe4], 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.004162c0
mov edx, 0x47991c
mov dword [ebp - 0x1c], eax
mov ecx, edi
call fcn.004038b0
mov edi, eax
test edi, edi
je 0x40737e
push edi
push dword [ebp - 8]
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x40737e
mov byte [esi + 0x35c], 1
mov dword [esi + 0x2fe4], 0
movss xmm0, dword [ebx + 0x18]
inc dword [ebx + 0x1be0]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x1bf0], 1
mov dword [ebx + 0x2f80], 0
mov dword [ebx + 0x1c3c], 0
addsd xmm0, qword [ebx + 0x1bd8]
movsd qword [ebx + 0x1bd8], xmm0
mov ecx, dword [ebx + 0x2f98]
test ecx, ecx
jns 0x4073e7
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 + 0x2f94]
call fcn.00420980
mov dword [ebx + 0x2f94], 0
mov ecx, 0x78
mov eax, dword [ebx + 0x3254]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x3074]
addss xmm0, dword [ebx + 0x3258]
movss dword [ebx + 0x3258], xmm0
movss dword [ebx + eax*4 + 0x3074], xmm1
mov eax, dword [ebx + 0x3254]
inc eax
movss xmm1, dword [ebx + 0x3258]
cdq
idiv ecx
comiss xmm1, dword [0x489134]
mov dword [ebx + 0x3254], edx
movss xmm0, dword [0x48927c]
movss dword [ebp - 8], xmm0
jbe 0x407468
divss xmm1, dword [0x489258]
movss xmm0, dword [0x4891cc]
divss xmm0, xmm1
movss dword [ebx + 0x360], xmm0
call fcn.00417120
mov eax, dword [ebx + 0x98]
mov edi, dword [0x495280]
mov byte [eax + 0x10], 1
mov esi, dword [edi + 0xa4]
test esi, esi
jne 0x40749a
mov eax, dword [edi + 0x98]
mov eax, dword [eax + 0x3c]
mov esi, dword [eax]
movss xmm1, dword [edi + 0x9c]
movss xmm2, dword [0x4891cc]
mov eax, dword [edi + 0x1c48]
movaps xmm0, xmm2
mov dword [edi + 0x19d4], esi
mulss xmm1, dword [esi + 0x10]
mulss xmm1, dword [esi + 0x40]
maxss xmm0, xmm1
movss dword [edi + 0x19dc], xmm0
test eax, eax
je 0x4074ff
movss xmm0, dword [eax + 0x2b8]
mulss xmm0, dword [edi + 0x19dc]
mulss xmm0, dword [eax + 0x2bc]
mov eax, dword [eax + 0x358]
test eax, eax
je 0x407502
mulss xmm0, dword [eax + 0x2b8]
jmp 0x407502
xorps xmm0, xmm0
movss xmm7, dword [ebp - 8]
movss xmm4, dword [0x4892a0]
movaps xmm6, xmm7
movss dword [edi + 0x19d8], xmm0
movaps xmm5, xmm4
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [edi + 0x19e0], eax
lea eax, [edx + 0x58]
mov dword [edi + 0x19e4], ecx
mov dword [edi + 0x1bd0], eax
mov dword [edi + 0x19e8], esi
movss dword [edi + 0x19ec], xmm0
mov edx, dword [ebx + 0x1dd0]
test edx, edx
jle 0x4075ac
mov ecx, dword [ebx + 0x1dd8]
nop dword [eax]
mov eax, dword [ecx]
movss xmm3, dword [eax + 8]
comiss xmm7, xmm3
movss xmm2, dword [eax + 0xc]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0x10]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x14]
jbe 0x407584
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40758c
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x407594
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x40759c
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x407560
movss xmm2, dword [0x4891cc]
mov eax, dword [ebx + 0x1654]
movss xmm1, dword [ebx + 0x1658]
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 [ebx + 0x19f0], eax
movups xmmword [ebx + 0x19f8], xmm0
movss xmm0, dword [ebx + 0x19f4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4076d1
movss dword [ebx + 0x19f4], xmm1
xor esi, esi
nop
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x407685
movss xmm1, dword [ebx + 0x19f4]
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 [0x48920c]
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 0x407676
mov eax, 4
jmp 0x407687
cmp eax, 0x200
mov ecx, 0x200
cmovg eax, ecx
jmp 0x407687
xor eax, eax
movss xmm2, dword [0x4891cc]
mov byte [esi + ebx + 0x1b90], al
inc esi
cmp esi, 0x40
jl 0x407600
movsd xmm0, qword [0x4891e0]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4891cc]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x19f4]
divss xmm0, xmm1
movss dword [ebx + 0x1b8c], xmm0
xor edx, edx
mov dword [ebx + 0x1a08], 0
cmp byte [ebx + 0x1650], dl
je 0x4076f4
mov dword [ebx + 0x1a08], 1
mov edx, 1
cmp byte [ebx + 0x1651], 0
mov ecx, edx
je 0x407716
mov eax, dword [ebx + 0x19d4]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x407716
or ecx, 2
mov dword [ebx + 0x1a08], ecx
cmp byte [ebx + 0x1652], 0
je 0x407728
or ecx, 4
mov dword [ebx + 0x1a08], ecx
test byte [ebx + 0xc], 8
je 0x407737
or ecx, 8
mov dword [ebx + 0x1a08], ecx
xor esi, esi
cmp dword [ebx + 0x1dd0], esi
jle 0x40776a
mov eax, dword [ebx + 0x1dd8]
push 0x30
push 0
mov eax, dword [eax + esi*4]
mov dword [eax + 0x30], 0
sub eax, 0xffffff80
push eax
call sub.VCRUNTIME140.dll_memset
inc esi
add esp, 0xc
cmp esi, dword [ebx + 0x1dd0]
jl 0x407741
cmp byte [ebx + 0x1f5c], 0
je 0x40779e
mov eax, dword [ebx + 0x1f74]
cmp eax, dword [ebx + 0x1c84]
jne 0x40779e
cmp dword [edi + 0x1c84], eax
jne 0x40778f
mov dword [edi + 0x1c88], eax
cmp dword [edi + 0x1cbc], eax
jne 0x40779e
mov byte [edi + 0x1cc0], 1
cmp dword [ebx + 0x1c74], 0
lea eax, [ebx + 0x1c70]
mov ecx, dword [eax]
jne 0x4077bb
mov dword [ebx + 0x1c7c], 0
jmp 0x4077cb
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x4077d9
cmp dword [ebx + 0x1c84], ecx
jne 0x4077d9
mov dword [ebx + 0x1c80], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [ebx + 0x18]
test edx, edx
je 0x407810
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x1c7c]
movss dword [ebx + 0x1c7c], xmm0
cmp dword [ebx + 0x1c84], edx
je 0x407810
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x1c80]
movss dword [ebx + 0x1c80], xmm0
mov al, byte [ebx + 0x1c79]
movaps xmm2, xmm1
mov byte [ebx + 0x1c7a], al
mov eax, dword [ebx + 0x1c84]
mov dword [ebx + 0x1c74], edx
mov dword [esi], 0
mov word [ebx + 0x1c78], 0
mov byte [ebx + 0x1c7b], 0
cmp dword [ebx + 0x1c88], eax
je 0x40785f
cmp dword [ebx + 0x1cbc], eax
jne 0x40785f
test eax, eax
je 0x40785f
call fcn.00405990
movss xmm2, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c84]
test ecx, ecx
je 0x40787c
movaps xmm0, xmm2
addss xmm0, dword [ebx + 0x1c8c]
movss dword [ebx + 0x1c8c], xmm0
mov eax, dword [ebx + 0x1cb0]
addss xmm2, dword [ebx + 0x1ccc]
mov dword [ebx + 0x1cc4], eax
mov al, byte [ebx + 0x1c94]
mov byte [ebx + 0x1cc1], al
mov eax, dword [ebx + 0x2f40]
movss dword [ebx + 0x1ccc], xmm2
mov dword [ebx + 0x1cbc], ecx
mov dword [ebx + 0x1c88], 0
mov byte [ebx + 0x1c95], 0
mov byte [ebx + 0x1cc0], 0
mov byte [ebx + 0x1c90], 0
test eax, eax
je 0x4078e1
cmp ecx, eax
je 0x4078e1
mov dword [ebx + 0x2f40], 0
test ecx, ecx
jne 0x4078fd
mov dword [ebx + 0x1c98], ecx
mov dword [ebx + 0x1c9c], ecx
mov dword [ebx + 0x1ca0], ecx
mov dword [ebx + 0x1ca4], ecx
mov eax, dword [ebx + 0x1fc0]
mov dword [ebx + 0x1fc4], eax
xor eax, eax
mov dword [ebx + 0x1fc0], 0
mov dword [ebx + 0x1fbc], 0x7f7fffff
mov word [ebx + 0x1f5d], 0
mov dword [ebx + 0x1fcc], 0
cmp byte [edi + 0x100], al
movss xmm1, dword [0x48928c]
setne al
mov ecx, eax
or ecx, 2
cmp byte [edi + 0x101], 0
cmove ecx, eax
mov edx, ecx
or edx, 4
cmp byte [edi + 0x102], 0
cmove edx, ecx
mov ecx, 0x200
mov eax, edx
or eax, 8
cmp byte [edi + 0x103], 0
lea edi, [ebx + 0xc60]
cmove eax, edx
mov dword [ebx + 0x380], eax
lea eax, [ebx + 0x460]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
nop dword [eax]
cmp byte [ebx + ecx + 0x104], 0
je 0x4079b2
movss xmm0, dword [eax]
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x4079ab
xorps xmm0, xmm0
jmp 0x4079b5
addss xmm0, dword [ebx + 0x18]
jmp 0x4079b5
movaps xmm0, xmm1
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x407990
call fcn.00413390
call fcn.00406680
test byte [ebx + 8], 0x40
jne 0x4079fe
cmp dword [ebx + 0x2fb8], 0
jg 0x4079eb
cmp dword [ebx + 0x2fc4], 0
jle 0x407acb
mov dl, 1
call fcn.0041e4b0
xor ecx, ecx
call fcn.0041e1b0
jmp 0x407acb
cmp byte [ebx + 0xb0], 0
je 0x407a3b
xor esi, esi
cmp dword [ebx + 0x2fb8], esi
jle 0x407a3b
mov eax, dword [ebx + 0x2fc0]
mov ecx, dword [eax + esi*8 + 4]
test ecx, ecx
je 0x407a32
cmp dword [ecx + 0x10], 0
jne 0x407a32
cmp dword [ecx + 0x14], 0
je 0x407a32
mov ecx, dword [ecx]
call fcn.0041e1b0
inc esi
cmp esi, dword [ebx + 0x2fb8]
jl 0x407a11
cmp byte [ebx + 0x2fdc], 0
je 0x407a7d
xor ecx, ecx
call fcn.004162c0
xor dl, dl
call fcn.0041e4b0
xor ecx, ecx
call fcn.0041e1b0
push dword [ebx + 0x2fd0]
mov edx, dword [ebx + 0x2fd8]
mov ecx, ebx
call fcn.00418da0
add esp, 4
mov ecx, ebx
call fcn.00418f20
mov byte [ebx + 0x2fdc], 0
xor edi, edi
cmp dword [ebx + 0x2fc4], edi
jle 0x407acb
xor esi, esi
nop dword [eax]
mov eax, dword [ebx + 0x2fcc]
cmp dword [eax + esi], 2
jne 0x407abf
mov edx, dword [eax + esi + 0x1c]
test edx, edx
je 0x407ab0
push 1
call fcn.00419290
add esp, 4
jmp 0x407abf
mov edx, dword [eax + esi + 0x20]
test edx, edx
je 0x407abf
mov ecx, ebx
call fcn.004193d0
inc edi
add esi, 0x24
cmp edi, dword [ebx + 0x2fc4]
jl 0x407a90
call fcn.00406f50
call fcn.00406220
mov eax, dword [0x495280]
mov edx, dword [eax + 0x1db8]
sub edx, 1
js 0x407b0f
mov eax, dword [eax + 0x1dc0]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x407b07
test dword [ecx + 8], 0x8000000
jne 0x407bdb
sub eax, 0x24
sub edx, 1
jns 0x407af4
cmp dword [ebx + 0x1f20], 0
xorps xmm6, xmm6
je 0x407b2c
movss xmm0, dword [ebx + 0x1f30]
comiss xmm0, xmm6
ja 0x407bde
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x48922c]
movss xmm1, dword [ebx + 0x1f54]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [ebx + 0x1f54], xmm1
mov dword [ebx + 0x1f58], 0
mov dword [ebx + 0x3264], 0xffffffff
mov dword [ebx + 0x3260], 0xffffffff
mov dword [ebx + 0x325c], 0xffffffff
mov dword [ebx + 0x2fa0], 0x3f800000
mov dword [ebx + 0x2fa4], 0x3f800000
mov dword [ebx + 0x2fb0], 0
call fcn.00406a80
mov esi, dword [0x495280]
mov edi, dword [esi + 0x1e18]
test edi, edi
je 0x407c00
cmp byte [edi + 0xc3], 0
je 0x407c00
test dword [edi + 8], 0x40000
jne 0x407c00
cmp byte [esi + 0x100], 0
jne 0x407c00
mov ecx, dword [esi + 0x34]
test ecx, ecx
js 0x407c00
call fcn.0040a440
test al, al
je 0x407c00
mov al, 1
jmp 0x407c02
xorps xmm6, xmm6
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x48921c]
addss xmm1, dword [ebx + 0x1f54]
minss xmm1, dword [0x4891cc]
jmp 0x407b49
xor al, al
cmp dword [esi + 0x1c84], 0
mov byte [esi + 0x1f50], al
jne 0x407c5c
test al, al
je 0x407c5c
cmp dword [esi + 0x1e1c], 0
mov dword [esi + 0x1f3c], edi
mov dword [esi + 0x1f48], 0x7fffffff
je 0x407c4b
mov ecx, dword [esi + 0x1e64]
cmp ecx, 0x7fffffff
je 0x407c4b
movzx eax, byte [esi + 0x101]
neg eax
sbb eax, eax
add eax, ecx
jmp 0x407c56
movzx eax, byte [esi + 0x101]
neg eax
sbb eax, eax
mov dword [esi + 0x1f4c], eax
mov edi, dword [esi + 0x1f3c]
mov dword [esi + 0x1f38], 0
mov dword [esi + 0x1f44], 0x7fffffff
mov dword [esi + 0x1f40], 0x7fffffff
test edi, edi
je 0x407cf0
mov eax, dword [esi + 0x1f48]
mov dword [esi + 0x1f38], edi
cmp eax, 0x7fffffff
je 0x407cae
mov ecx, dword [edi + 0x1e0]
cmp ecx, 0xffffffff
je 0x407cae
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [esi + 0x1f40], edx
mov eax, dword [esi + 0x1f4c]
cmp eax, 0x7fffffff
je 0x407cd2
mov ecx, dword [edi + 0x1e4]
cmp ecx, 0xffffffff
je 0x407cd2
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [esi + 0x1f44], edx
mov dword [esi + 0x1f3c], 0
mov dword [esi + 0x1f4c], 0x7fffffff
mov dword [esi + 0x1f48], 0x7fffffff
mov dword [esi + 0x1e64], 0x7fffffff
cmp byte [ebx + 0x1bf3], 0
jne 0x407d27
movss xmm0, dword [ebx + 0xc0]
comiss xmm6, xmm0
ja 0x407d27
movsd xmm1, qword [ebx + 0x1bd8]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 8], xmm1
jmp 0x407d2c
movss xmm1, dword [ebp - 8]
xor edi, edi
cmp dword [ebx + 0x1c00], edi
je 0x407ebf
nop word [eax + eax]
mov eax, dword [ebx + 0x1c08]
xor ecx, ecx
mov esi, dword [eax + edi*4]
mov al, byte [esi + 0xc3]
mov byte [esi + 0xc4], al
mov word [esi + 0xce], cx
mov byte [esi + 0xc3], cl
mov byte [esi + 0xc5], cl
test al, al
jne 0x407ead
cmp byte [esi + 0x3a0], cl
jne 0x407ead
comiss xmm1, dword [esi + 0x298]
jbe 0x407ead
mov ecx, dword [esi + 0x2c4]
mov byte [esi + 0x3a0], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x398], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x39c], eax
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x407de8
mov eax, dword [0x495280]
mov dword [esi + 0x100], 0
mov dword [esi + 0xfc], 0
test eax, eax
je 0x407dd7
dec dword [eax + 0x374]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x104], 0
mov ecx, dword [esi + 0x2c4]
call fcn.00428850
mov ecx, dword [esi + 0x1c8]
test ecx, ecx
je 0x407e31
mov eax, dword [0x495280]
mov dword [esi + 0x1c4], 0
mov dword [esi + 0x1c0], 0
test eax, eax
je 0x407e20
dec dword [eax + 0x374]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1c8], 0
mov ecx, dword [esi + 0x1f8]
test ecx, ecx
je 0x407e6f
mov eax, dword [0x495280]
mov dword [esi + 0x1f4], 0
mov dword [esi + 0x1f0], 0
test eax, eax
je 0x407e5e
dec dword [eax + 0x374]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1f8], 0
mov ecx, dword [esi + 0x204]
test ecx, ecx
je 0x407ead
mov eax, dword [0x495280]
mov dword [esi + 0x200], 0
mov dword [esi + 0x1fc], 0
test eax, eax
je 0x407e9c
dec dword [eax + 0x374]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x204], 0
movss xmm1, dword [ebp - 8]
inc edi
cmp edi, dword [ebx + 0x1c00]
jne 0x407d40
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebx + 0x2018], edi
jle 0x408020
xor ecx, ecx
xorps xmm1, xmm1
mov dword [ebp - 0x1c], ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0x2020]
movss xmm0, dword [eax + edi*4]
comiss xmm0, xmm1
jb 0x408007
movss xmm2, dword [ebp - 8]
comiss xmm2, xmm0
jbe 0x408007
mov esi, dword [ebx + 0x1ff8]
mov eax, dword [0x495280]
add esi, ecx
mov dword [ebp - 0x10], eax
lea ecx, [esi + 0x1c4]
call fcn.0042b080
mov ecx, dword [esi + 0x1ec]
test ecx, ecx
je 0x407f5b
mov eax, dword [0x495280]
mov dword [esi + 0x1e8], 0
mov dword [esi + 0x1e4], 0
test eax, eax
je 0x407f4a
dec dword [eax + 0x374]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1ec], 0
mov dword [esi + 0x1f0], 0
mov byte [esi + 0x218], 1
mov ecx, dword [esi + 0x1c0]
test ecx, ecx
je 0x407faa
mov eax, dword [0x495280]
mov dword [esi + 0x1bc], 0
mov dword [esi + 0x1b8], 0
test eax, eax
je 0x407f99
dec dword [eax + 0x374]
push ecx
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x1c0], 0
xor edx, edx
mov byte [esi + 0x222], 1
cmp dword [esi + 0x54], edx
jle 0x407fd7
xor ecx, ecx
or edi, 0xffffffff
nop dword [eax]
mov eax, dword [esi + 0xc]
lea ecx, [ecx + 0x68]
inc edx
mov word [eax + ecx - 0x18], di
cmp edx, dword [esi + 0x54]
jl 0x407fc0
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
xorps xmm1, xmm1
sub esi, dword [eax + 0x1ff8]
mov eax, 0x76b981db
imul esi
mov eax, dword [ebp - 0x10]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
mov eax, dword [eax + 0x2020]
add ecx, edx
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [ebp - 0x1c]
inc edi
add ecx, 0x228
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], ecx
cmp edi, dword [ebx + 0x2018]
jl 0x407ee0
cmp byte [ebx + 0x1bf3], 0
je 0x4080b5
mov esi, dword [0x495280]
mov eax, dword [esi + 0x1da8]
test eax, eax
je 0x408070
mov dword [esi + 0x1da4], 0
mov dword [esi + 0x1da0], 0
test esi, esi
je 0x40805b
dec dword [esi + 0x374]
mov edi, dword [ebp - 4]
push eax
call edi
add esp, 4
mov dword [esi + 0x1da8], 0
jmp 0x408073
mov edi, dword [ebp - 4]
mov ecx, dword [esi + 0x1db4]
test ecx, ecx
je 0x4080b0
mov eax, dword [0x495280]
mov dword [esi + 0x1db0], 0
mov dword [esi + 0x1dac], 0
test eax, eax
je 0x4080a0
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x1db4], 0
call fcn.00433340
mov eax, dword [ebx + 0x1e18]
mov byte [ebx + 0x1bf3], 0
test eax, eax
je 0x408119
cmp byte [eax + 0xc4], 0
jne 0x408119
mov eax, dword [0x495280]
mov edx, dword [eax + 0x1c0c]
sub edx, 1
js 0x408112
mov eax, dword [eax + 0x1c14]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x40810a
cmp byte [ecx + 0xc4], 0
je 0x40810a
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x40831f
sub esi, 4
sub edx, 1
jns 0x4080e8
xor ecx, ecx
call fcn.004107a0
mov ecx, dword [ebx + 0x1c28]
test ecx, ecx
jns 0x40813f
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 + 0x1c24]
call fcn.00420980
mov dword [ebx + 0x1c24], 0
mov ecx, dword [ebx + 0x1dc8]
test ecx, ecx
jns 0x40816f
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 + 0x1dc4]
call fcn.004207a0
lea esi, [ebx + 0x1da0]
mov dword [ebx + 0x1dc4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40819e
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.00420980
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x4081b3
push 8
mov ecx, esi
call fcn.00420980
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x1dac]
inc dword [esi]
call fcn.00420570
mov ecx, dword [ebx + 0x1e18]
xor dl, dl
call fcn.00411c30
mov ecx, ebx
call fcn.004186a0
mov esi, dword [0x495280]
cmp byte [esi + 0x305c], 0
mov dword [esi + 0x3060], 0
je 0x4082ac
mov ecx, dword [esi + 0x6c]
mov edi, dword [esi + 0x1c74]
mov dword [esi + 0x1f58], 7
test ecx, ecx
js 0x408225
call fcn.0040a440
test al, al
je 0x408225
mov byte [esi + 0x305c], 0
movss xmm0, dword [esi + 0x3fc]
ucomiss xmm0, dword [0x489134]
lahf
test ah, 0x44
jp 0x40824b
test edi, edi
je 0x40824b
mov dword [esi + 0x3060], edi
mov byte [esi + 0x305c], 0
or dword [esi + 0x1cd0], 0x40
xor edx, edx
mov dword [esi + 0x1d28], 0x3f19999a
call fcn.004117b0
push edi
push str.HoveredId:_0x_08X
call fcn.004340d0
push str.Press_ESC_to_abort_picking.
call fcn.004340d0
add esp, 0xc
xor ecx, ecx
mov eax, 0x10
test edi, edi
cmove ecx, eax
mov eax, dword [0x495280]
add eax, 0x165c
add eax, ecx
push str.Click_to_break_in_debugger_
push eax
call fcn.004341c0
add esp, 8
call fcn.00410530
mov esi, dword [0x495280]
mov byte [ebx + 0x1bf1], 1
xor edx, edx
or dword [esi + 0x1cd0], 2
mov ecx, str.DebugDefault
push 0
mov dword [esi + 0x1cf4], 0x43c80000
mov dword [esi + 0x1cf8], 0x43c80000
mov dword [esi + 0x1cd8], 4
call fcn.0040d2f0
xor esi, esi
add esp, 4
cmp dword [ebx + 0x3018], esi
jle 0x408318
xor edi, edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, edi
cmp dword [eax + 4], 1
jne 0x40830c
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x3018]
jl 0x4082f5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00412ef0
mov ecx, eax
jmp 0x408114