Function at 0x408330
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [0x4f0690]
push ebp
push esi
push edi
mov ebp, dword [ebx + 0x30d4]
sub ebp, 1
mov dword [esp + 0x1c], ebx
js 0x4083b8
lea edi, [ebp*4]
add edi, ebp
shl edi, 2
nop dword [eax + eax]
mov ecx, dword [ebx + 0x30dc]
cmp dword [ecx + edi + 4], 7
jne 0x4083b0
mov esi, ecx
mov eax, 0x66666667
sub ecx, esi
add ecx, edi
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 + 0x30d4]
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
add esp, 0xc
dec dword [ebx + 0x30d4]
sub edi, 0x14
sub ebp, 1
jns 0x408360
xor esi, esi
cmp dword [ebx + 0x30d4], esi
jle 0x4083e8
xor edi, edi
mov eax, dword [ebx + 0x30dc]
add eax, edi
cmp dword [eax + 4], 0
jne 0x4083dc
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x30d4]
jl 0x4083c4
mov esi, dword [0x4f0690]
mov eax, dword [ebx + 0x19d8]
mov dword [ebx + 0x19dc], eax
cmp byte [esi + 0xbc], 0
je 0x408410
test byte [esi + 0xc], 2
jne 0x408410
mov byte [esi + 0xbc], 0
mov ecx, dword [esi + 8]
test ecx, 0x400
je 0x408433
mov eax, dword [esi + 0xc]
and eax, 0x1400
cmp eax, 0x1400
je 0x408433
and ecx, 0xfffffbff
mov dword [esi + 8], ecx
mov eax, dword [ebx + 8]
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebx + 0x19d8], eax
cmp byte [esi + 0x309c], 0
mov dword [esp + 0x14], ebp
jne 0x40849a
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x408493
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
call fcn.00403b00
mov edi, eax
add esp, 8
test edi, edi
je 0x408493
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.00418370
mov ecx, dword [0x4f0690]
test ecx, ecx
je 0x40848d
dec dword [ecx + 0x370]
push edi
call ebp
add esp, 4
mov byte [esi + 0x309c], 1
movss xmm0, dword [esi + 0x30a0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x408527
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x30a0], xmm0
jb 0x408527
mov edi, dword [esi + 0x20]
test edi, edi
je 0x408516
mov eax, dword [0x4f0690]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [eax + 0x30a0], 0
call fcn.00418610
mov edx, 0x4de9c0
mov dword [esp + 0x18], eax
mov ecx, edi
call fcn.00403a00
mov edi, eax
test edi, edi
je 0x40851d
push edi
push dword [esp + 0x14]
push 1
push dword [esp + 0x24]
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 0x40851d
mov byte [esi + 0x358], 1
mov dword [esi + 0x30a0], 0
movss xmm0, dword [ebx + 0x18]
lea ecx, [ebx + 0x3050]
inc dword [ebx + 0x1be8]
xor eax, eax
cvtps2pd xmm0, xmm0
push eax
mov byte [ebx + 0x1bf8], 1
mov word [ebx + 0x303e], ax
mov dword [ebx + 0x1c40], eax
addsd xmm0, qword [ebx + 0x1be0]
movsd qword [ebx + 0x1be0], xmm0
call fcn.00423ae0
mov eax, dword [ebx + 0x3328]
mov ecx, 0x78
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x3148]
addss xmm0, dword [ebx + 0x3330]
movss dword [ebx + 0x3330], xmm0
movss dword [ebx + eax*4 + 0x3148], xmm1
mov eax, dword [ebx + 0x3328]
inc eax
movss xmm1, dword [ebx + 0x3330]
cdq
idiv ecx
mov eax, dword [ebx + 0x332c]
movss xmm0, dword [0x4e6a84]
inc eax
cmp eax, ecx
mov dword [ebx + 0x3328], edx
movss dword [esp + 0x10], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x4e6890]
mov dword [ebx + 0x332c], ecx
jbe 0x4085f4
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x4e6934]
divss xmm0, xmm1
movss dword [ebx + 0x35c], xmm0
call fcn.00419410
mov eax, dword [ebx + 0x98]
mov edi, dword [0x4f0690]
mov byte [eax + 0x10], 1
mov esi, dword [edi + 0xa4]
test esi, esi
jne 0x408626
mov eax, dword [edi + 0x98]
mov eax, dword [eax + 0x3c]
mov esi, dword [eax]
movss xmm0, dword [edi + 0x9c]
movss xmm2, dword [0x4e6934]
mov eax, dword [edi + 0x1c4c]
movaps xmm1, xmm2
mov dword [edi + 0x19e0], esi
mulss xmm0, dword [esi + 0x10]
mulss xmm0, dword [esi + 0x44]
maxss xmm1, xmm0
movss dword [edi + 0x19e8], xmm1
test eax, eax
je 0x408683
mulss xmm1, dword [eax + 0x26c]
mulss xmm1, dword [eax + 0x270]
mov eax, dword [eax + 0x30c]
test eax, eax
je 0x408686
mulss xmm1, dword [eax + 0x26c]
jmp 0x408686
xorps xmm1, xmm1
movss xmm7, dword [esp + 0x10]
movss xmm4, dword [0x4e6aa8]
movaps xmm6, xmm7
movss dword [edi + 0x19e4], xmm1
movaps xmm5, xmm4
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [edi + 0x19ec], eax
lea eax, [edx + 0x58]
mov dword [edi + 0x19f0], ecx
mov dword [edi + 0x1bdc], eax
mov dword [edi + 0x19f4], esi
movss dword [edi + 0x19f8], xmm1
mov edx, dword [ebx + 0x1e14]
test edx, edx
jle 0x40872c
mov ecx, dword [ebx + 0x1e1c]
nop
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 0x408704
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40870c
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x408714
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x40871c
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x4086e0
movss xmm2, dword [0x4e6934]
mov eax, dword [ebx + 0x1660]
movss xmm1, dword [ebx + 0x1664]
movss dword [esp + 0x20], xmm7
movss dword [esp + 0x24], xmm6
movss dword [esp + 0x28], xmm4
movss dword [esp + 0x2c], xmm5
movups xmm0, xmmword [esp + 0x20]
mov dword [ebx + 0x19fc], eax
movups xmmword [ebx + 0x1a04], xmm0
movss xmm0, dword [ebx + 0x1a00]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x408858
movss dword [ebx + 0x1a00], xmm1
xor esi, esi
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x40880c
movss xmm1, dword [ebx + 0x1a00]
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 [0x4e698c]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x4087fd
mov eax, 4
jmp 0x40880e
cmp eax, 0x200
mov ecx, 0x200
cmovg eax, ecx
jmp 0x40880e
xor eax, eax
movss xmm2, dword [0x4e6934]
mov byte [esi + ebx + 0x1b9c], al
inc esi
cmp esi, 0x40
jl 0x408783
movsd xmm0, qword [0x4e6948]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4e6934]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x1a00]
divss xmm0, xmm1
movss dword [ebx + 0x1b98], xmm0
xor edx, edx
mov dword [ebx + 0x1a14], 0
cmp byte [ebx + 0x165c], dl
je 0x40887b
mov dword [ebx + 0x1a14], 1
mov edx, 1
cmp byte [ebx + 0x165d], 0
mov ecx, edx
je 0x40889d
mov eax, dword [ebx + 0x19e0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x40889d
or ecx, 2
mov dword [ebx + 0x1a14], ecx
cmp byte [ebx + 0x165e], 0
je 0x4088af
or ecx, 4
mov dword [ebx + 0x1a14], ecx
test byte [ebx + 0xc], 8
je 0x4088be
or ecx, 8
mov dword [ebx + 0x1a14], ecx
xor esi, esi
cmp dword [ebx + 0x1e14], esi
jle 0x4088f9
nop dword [eax + eax]
mov eax, dword [ebx + 0x1e1c]
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 + 0x1e14]
jl 0x4088d0
cmp byte [ebx + 0x1fcc], 0
je 0x40892d
mov eax, dword [ebx + 0x1fe4]
cmp eax, dword [ebx + 0x1c88]
jne 0x40892d
cmp dword [edi + 0x1c88], eax
jne 0x40891e
mov dword [edi + 0x1c8c], eax
cmp dword [edi + 0x1cc4], eax
jne 0x40892d
mov byte [edi + 0x1cc8], 1
cmp dword [ebx + 0x1c78], 0
jne 0x408942
mov dword [ebx + 0x1c80], 0
jmp 0x408954
mov eax, dword [ebx + 0x1c74]
test eax, eax
je 0x40895e
cmp dword [ebx + 0x1c88], eax
jne 0x40895e
mov dword [ebx + 0x1c84], 0
mov eax, dword [ebx + 0x1c74]
test eax, eax
je 0x408998
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x1c80]
movss dword [ebx + 0x1c80], xmm0
cmp dword [ebx + 0x1c88], eax
je 0x408998
addss xmm1, dword [ebx + 0x1c84]
movss dword [ebx + 0x1c84], xmm1
mov dword [ebx + 0x1c78], eax
mov al, byte [ebx + 0x1c7d]
mov byte [ebx + 0x1c7e], al
mov eax, dword [ebx + 0x1c88]
mov dword [ebx + 0x1c74], 0
mov word [ebx + 0x1c7c], 0
mov byte [ebx + 0x1c7f], 0
cmp dword [ebx + 0x1c8c], eax
je 0x4089e3
cmp dword [ebx + 0x1cc4], eax
jne 0x4089e3
test eax, eax
je 0x4089e3
call fcn.00406ac0
mov ecx, dword [ebx + 0x1c88]
test ecx, ecx
je 0x408a02
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x1c90]
movss dword [ebx + 0x1c90], xmm0
mov eax, dword [ebx + 0x1cb8]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x1cd4]
mov dword [ebx + 0x1ccc], eax
mov al, byte [ebx + 0x1c98]
mov byte [ebx + 0x1cc9], al
mov eax, dword [ebx + 0x2fd0]
movss dword [ebx + 0x1cd4], xmm0
mov dword [ebx + 0x1cc4], ecx
mov dword [ebx + 0x1c8c], 0
mov byte [ebx + 0x1c99], 0
mov byte [ebx + 0x1cc8], 0
mov byte [ebx + 0x1c94], 0
test eax, eax
je 0x408a6c
cmp ecx, eax
je 0x408a6c
mov dword [ebx + 0x2fd0], 0
test ecx, ecx
jne 0x408a88
mov dword [ebx + 0x1c9c], ecx
mov dword [ebx + 0x1ca0], ecx
mov dword [ebx + 0x1ca8], ecx
mov dword [ebx + 0x1cac], ecx
cmp byte [ebx + 0x1518], 0
mov eax, dword [ebx + 0x2030]
mov dword [ebx + 0x2034], eax
mov dword [ebx + 0x2030], 0
mov dword [ebx + 0x202c], 0x7f7fffff
mov word [ebx + 0x1fcd], 0
mov dword [ebx + 0x203c], 0
je 0x408b42
push 0x200
lea eax, [ebx + 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebx + 0x474]
mov ecx, 0x200
nop word [eax + eax]
mov dword [eax + 0x800], 0xbf800000
lea eax, [eax + 4]
mov dword [eax - 4], 0xbf800000
sub ecx, 1
jne 0x408af0
mov dword [ebx + 0x100], ecx
lea eax, [ebx + 0x1474]
mov dword [ebx + 0x384], ecx
mov dword [ebx + 0x380], ecx
mov ecx, 0x14
mov dword [eax + 0x50], 0xbf800000
lea eax, [eax + 4]
mov dword [eax - 4], 0xbf800000
sub ecx, 1
jne 0x408b26
mov byte [ebx + 0x1518], cl
xor eax, eax
cmp byte [edi + 0x100], al
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 + 0xc74]
cmove eax, edx
mov dword [ebx + 0x380], eax
lea eax, [ebx + 0x474]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
nop word [eax + eax]
cmp byte [ebx + ecx + 0x104], 0
je 0x408bc2
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x408bbb
xorps xmm0, xmm0
jmp 0x408bca
addss xmm0, dword [ebx + 0x18]
jmp 0x408bca
movss xmm0, dword [0x4e6a94]
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x408ba0
call fcn.00415610
call fcn.00407840
test byte [ebx + 8], 0x40
jne 0x408c13
cmp dword [ebx + 0x3074], 0
jg 0x408c00
cmp dword [ebx + 0x3080], 0
jle 0x408ceb
mov dl, 1
call fcn.004213f0
xor ecx, ecx
call fcn.004210f0
jmp 0x408ceb
cmp byte [ebx + 0xb0], 0
je 0x408c5a
xor esi, esi
cmp dword [ebx + 0x3074], esi
jle 0x408c5a
nop word [eax + eax]
mov eax, dword [ebx + 0x307c]
mov ecx, dword [eax + esi*8 + 4]
test ecx, ecx
je 0x408c51
cmp dword [ecx + 0x18], 0
jne 0x408c51
cmp dword [ecx + 0x1c], 0
je 0x408c51
mov ecx, dword [ecx]
call fcn.004210f0
inc esi
cmp esi, dword [ebx + 0x3074]
jl 0x408c30
cmp byte [ebx + 0x3098], 0
je 0x408c9c
xor ecx, ecx
call fcn.00418610
xor dl, dl
call fcn.004213f0
xor ecx, ecx
call fcn.004210f0
push dword [ebx + 0x308c]
mov edx, dword [ebx + 0x3094]
mov ecx, ebx
call fcn.0041b390
add esp, 4
mov ecx, ebx
call fcn.0041b4f0
mov byte [ebx + 0x3098], 0
xor esi, esi
cmp dword [ebx + 0x3080], esi
jle 0x408ceb
xor edi, edi
nop dword [eax + eax]
mov eax, dword [ebx + 0x3088]
cmp dword [eax + edi], 2
jne 0x408cdf
mov edx, dword [eax + edi + 0x1c]
test edx, edx
je 0x408cd0
push 1
call fcn.0041b930
add esp, 4
jmp 0x408cdf
mov edx, dword [eax + edi + 0x20]
test edx, edx
je 0x408cdf
mov ecx, ebx
call fcn.0041ba70
inc esi
add edi, 0x24
cmp esi, dword [ebx + 0x3080]
jl 0x408cb0
call fcn.00408070
call fcn.00407380
mov eax, dword [0x4f0690]
mov edx, dword [eax + 0x1dfc]
sub edx, 1
js 0x408d2f
mov eax, dword [eax + 0x1e04]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x408d27
test dword [ecx + 8], 0x8000000
jne 0x408dea
sub eax, 0x24
sub edx, 1
jns 0x408d14
cmp dword [ebx + 0x1fac], 0
xorps xmm6, xmm6
je 0x408d4c
movss xmm0, dword [ebx + 0x1fbc]
comiss xmm0, xmm6
ja 0x408ded
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x4e69ac]
movss xmm1, dword [ebx + 0x1fc4]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [ebx + 0x1fc4], xmm1
mov dword [ebx + 0x1fc8], 0
mov dword [ebx + 0x333c], 0xffffffff
mov dword [ebx + 0x3338], 0xffffffff
mov dword [ebx + 0x3334], 0xffffffff
mov dword [ebx + 0x305c], 0x3f800000
mov dword [ebx + 0x3060], 0x3f800000
mov dword [ebx + 0x306c], 0
call fcn.00407ba0
cmp byte [ebx + 0x1bfb], 0
jne 0x408e0f
movss xmm0, dword [ebx + 0xc0]
comiss xmm6, xmm0
ja 0x408e0f
movsd xmm1, qword [ebx + 0x1be0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [esp + 0x10], xmm1
jmp 0x408e15
xorps xmm6, xmm6
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x4e6998]
addss xmm1, dword [ebx + 0x1fc4]
minss xmm1, dword [0x4e6934]
jmp 0x408d69
movss xmm1, dword [esp + 0x10]
xor edi, edi
cmp dword [ebx + 0x1c04], edi
je 0x408f9f
mov eax, dword [ebx + 0x1c0c]
xor ecx, ecx
mov esi, dword [eax + edi*4]
mov al, byte [esi + 0xbf]
mov byte [esi + 0xc0], al
mov word [esi + 0xca], cx
mov byte [esi + 0xbf], cl
mov byte [esi + 0xc1], cl
test al, al
jne 0x408f8c
cmp byte [esi + 0x358], cl
jne 0x408f8c
comiss xmm1, dword [esi + 0x24c]
jbe 0x408f8c
mov ecx, dword [esi + 0x278]
mov byte [esi + 0x358], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x350], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x354], eax
mov ecx, dword [esi + 0x100]
test ecx, ecx
je 0x408eca
mov eax, dword [0x4f0690]
mov dword [esi + 0xfc], 0
mov dword [esi + 0xf8], 0
test eax, eax
je 0x408eba
dec dword [eax + 0x370]
push ecx
call ebp
add esp, 4
mov dword [esi + 0x100], 0
mov ecx, dword [esi + 0x278]
call fcn.0042c4f0
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x408f12
mov eax, dword [0x4f0690]
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test eax, eax
je 0x408f02
dec dword [eax + 0x370]
push ecx
call ebp
add esp, 4
mov dword [esi + 0x194], 0
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x408f4f
mov eax, dword [0x4f0690]
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1b4], 0
test eax, eax
je 0x408f3f
dec dword [eax + 0x370]
push ecx
call ebp
add esp, 4
mov dword [esi + 0x1bc], 0
mov ecx, dword [esi + 0x1c8]
test ecx, ecx
je 0x408f8c
mov eax, dword [0x4f0690]
mov dword [esi + 0x1c4], 0
mov dword [esi + 0x1c0], 0
test eax, eax
je 0x408f7c
dec dword [eax + 0x370]
push ecx
call ebp
add esp, 4
mov dword [esi + 0x1c8], 0
movss xmm1, dword [esp + 0x10]
inc edi
cmp edi, dword [ebx + 0x1c04]
jne 0x408e23
xor ebp, ebp
cmp dword [ebx + 0x20a0], ebp
jle 0x4090ef
xor ecx, ecx
xorps xmm1, xmm1
mov dword [esp + 0x18], ecx
nop word [eax + eax]
mov eax, dword [ebx + 0x20a8]
movss xmm0, dword [eax + ebp*4]
comiss xmm0, xmm1
jb 0x4090d8
movss xmm2, dword [esp + 0x10]
comiss xmm2, xmm0
jbe 0x4090d8
mov esi, dword [ebx + 0x2088]
mov edi, dword [0x4f0690]
add esi, ecx
mov dword [esp + 0x20], edi
mov dword [esi + 0x194], 0
mov eax, dword [esi + 0x190]
test eax, eax
je 0x409039
mov dword [esi + 0x18c], 0
mov dword [esi + 0x188], 0
test edi, edi
je 0x409027
dec dword [edi + 0x370]
push eax
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x190], 0
mov byte [esi + 0x1bc], 1
mov ecx, dword [esi + 0x174]
test ecx, ecx
je 0x40907f
mov eax, dword [0x4f0690]
mov dword [esi + 0x170], 0
mov dword [esi + 0x16c], 0
test eax, eax
je 0x40906d
dec dword [eax + 0x370]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x174], 0
xor edx, edx
mov byte [esi + 0x1c6], 1
cmp dword [esi + 0x54], edx
jle 0x4090ab
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x68]
inc edx
mov word [eax + ecx - 0x18], di
cmp edx, dword [esi + 0x54]
jl 0x409092
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
sub esi, dword [edi + 0x2088]
mov eax, 0x8fb823ef
imul esi
xorps xmm1, xmm1
mov eax, dword [edi + 0x20a8]
add edx, esi
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [esp + 0x18]
inc ebp
add ecx, 0x1c8
mov dword [esp + 0x18], ecx
cmp ebp, dword [ebx + 0x20a0]
jl 0x408fc0
xor ebp, ebp
cmp dword [ebx + 0x2074], ebp
jle 0x40913d
xor esi, esi
xorps xmm1, xmm1
nop
mov edi, dword [ebx + 0x207c]
movss xmm0, dword [esi + edi + 4]
comiss xmm0, xmm1
jb 0x409131
movss xmm2, dword [esp + 0x10]
comiss xmm2, xmm0
jbe 0x409131
lea ecx, [edi + 0x10]
add ecx, esi
call fcn.0042ee70
mov dword [esi + edi + 4], 0xbf800000
xorps xmm1, xmm1
inc ebp
add esi, 0x68
cmp ebp, dword [ebx + 0x2074]
jl 0x409100
cmp byte [ebx + 0x1bfb], 0
je 0x4091d4
mov esi, dword [0x4f0690]
mov eax, dword [esi + 0x1dec]
test eax, eax
je 0x40918e
mov dword [esi + 0x1de8], 0
mov dword [esi + 0x1de4], 0
test esi, esi
je 0x409178
dec dword [esi + 0x370]
mov ebp, dword [esp + 0x14]
push eax
call ebp
add esp, 4
mov dword [esi + 0x1dec], 0
jmp 0x409192
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x1df8]
test ecx, ecx
je 0x4091cf
mov eax, dword [0x4f0690]
mov dword [esi + 0x1df4], 0
mov dword [esi + 0x1df0], 0
test eax, eax
je 0x4091bf
dec dword [eax + 0x370]
push ecx
call ebp
add esp, 4
mov dword [esi + 0x1df8], 0
call fcn.00437e90
mov eax, dword [ebx + 0x1e5c]
mov byte [ebx + 0x1bfb], 0
test eax, eax
je 0x409238
cmp byte [eax + 0xc0], 0
jne 0x409238
mov eax, dword [0x4f0690]
mov edx, dword [eax + 0x1c10]
sub edx, 1
js 0x409231
mov eax, dword [eax + 0x1c18]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x409229
cmp byte [ecx + 0xc0], 0
je 0x409229
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x40949a
sub esi, 4
sub edx, 1
jns 0x409207
xor ecx, ecx
call fcn.00411bf0
mov ecx, dword [ebx + 0x1c2c]
test ecx, ecx
jns 0x40925e
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 + 0x1c28]
call fcn.00423e80
mov dword [ebx + 0x1c28], 0
mov ecx, dword [ebx + 0x1e0c]
test ecx, ecx
jns 0x40928e
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 + 0x1e08]
call fcn.004239b0
mov dword [ebx + 0x1e08], 0
mov ecx, dword [ebx + 0x1de8]
test ecx, ecx
jns 0x4092be
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea ecx, [ebx + 0x1de4]
test eax, eax
cmovg edx, eax
push edx
call fcn.00423e00
lea eax, [esp + 0x20]
mov dword [ebx + 0x1de4], 0
push eax
lea ecx, [ebx + 0x1de4]
mov dword [esp + 0x24], 0
call fcn.00422fc0
push 0
lea ecx, [ebx + 0x1df0]
call fcn.00423780
mov ecx, ebx
call fcn.0041ac20
mov esi, dword [0x4f0690]
cmp byte [esi + 0x3118], 0
mov dword [esi + 0x311c], 0
je 0x4093bf
mov ecx, dword [esi + 0x6c]
mov edi, dword [esi + 0x1c78]
mov dword [esi + 0x1fc8], 7
test ecx, ecx
js 0x409338
call fcn.0040b710
test al, al
je 0x409338
mov byte [esi + 0x3118], 0
movss xmm0, dword [esi + 0x410]
ucomiss xmm0, dword [0x4e6890]
lahf
test ah, 0x44
jp 0x40935e
test edi, edi
je 0x40935e
mov dword [esi + 0x311c], edi
mov byte [esi + 0x3118], 0
or dword [esi + 0x1d2c], 0x40
xor edx, edx
mov dword [esi + 0x1d84], 0x3f19999a
call fcn.00413280
push edi
push str.HoveredId:_0x_08X
call fcn.00438bb0
push str.Press_ESC_to_abort_picking.
call fcn.00438bb0
add esp, 0xc
xor ecx, ecx
mov eax, 0x10
test edi, edi
cmove ecx, eax
mov eax, dword [0x4f0690]
add eax, 0x1668
add eax, ecx
push str.Click_to_break_in_debugger_
push eax
call fcn.00438ca0
add esp, 8
call fcn.00411940
mov esi, dword [0x4f0690]
mov edi, esi
mov dword [edi + 0x1c70], 0
mov eax, dword [edi + 0x3130]
inc eax
cmp dword [edi + 0x1be8], eax
jne 0x4094ce
mov ebp, dword [edi + 0x1c78]
test ebp, ebp
jne 0x4093ee
mov ebp, dword [edi + 0x1c88]
cmp dword [edi + 0x3138], ebp
je 0x409441
lea eax, [edi + 0x313c]
mov dword [edi + 0x3138], ebp
mov dword [edi + 0x3134], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40943b
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 + 0x313c]
call fcn.00423ef0
mov esi, dword [0x4f0690]
lea eax, [edi + 0x313c]
mov dword [eax], 0
test ebp, ebp
je 0x4094ce
mov eax, dword [edi + 0x3134]
test eax, eax
js 0x40948b
mov ecx, eax
cmp eax, dword [edi + 0x313c]
jge 0x4094aa
mov ecx, dword [edi + 0x3144]
mov edx, eax
shl edx, 6
cmp byte [edx + ecx + 5], 0
jne 0x409484
mov esi, dword [edi + 0x3144]
mov ecx, eax
cmp byte [edx + esi + 4], 2
mov esi, dword [0x4f0690]
jle 0x4094aa
inc eax
mov dword [edi + 0x3134], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x4094a6
mov dword [edi + 0x1c70], ebp
jmp 0x4094ce
call fcn.00414ef0
mov ecx, eax
jmp 0x409233
test ecx, ecx
js 0x4094ce
cmp ecx, dword [edi + 0x313c]
jge 0x4094ce
mov eax, dword [edi + 0x3144]
shl ecx, 6
mov eax, dword [ecx + eax]
mov dword [edi + 0x1c70], eax
mov eax, dword [edi + 0x3144]
inc byte [ecx + eax + 4]
mov byte [ebx + 0x1bf9], 1
xor edx, edx
or dword [esi + 0x1d2c], 2
mov ecx, str.DebugDefault
push 0
mov dword [esi + 0x1d50], 0x43c80000
mov dword [esi + 0x1d54], 0x43c80000
mov dword [esi + 0x1d34], 4
call fcn.0040e8f0
xor esi, esi
add esp, 4
cmp dword [ebx + 0x30d4], esi
jle 0x409544
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x30dc]
add eax, edi
cmp dword [eax + 4], 1
jne 0x409538
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x30d4]
jl 0x409520
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret