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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004052c8
xor eax, eax
push ebp
push 0x51340c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5133a2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4f492c]
call fcn.004f5b58
mov edx, dword [ebp - 4]
mov dword [edx + 0x154], eax
mov dl, 1
mov eax, dword [0x41a5ac]
call fcn.00403f4c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x154]
mov dword [edx + 0x188], eax
mov eax, dword [0x587a70]
mov eax, dword [eax]
mov edx, 0x513420
call fcn.004058a0
jne 0x51325b
lea edx, [ebp - 0xc]
mov eax, dword [0x587b70]
mov eax, dword [eax]
call fcn.00409f18
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.004058a0
je 0x51325b
lea edx, [ebp - 0x10]
mov eax, dword [0x58774c]
mov eax, dword [eax]
call fcn.00409f18
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.004058a0
je 0x51325b
mov eax, dword [0x587a70]
mov eax, dword [eax]
mov edx, 0x513420
call fcn.004058a0
jne 0x51325b
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]
mov eax, dword [eax + 0x154]
add eax, 0x104
mov edx, dword [0x5877c8]
mov edx, dword [edx]
call fcn.004050a0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
call fcn.00409ec8
cmp dword [ebp - 0x14], 0
jne 0x51328c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0x110
mov edx, 0x513434
call fcn.00404e5c
jmp 0x5132a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0x110
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xec]
call fcn.00404e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0xfc
mov edx, dword [0x587794]
mov edx, dword [edx]
call fcn.00404e5c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x13c], 0
je 0x5132eb
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]
mov edx, dword [ebp - 4]
mov dword [eax + 0x32c], edx
mov dword [eax + 0x328], 0x512cfc
mov al, byte [0x513470]
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00409ec8
mov eax, dword [ebp - 0x1c]
mov ecx, 0x51347c
mov edx, 0x513488
call fcn.0040feec
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00404ea0
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00409ec8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
add eax, 0xec
call fcn.00404e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
call fcn.004fc798
xor eax, eax
push ebp
push 0x51338e
push dword fs:[eax]
mov dword fs:[eax], esp
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 0x513398
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5133dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513413
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404e2c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040553c
lea eax, [ebp - 8]
call fcn.00404e08
ret