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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51dce0
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x48
mov dword [eax], 0xffffffff
push esi
mov esi, ecx
mov ecx, dword [esp + 0x60]
push edi
mov dword [ecx], 0xffffffff
mov ecx, esi
call fcn.00490320
mov edi, eax
test edi, edi
je 0x4951cd
mov ecx, esi
call fcn.00490320
mov ecx, eax
call fcn.0048d8b0
cmp eax, 1
je 0x4951cd
push ebx
push ebp
mov ecx, edi
call fcn.0048d5c0
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0048d600
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.0048d680
mov ebp, eax
mov ecx, edi
mov dword [esp + 0x10], ebp
call fcn.0048d690
mov edi, eax
push 1
mov ecx, esi
mov dword [esp + 0x20], edi
call fcn.00512b61
mov ebx, eax
push 0
mov ecx, esi
add ebx, ebp
call fcn.00512b61
mov ebp, eax
push 0
lea ecx, [esp + 0x48]
add ebp, edi
call fcn.00516428
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x6c], 0
call fcn.004a88f0
add esp, 0xc
lea edx, [esp + 0x44]
lea ecx, [esp + 0x20]
push edx
call fcn.0048fd40
mov eax, 2
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov byte [esp + 0x60], 1
push eax
call fcn.005163bf
mov eax, dword [esp + 0x68]
push 1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
lea edx, [esp + 0x3c]
mov ecx, esi
push edx
call fcn.0048ff30
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
mov ecx, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jle 0x49513b
test byte [esi + 0x44], 0x20
jne 0x49513b
cmp dword [esp + 0x24], eax
jge 0x49513b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, ebx
sub ebp, ecx
cmp ebp, eax
jge 0x4951b1
cmp ebp, ebx
mov edi, ebp
jge 0x4950ea
mov eax, dword [esp + 0x10]
sub edi, ebx
add edi, eax
push edi
mov ecx, esi
call fcn.0048fd70
mov edx, dword [esp + 0x30]
push eax
push edx
mov ecx, esi
call fcn.00490140
mov ecx, dword [esp + 0x38]
mov edx, eax
sub edx, ecx
cmp dword [esp + 0x28], edx
jl 0x495117
mov edx, dword [esp + 0x28]
add ecx, eax
cmp edx, ecx
jle 0x495129
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x4950dc
jmp 0x4951b1
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x495133
mov dword [ecx], eax
mov eax, dword [esp + 0x6c]
mov dword [eax], edi
jmp 0x4951b1
test ecx, ecx
jle 0x4951b1
test byte [esi + 0x44], 0x40
jne 0x4951b1
cmp dword [esp + 0x28], ecx
jge 0x4951b1
mov eax, dword [esp + 0x18]
mov ebx, ebp
sub ebx, edi
cmp ebx, eax
jge 0x4951b1
cmp ebx, ebp
mov edi, ebx
jge 0x495165
mov eax, dword [esp + 0x1c]
sub edi, ebp
add edi, eax
push edi
mov ecx, esi
call fcn.0048fe50
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.00490010
mov ecx, dword [esp + 0x34]
mov edx, eax
sub edx, ecx
cmp dword [esp + 0x24], edx
jl 0x495192
mov edx, dword [esp + 0x24]
add ecx, eax
cmp edx, ecx
jle 0x4951a1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jl 0x495157
jmp 0x4951b1
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x4951ab
mov dword [ecx], eax
mov edx, dword [esp + 0x70]
mov dword [edx], edi
lea ecx, [esp + 0x20]
call fcn.0048fd60
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], 0xffffffff
call fcn.0051649a
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10