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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x586c31
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.00405b34
lea eax, [ebp - 0xc]
call fcn.00405b34
mov eax, dword [ebp + 8]
call fcn.004052c8
xor eax, eax
push ebp
push 0x586f94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.004050a0
mov eax, dword [ebp - 0x14]
call fcn.0040aaf8
xor eax, eax
push ebp
push 0x586caf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x489ae0]
call fcn.0048aac4
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x586cb9
mov dword [0x5926a4], 0xffffffff
mov dword [0x592674], 0
mov dword [0x592678], 0
xor edx, edx
push ebp
push 0x586ed7
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4f4fec]
call fcn.004f6218
mov dword [0x59267c], eax
mov dl, 1
mov eax, dword [0x59267c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [0x59267c]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x188], edx
cmp dword [ebp + 8], 0
jne 0x586d2e
mov eax, dword [0x59267c]
add eax, 0x110
mov edx, 0x586fb0
call fcn.00404e5c
jmp 0x586d40
mov eax, dword [0x59267c]
add eax, 0x110
mov edx, dword [ebp + 8]
call fcn.00404e5c
mov eax, dword [0x592690]
mov edx, 0x586ff0
call fcn.004058a0
jne 0x586dec
lea edx, [ebp - 0x18]
mov eax, dword [0x592680]
call fcn.00409f18
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.004058a0
je 0x586dec
lea edx, [ebp - 0x1c]
mov eax, dword [0x592684]
call fcn.00409f18
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.004058a0
je 0x586dec
mov eax, dword [0x592690]
mov edx, 0x586ff0
call fcn.004058a0
jne 0x586dec
mov eax, dword [0x59267c]
add eax, 0x90
mov edx, dword [0x592680]
call fcn.004050a0
mov eax, dword [0x59267c]
add eax, 0x94
mov edx, dword [0x592684]
call fcn.004050a0
mov eax, dword [0x59267c]
add eax, 0xa8
mov edx, dword [0x592688]
call fcn.004050a0
mov eax, dword [0x59267c]
add eax, 0xac
mov edx, dword [0x59268c]
call fcn.004050a0
mov eax, dword [0x59267c]
mov edx, dword [ebp - 4]
mov dword [eax + 0x2e4], edx
mov dword [eax + 0x2e0], 0x586ffc
mov eax, dword [0x59267c]
add eax, 0xec
mov edx, dword [ebp - 8]
call fcn.004050a0
mov eax, dword [0x59267c]
call fcn.004fce3c
mov eax, dword [0x59267c]
mov eax, dword [eax + 0x12c]
cmp eax, 0xc8
je 0x586e39
cmp eax, 0xce
jne 0x586e81
cmp dword [0x59267c], 0
je 0x586e4f
mov eax, dword [0x59267c]
xor edx, edx
mov dword [eax + 0x188], edx
cmp dword [0x59267c], 0
je 0x586e62
mov eax, dword [0x59267c]
call fcn.00403f7c
cmp dword [ebp - 0x10], 0
je 0x586e70
mov eax, dword [ebp - 0x10]
call fcn.00403f7c
mov eax, dword [0x58ff04]
mov eax, dword [eax]
call fcn.00486080
or ebx, 0xffffffff
jmp 0x586ecd
cmp dword [0x59267c], 0
je 0x586e97
mov eax, dword [0x59267c]
xor edx, edx
mov dword [eax + 0x188], edx
cmp dword [0x59267c], 0
je 0x586eaa
mov eax, dword [0x59267c]
call fcn.00403f7c
cmp dword [ebp - 0x10], 0
je 0x586eb8
mov eax, dword [ebp - 0x10]
call fcn.00403f7c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.004050a0
mov eax, dword [ebp - 0x20]
call fcn.0040aaf8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x586f4f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x586f9b
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404e2c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040553c
lea eax, [ebp - 0x14]
call fcn.00404e08
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040553c
lea eax, [ebp + 8]
call fcn.00404e08
ret