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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x370588
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x370864
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00323590
mov eax, dword [0x382d68]
cmp dword [eax], 0
je 0x3705c2
mov eax, ebx
mov edx, dword [0x382d68]
mov edx, dword [edx]
call fcn.003235e4
cmp dword [ebx], 0
je 0x3705e8
mov eax, dword [ebx]
call fcn.003237b0
cmp eax, 0xf5
jg 0x3705e8
mov edx, dword [ebx]
mov eax, 0x37087c
call fcn.00323a9c
dec eax
je 0x37073e
push 0x370884
call fcn.00326a2c
mov esi, eax
test esi, esi
je 0x370605
push 0x370890
push esi
call fcn.003269cc
mov edi, eax
test edi, edi
je 0x370726
mov dword [ebp - 4], 0x400
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00323ae4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00323974
push eax
push 0
call edi
test eax, eax
jne 0x370726
mov edx, dword [ebp - 4]
dec edx
lea eax, [ebp - 8]
call fcn.00323ae4
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.003235e4
mov eax, dword [ebx]
call fcn.003237b0
cmp eax, 0xf5
jle 0x370726
mov edx, dword [ebx]
mov eax, 0x3708b0
call fcn.00323a9c
test eax, eax
je 0x370681
mov eax, ebx
mov edx, 0x3708c0
call fcn.003235e4
jmp 0x370726
mov edx, dword [ebx]
mov eax, 0x370910
call fcn.00323a9c
test eax, eax
je 0x3706a2
mov eax, ebx
mov edx, 0x370924
call fcn.003235e4
jmp 0x370726
mov edx, dword [ebx]
mov eax, 0x370974
call fcn.00323a9c
test eax, eax
je 0x3706c0
mov eax, ebx
mov edx, 0x370988
call fcn.003235e4
jmp 0x370726
mov edx, dword [ebx]
mov eax, 0x3709d8
call fcn.00323a9c
test eax, eax
je 0x3706de
mov eax, ebx
mov edx, 0x3709ec
call fcn.003235e4
jmp 0x370726
mov edx, dword [ebx]
mov eax, 0x370a84
call fcn.00323a9c
test eax, eax
je 0x3706fc
mov eax, ebx
mov edx, 0x370a98
call fcn.003235e4
jmp 0x370726
mov edx, dword [ebx]
mov eax, 0x370b18
call fcn.00323a9c
test eax, eax
je 0x37071a
mov eax, ebx
mov edx, 0x370b2c
call fcn.003235e4
jmp 0x370726
mov eax, ebx
mov edx, 0x3708c0
call fcn.003235e4
mov eax, dword [ebx]
call fcn.003237b0
cmp eax, 0xa
jge 0x37073e
mov eax, ebx
mov edx, 0x3708c0
call fcn.003235e4
lea eax, [ebp - 0xc]
mov edx, dword [ebx]
call fcn.00323ce0
mov eax, dword [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x14]
mov eax, 0x370b80
call fcn.00368448
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00323ce0
mov eax, dword [ebp - 0x10]
push eax
push 0x370b8c
mov eax, dword [0x382d44]
push dword [eax]
push 0x370ba0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00323870
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00323ce0
mov edx, dword [ebp - 0x18]
mov eax, 0x80000002
pop ecx
call fcn.0036717c
lea eax, [ebp - 0x20]
mov edx, dword [ebx]
call fcn.00323ce0
mov eax, dword [ebp - 0x20]
push eax
push 0
lea edx, [ebp - 0x28]
mov eax, 0x370b80
call fcn.00368448
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.00323ce0
mov eax, dword [ebp - 0x24]
push eax
push 0x370b8c
mov eax, dword [0x382d44]
push dword [eax]
push 0x370ba0
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00323870
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.00323ce0
mov edx, dword [ebp - 0x2c]
mov eax, 0x80000001
pop ecx
call fcn.0036717c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x37086b
lea eax, [ebp - 0x30]
call fcn.00323590
lea eax, [ebp - 0x2c]
call fcn.00323b60
lea eax, [ebp - 0x28]
call fcn.00323590
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00323b78
lea eax, [ebp - 0x1c]
call fcn.00323590
lea eax, [ebp - 0x18]
call fcn.00323b60
lea eax, [ebp - 0x14]
call fcn.00323590
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00323b78
lea eax, [ebp - 8]
call fcn.00323590
ret