Function at 0x493a30
Capabilities:
Reference http user-agent string

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51dc40
push eax
mov al, byte [esp + 0x28]
mov dword fs:[0], esp
sub esp, 0x2c
test al, 0x1e
push edi
mov edi, ecx
je 0x493d57
push ebx
push ebp
push esi
call fcn.00490320
mov ebx, eax
mov ecx, ebx
call fcn.0048e620
xor ebp, ebp
mov ecx, 1
cmp eax, ebp
je 0x493a7e
mov edx, dword [eax + 0x28]
mov dword [esp + 0x10], ecx
cmp edx, ecx
je 0x493a82
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x6c]
cmp eax, ebp
jne 0x493a95
mov dl, byte [edi + 0x44]
mov dword [esp + 0x14], ecx
test dl, 4
jne 0x493a99
mov dword [esp + 0x14], ebp
xor ecx, ecx
mov edx, dword [edi + 0x3c]
cmp eax, 2
push edx
setne cl
dec ecx
and ecx, 3
mov esi, ecx
lea ecx, [esp + 0x30]
push esi
push ebp
call fcn.0051673d
mov ecx, ebx
mov dword [esp + 0x44], ebp
call fcn.0048d680
cmp dword [esp + 0x58], eax
jl 0x493adb
mov ecx, ebx
call fcn.0048d690
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
mov eax, 0xc0c0c0
jge 0x493ae0
mov eax, 0x808080
push eax
push esi
push ebp
lea ecx, [esp + 0x30]
call fcn.0051673d
mov esi, dword [esp + 0x4c]
push 1
mov byte [esp + 0x48], 1
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call fcn.005166bb
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov ecx, dword [ebp]
push ecx
push edx
mov ecx, edi
call fcn.00490010
mov ebx, eax
mov eax, dword [ebp + 4]
mov ebp, dword [esp + 0x54]
push eax
push ebp
mov ecx, edi
call fcn.00490140
mov edx, dword [esi + 8]
lea ecx, [esp + 0x1c]
push 1
push ecx
push edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc ecx
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x1c]
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
test byte [esp + 0x64], 2
je 0x493bdf
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
test eax, eax
jne 0x493be9
test edx, 0x40000
jne 0x493be9
mov ecx, dword [esp + 0x10]
mov eax, edx
and eax, 0x10
jne 0x493ba3
cmp ecx, 1
je 0x493bb0
cmp dword [esp + 0x14], 1
jne 0x493bed
cmp ecx, 1
je 0x493bb0
test eax, eax
lea eax, [esp + 0x24]
je 0x493bb4
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00515d24
mov edx, dword [esp + 0x50]
push ebp
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, esi
call fcn.00516215
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
push ecx
push edx
mov ecx, esi
call fcn.00516261
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
jmp 0x493bed
mov ecx, dword [esp + 0x10]
test byte [esp + 0x64], 4
je 0x493c5e
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x493c03
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x493c5e
test edx, 0x80000
jne 0x493c5e
mov eax, edx
and eax, 0x20
jne 0x493c1e
cmp ecx, 1
je 0x493c2b
cmp dword [esp + 0x14], 1
jne 0x493c5e
cmp ecx, 1
je 0x493c2b
test eax, eax
lea eax, [esp + 0x24]
je 0x493c2f
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00515d24
mov eax, dword [esp + 0x50]
push ebp
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, esi
call fcn.00516215
mov edx, dword [esp + 0x1c]
push ebp
push edx
mov ecx, esi
call fcn.00516261
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
test byte [esp + 0x64], 8
je 0x493cbc
test edx, 0x100000
jne 0x493cbc
mov eax, edx
and eax, 0x40
jne 0x493c80
cmp ecx, 1
je 0x493c8d
cmp dword [esp + 0x14], 1
jne 0x493cbc
cmp ecx, 1
je 0x493c8d
test eax, eax
lea eax, [esp + 0x24]
je 0x493c91
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00515d24
push ebp
lea eax, [esp + 0x38]
push ebx
push eax
mov ecx, esi
call fcn.00516215
mov ecx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, esi
call fcn.00516261
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
test byte [esp + 0x64], 0x10
je 0x493d1c
test edx, 0x200000
jne 0x493d1c
mov eax, edx
and eax, 0x80
jne 0x493ce0
cmp ecx, 1
je 0x493ced
cmp dword [esp + 0x14], 1
jne 0x493d1c
cmp ecx, 1
je 0x493ced
test eax, eax
lea eax, [esp + 0x24]
je 0x493cf1
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00515d24
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push edi
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, esi
call fcn.00516215
mov ecx, dword [esp + 0x1c]
push edi
push ecx
mov ecx, esi
call fcn.00516261
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
call fcn.00515d24
mov esi, 0x9236b8
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 2
call fcn.00516727
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 3
call fcn.00516727
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
add esp, 0x38
ret 0x20