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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0xffffffffffffffff
push 8
push 0x160147c1
push 0x52010001
call fcn.0040b6b7
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4013f8
mov eax, 0x49d6d4
push eax
push 1
mov ebx, 0x40bf50
call fcn.0040b69f
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40141e
push ebx
call fcn.0040b699
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010c2f
push 0x52010001
push 3
mov eax, 2
mov ebx, 0x470ff0
call fcn.0040b6b1
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401477
push ebx
call fcn.0040b699
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4016a8
push 0xffffffffffffffff
push 8
push 0x16014dea
push 0x52010001
call fcn.0040b6b7
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x49d6dd
push dword [ebp - 0x14]
push 0x49d701
mov ecx, 3
call fcn.0040134b
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4014db
push ebx
call fcn.0040b699
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, 0x49d72e
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
push 1
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.004016d6
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40156c
push ebx
call fcn.0040b699
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40157c
push ebx
call fcn.0040b699
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40158c
push ebx
call fcn.0040b699
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40159c
push ebx
call fcn.0040b699
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4015ac
push ebx
call fcn.0040b699
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4015bc
push ebx
call fcn.0040b699
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4015cc
push ebx
call fcn.0040b699
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4015dc
push ebx
call fcn.0040b699
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4015f0
push ebx
call fcn.0040b699
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x40ca30
call fcn.0040b69f
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x49d7ed
push dword [ebp - 0x14]
push 0x49d7fd
mov ecx, 3
call fcn.0040134b
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x401640
push ebx
call fcn.0040b699
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x401653
mov eax, 0x49d6d4
push eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp + 8]
push 0x30004
push 0x16010c2f
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x4711e0
call fcn.0040b6b1
add esp, 0x34
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4016a0
push ebx
call fcn.0040b699
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x401487
add esp, 0xc
jmp 0x4016b0
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4016c0
push ebx
call fcn.0040b699
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4016d0
push ebx
call fcn.0040b699
add esp, 4
mov esp, ebp
pop ebp
ret 4