Function at 0x406090
Capabilities:
Check if file exists
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1996
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
cmp dword [ebx + 0x188], 0
jne 0x406374
mov ecx, dword [ebx + 0x168]
test ecx, ecx
je 0x406374
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
call dword [eax + 0xa0]
cmp dword [ebx + 0x188], 0
jne 0x406374
push 0x6363e4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.004035d0
push 0
push 0x6661b0
mov byte [ebp - 4], 1
mov ecx, ebx
movups xmm0, xmmword [ebp - 0x30]
mov edi, dword [ebx + 0x17c]
push 0x66618c
push 0
push dword [ebp - 0x1c]
mov esi, dword [edi]
push dword [ebp + 8]
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [ebx]
call dword [eax + 0xcc]
push eax
push dword [ebx + 0x198]
push edi
call dword [esi + 8]
push eax
call fcn.005a5cf2
add esp, 0x14
mov dword [ebx + 0x188], eax
test eax, eax
je 0x406355
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00402ce0
push str._Mozilla_5.0__Windows_NT_6.2__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_49.0.2623.110_Safari_537.36_XunduPDF_49.0.2623.110_
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push str.__user_agent_s
push eax
call fcn.00407e20
add esp, 8
lea ecx, [ebp - 0x14]
mov edx, str.full.data
call fcn.00483650
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete byte [ebp - 0x31]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4061c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x31], 0
je 0x406255
push 0x63686c
lea ecx, [ebp - 0x18]
call fcn.00406c50
mov ecx, dword [0x6819fc]
call fcn.004855f0
test al, al
je 0x406223
mov ecx, dword [0x6819fc]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
call fcn.00485710
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.00407c60
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00403910
jmp 0x406255
mov esi, dword [0x6819fc]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x18]
cmp esi, 1
jne 0x40624b
push 0x636870
jmp 0x406250
push str.__no_proxy_server
call fcn.00406c50
mov eax, dword [ebx + 0x188]
mov edi, dword [ebp - 0x18]
push 0
push edi
mov ecx, dword [eax]
push str.special_command
push eax
call dword [ecx + 0x30]
cmp dword [ebx + 0x174], 0
je 0x4062bc
mov eax, dword [ebx + 0x30]
lea edx, [ebp - 0x14]
mov ecx, 0x64
push 4
push edx
cmp ecx, dword [eax + 4]
push str.enable_high_dpi
sbb eax, eax
neg eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x188]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebx + 0x188]
lea edx, [ebp - 0x20]
push 4
push edx
mov dword [ebp - 0x20], 1
mov ecx, dword [eax]
push str.disable_gpu
push eax
call dword [ecx + 0x30]
mov edx, dword [ebx + 0x188]
lea eax, [ebx + 0x134]
mov ecx, ebx
neg ecx
mov esi, dword [edx]
sbb ecx, ecx
and ecx, eax
push ecx
push edx
call dword [esi + 4]
mov esi, dword [ebx + 0x18c]
lea eax, [ebx + 0x18c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x406311
nop
mov ecx, dword [ebx + 0x188]
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x40]
lea ecx, [ebp - 0x14]
call fcn.004071b0
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x4062f0
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.00406e60
mov eax, dword [ebx]
add edi, 0xfffffff0
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov byte [ebp - 4], 1
mov dword [eax + 8], eax
or eax, 0xffffffff
mov dword [ebx + 4], 0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x406355
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406374
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406396
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret 4