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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004052c8
xor eax, eax
push ebp
push 0x51fa9b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x51fa3f
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00409ec8
cmp dword [ebp - 0x14], 0
jne 0x51f735
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51fa70
xor ecx, ecx
mov dl, 1
mov eax, dword [0x436930]
call fcn.00437694
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x5c], ebx
mov eax, ebx
mov edx, 0x1f4
call fcn.0043782c
mov eax, dword [ebp - 4]
push eax
push 0x51ea78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.0043783c
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 6
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4f492c]
call fcn.004f5b58
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x154], ebx
mov byte [ebx + 0x128], 1
lea eax, [ebx + 0x114]
mov edx, 0x51fab8
call fcn.00404e5c
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x40], 0x1c
mov edx, dword [0x587c70]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0x88]
lea edx, [ebp - 0x18]
call fcn.00409f18
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.004058a0
jne 0x51f7ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0x110
mov edx, 0x51fac4
call fcn.00404e5c
jmp 0x51f815
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0x110
mov edx, dword [ebp - 4]
imul edx, dword [edx + 0x40], 0x1c
mov ecx, dword [0x587c70]
mov ecx, dword [ecx]
mov edx, dword [ecx + edx*8 + 0x88]
call fcn.004050a0
mov eax, dword [0x587a70]
mov eax, dword [eax]
mov edx, 0x51fb04
call fcn.004058a0
jne 0x51f8e5
lea edx, [ebp - 0x1c]
mov eax, dword [0x587b70]
mov eax, dword [eax]
call fcn.00409f18
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.004058a0
je 0x51f8e5
lea edx, [ebp - 0x20]
mov eax, dword [0x58774c]
mov eax, dword [eax]
call fcn.00409f18
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.004058a0
je 0x51f8e5
mov eax, dword [0x587a70]
mov eax, dword [eax]
mov edx, 0x51fb04
call fcn.004058a0
jne 0x51f8e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0x90
mov edx, dword [0x587b70]
mov edx, dword [edx]
call fcn.004050a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0x94
mov edx, dword [0x58774c]
mov edx, dword [edx]
call fcn.004050a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0xa8
mov edx, dword [0x5878e8]
mov edx, dword [edx]
call fcn.004050a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0xac
mov edx, dword [0x587ba4]
mov edx, dword [edx]
call fcn.004050a0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x13c], 0
je 0x51f90d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0x17c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x13c]
call fcn.00404e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0xec
mov edx, dword [ebp - 8]
call fcn.00404e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
call fcn.004fc798
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x154]
mov eax, dword [ecx + 0x12c]
cmp eax, 0xc8
je 0x51f952
cmp eax, 0xce
jne 0x51f9f7
cmp dword [ecx + 0x144], 0
jne 0x51f969
cmp dword [ecx + 0x140], 0x3e8
jbe 0x51f9b9
jmp 0x51f96b
jle 0x51f9b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
mov edx, dword [eax + 0x140]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0x144]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
xor edx, edx
call fcn.0043781c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.00403f7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
call fcn.00403f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51fa70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
xor edx, edx
call fcn.0043781c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.00403f7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
call fcn.00403f7c
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51fa70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
xor edx, edx
call fcn.0043781c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
call fcn.00403f7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
call fcn.00403f7c
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51fa70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51faa2
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040553c
lea eax, [ebp - 0x14]
call fcn.00404e08
lea eax, [ebp - 8]
call fcn.00404e08
ret