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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x51552d
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
mov eax, dword [ebp - 8]
call fcn.004052c8
mov eax, dword [ebp - 0xc]
call fcn.004052c8
mov eax, dword [ebp + 8]
call fcn.004052c8
xor eax, eax
push ebp
push 0x5158b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x51583e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4f4fec]
call fcn.004f6218
mov edx, dword [ebp - 4]
mov dword [edx + 0x190], eax
mov dl, 1
mov eax, dword [0x41ac6c]
call fcn.00403f4c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x190]
mov dword [edx + 0x188], eax
mov eax, dword [0x58feb8]
mov eax, dword [eax]
mov edx, 0x5158cc
call fcn.004058a0
jne 0x51569c
lea edx, [ebp - 0x10]
mov eax, dword [0x58ffb4]
mov eax, dword [eax]
call fcn.00409f18
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.004058a0
je 0x51569c
lea edx, [ebp - 0x14]
mov eax, dword [0x58fb9c]
mov eax, dword [eax]
call fcn.00409f18
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.004058a0
je 0x51569c
mov eax, dword [0x58feb8]
mov eax, dword [eax]
mov edx, 0x5158cc
call fcn.004058a0
jne 0x51569c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0x90
mov edx, dword [0x58ffb4]
mov edx, dword [edx]
call fcn.004050a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0x94
mov edx, dword [0x58fb9c]
mov edx, dword [edx]
call fcn.004050a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0xa8
mov edx, dword [0x58fd34]
mov edx, dword [edx]
call fcn.004050a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0xac
mov edx, dword [0x58ffe8]
mov edx, dword [edx]
call fcn.004050a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0x104
mov edx, dword [0x58fc14]
mov edx, dword [edx]
call fcn.004050a0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
call fcn.00409ec8
cmp dword [ebp - 0x18], 0
jne 0x5156cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0x110
mov edx, 0x5158e0
call fcn.00404e5c
jmp 0x5156e9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
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 + 0x190]
add eax, 0xfc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xe8]
call fcn.00404e5c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x13c], 0
je 0x51572d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
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 + 0x190]
mov edx, dword [ebp - 4]
mov dword [eax + 0x32c], edx
mov dword [eax + 0x328], 0x514ef4
mov al, byte [0x51591c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00409ec8
mov eax, dword [ebp - 0x20]
mov ecx, 0x515928
mov edx, 0x515934
call fcn.004105ac
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404ea0
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.00409ec8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0xec
call fcn.00404e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0x170
mov edx, dword [ebp - 0xc]
call fcn.00404e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
add eax, 0x174
mov edx, dword [ebp + 8]
call fcn.00404e5c
mov eax, dword [ebp - 0xc]
call fcn.0040a5f8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x160], eax
mov dword [ecx + 0x164], edx
mov eax, dword [ebp + 8]
call fcn.0040a5f8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x168], eax
mov dword [ecx + 0x16c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
call fcn.004fce58
xor eax, eax
push ebp
push 0x51582a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
call fcn.00403f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x515878
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5158bc
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404e2c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040553c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404e2c
lea eax, [ebp + 8]
call fcn.00404e08
ret