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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfe9e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x64b9b0]
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 - 0x28], ebx
mov dword [ebp - 4], 0
cmp dword [ebx + 0x180], 0
jne 0x4071ee
mov ecx, dword [ebx + 0x160]
test ecx, ecx
je 0x4071ee
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
call dword [eax + 0x9c]
cmp dword [ebx + 0x180], 0
jne 0x4071ee
call fcn.00402810
mov ecx, eax
test ecx, ecx
jne 0x406fd0
push 0x80004005
call fcn.004022b0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
mov ecx, ebx
movups xmm0, xmmword [ebp - 0x20]
mov edi, dword [ebx + 0x174]
push eax
push dword [ebp + 8]
mov esi, dword [edi]
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
mov eax, dword [ebx]
call dword [eax + 0xc8]
push eax
push dword [ebx + 0x190]
push edi
call dword [esi + 8]
mov dword [ebx + 0x180], eax
test eax, eax
je 0x4071d2
lea ecx, [ebp - 0x2c]
call fcn.004033e0
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 - 0x2c]
mov byte [ebp - 4], 2
push str.__user_agent_s
push eax
call fcn.004043e0
mov eax, dword [ebx + 0x180]
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 0
push ebx
push str.special_command
push eax
call dword [ecx + 0x30]
push ecx
mov edx, str.full.data
lea ecx, [ebp - 0x30]
call fcn.0046fea0
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x30]
test eax, eax
sete byte [ebp - 0x21]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407090
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x21], 0
mov edi, dword [ebp - 0x28]
je 0x4070b1
mov eax, dword [edi + 0x180]
push 0x22
push str.__no_proxy_server
push str.special_command
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
cmp dword [edi + 0x16c], 0
je 0x4070f6
mov eax, dword [edi + 0x180]
lea edx, [ebp - 0x30]
push 4
push edx
mov dword [ebp - 0x30], 1
mov ecx, dword [eax]
push str.enable_high_dpi
push eax
call dword [ecx + 0x30]
mov eax, dword [edi + 0x180]
lea edx, [ebp - 0x34]
push 4
push edx
mov dword [ebp - 0x34], 1
mov ecx, dword [eax]
push str.disable_gpu
push eax
call dword [ecx + 0x30]
mov edx, dword [edi + 0x180]
lea eax, [edi + 0x12c]
mov ecx, edi
neg ecx
mov esi, dword [edx]
sbb ecx, ecx
and ecx, eax
push ecx
push edx
call dword [esi + 4]
lea eax, [edi + 0x184]
mov edi, dword [edi + 0x184]
mov dword [ebp - 0x38], eax
mov esi, dword [edi]
cmp esi, edi
je 0x40718e
mov ebx, dword [ebp - 0x28]
nop dword [eax]
mov eax, dword [ebx + 0x180]
push dword [esi + 0x14]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
cmp byte [esi + 0xd], 0
jne 0x407187
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40716c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x407187
nop dword [eax + eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x407160
jmp 0x407187
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x407185
cmp esi, dword [eax + 8]
jne 0x407185
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x407175
mov esi, eax
cmp esi, edi
jne 0x407130
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
mov ecx, esi
mov byte [ebp - 4], 3
mov eax, dword [esi]
push dword [eax + 4]
call fcn.00407d30
mov eax, dword [esi]
add ebx, 0xfffffff0
mov dword [eax + 4], eax
mov eax, dword [esi]
mov dword [eax], eax
mov eax, dword [esi]
mov byte [ebp - 4], 1
mov dword [eax + 8], eax
or eax, 0xffffffff
mov dword [esi + 4], 0
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4071d2
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071ee
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 0x407210
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.0057b967
mov esp, ebp
pop ebp
ret 4