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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1498
call fcn.00408970
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00408350
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004010b0
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x5f
push 0x2f
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00408890
add esp, 0x10
mov edx, dword [ebp - 0xc]
lea eax, [edx + edx + 2]
push eax
push 0
call fcn.00403220
push eax
call fcn.00402f70
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
call fcn.00403a10
add esp, 0x18
mov dword [ebp - 0x30], eax
xor edx, edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov word [ecx + eax*2], dx
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov word [ebp + eax - 0x1498], cx
xor edx, edx
mov byte [ebp - 0x11], dl
lea ecx, [ebp - 0x11]
call fcn.00401790
push eax
lea eax, [ebp - 0x1498]
push eax
call fcn.004083b0
add esp, 8
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1498]
push edx
call fcn.004083b0
add esp, 8
mov eax, dword [ebp - 0x24]
push eax
push 0
call fcn.00403220
push eax
call fcn.00402fc0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call fcn.00403220
push eax
call fcn.00402fc0
add esp, 0xc
xor edx, edx
mov byte [ebp - 0x12], dl
lea ecx, [ebp - 0x12]
call fcn.00401800
push eax
lea eax, [ebp - 0x1498]
push eax
call fcn.004083b0
add esp, 8
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x10
push 0x40a3f0
call fcn.004010b0
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x5f
push 0x2f
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00408890
add esp, 0x10
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + ecx + 2]
push edx
push 0
call fcn.00403220
push eax
call fcn.00402f70
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call fcn.00403a10
add esp, 0x18
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call fcn.00403220
push eax
call fcn.00402fc0
add esp, 0xc
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x1498]
push eax
call fcn.004083b0
add esp, 8
mov ecx, dword [ebp - 0x28]
push ecx
push 0
call fcn.00403220
push eax
call fcn.00402fc0
add esp, 0xc
push 0
push 0
push 0
push 0
push str.Mozilla_5.0
call fcn.00403a60
add esp, 0x14
mov dword [ebp - 0x3c], eax
xor edx, edx
mov byte [ebp - 0x13], dl
push 0
push 0
push 3
push 0x409070
push 0x409074
push 0x2328
lea ecx, [ebp - 0x13]
call fcn.00401840
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00403ab0
add esp, 0x20
mov dword [ebp - 0x38], eax
xor ecx, ecx
mov byte [ebp - 0x14], cl
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1498]
push edx
lea ecx, [ebp - 0x14]
call fcn.004018e0
push eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.00403b10
add esp, 0x20
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00403b70
add esp, 0x14
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0
jmp 0x40155e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 8
jge 0x401577
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx*2 + 0x40a3f0]
mov byte [ebp + eax - 0x50], dl
jmp 0x401555
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call fcn.00402ed0
add esp, 0x1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4015a5
xor al, al
jmp 0x401780
mov byte [ebp - 1], 1
cmp dword [ebp - 0x18], 0
jbe 0x4015fe
lea ecx, [ebp - 0x18]
push ecx
push 0x400
lea edx, [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00403bc0
add esp, 0x10
test eax, eax
jne 0x4015d5
mov byte [ebp - 1], 0
jmp 0x4015fe
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403670
add esp, 0x14
test eax, eax
jne 0x4015fc
mov byte [ebp - 1], 0
jmp 0x4015fe
jmp 0x4015a9
mov edx, dword [ebp - 0x34]
push edx
call fcn.00403c10
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
call fcn.00403c10
add esp, 4
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00403c10
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.00403260
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call fcn.00402ed0
add esp, 0x1c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40165c
xor al, al
jmp 0x401780
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004031e0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x401686
mov edx, dword [ebp - 8]
push edx
call fcn.00403260
add esp, 4
xor al, al
jmp 0x401780
mov eax, dword [ebp - 0x20]
push eax
push 0
call fcn.00403220
push eax
call fcn.00402f70
add esp, 0xc
mov dword [ebp - 0x2c], eax
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403010
add esp, 0x14
test eax, eax
jne 0x4016d6
call fcn.004037e0
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 8]
push edx
call fcn.00403260
add esp, 4
xor al, al
jmp 0x401780
mov eax, dword [ebp - 8]
push eax
call fcn.00403260
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x20]
je 0x4016f1
xor al, al
jmp 0x401780
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 8
lea ecx, [ebp - 0x50]
push ecx
call fcn.00408330
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call fcn.00402ed0
add esp, 0x1c
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00403670
add esp, 0x14
cmp eax, 1
jne 0x401750
mov dword [ebp - 0x40], 1
jmp 0x401757
mov dword [ebp - 0x40], 0
mov cl, byte [ebp - 0x40]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
push edx
call fcn.00403260
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
push 0
call fcn.00403220
push eax
call fcn.00402fc0
add esp, 0xc
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret