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

Disassembly:
push 0x1c0
mov eax, 0x589f4c
call fcn.00475b46
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1bc], ecx
test eax, eax
jne 0x41a3de
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov ecx, ebx
mov dword [edi + 0x10], ebx
mov byte [edi], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a3c7
sub ecx, edx
push ecx
push ebx
mov ecx, edi
call fcn.00407e18
jmp 0x41a664
lea eax, [ebp - 0x1b8]
push 0x58daf8
push eax
call fcn.0041a22f
pop ecx
pop ecx
mov esi, dword [ebp - 0x1b8]
xor ebx, ebx
push 0x64
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00422536
push ebx
mov ecx, esi
call fcn.00422543
push 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.0048d110
add esp, 0xc
mov dword [ebp - 0x1c0], 0x104
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x10000001
call sub.urlmon.dll_ObtainUserAgentString
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x178], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a463
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x178]
call fcn.00407e18
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1ac], ebx
call fcn.004068ff
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x130], str.User_Agent
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
call fcn.00406983
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1b0]
call fcn.0041a100
push eax
add eax, 0x10
lea ecx, [ebp - 0x1b0]
push eax
push ebx
lea eax, [ebp - 0x1cc]
push eax
call fcn.004042ec
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 2
call fcn.00407c6b
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x1b1]
push eax
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1c8], ecx
push eax
call fcn.0041a064
mov ecx, esi
call fcn.0042244f
call fcn.0041a94d
test al, al
je 0x41a57b
push 0xe
push str.127.0.0.1:8888
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], bl
call fcn.00407e18
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0042247e
lea ecx, [ebp - 0x12c]
call fcn.00407c6b
push 0xf
pop eax
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x148], bl
mov edx, dword [ebp - 0x1c4]
mov ecx, edx
mov dword [ebp - 0x150], ebx
mov byte [ebp - 0x160], bl
mov byte [ebp - 4], 5
mov dword [ebp - 0x14c], eax
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a5b1
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x160]
call fcn.00407e18
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1a8]
mov ecx, esi
push eax
call fcn.004225b7
mov ecx, dword [ebp - 0x1bc]
mov eax, dword [ebp - 0x1a8]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x41a5f6
mov dword [ecx], eax
cmp eax, 0xc8
jne 0x41a60f
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x148]
call fcn.00405bfb
lea eax, [ebp - 0x148]
mov ecx, edi
push eax
call fcn.004052f7
lea ecx, [ebp - 0x1a8]
call fcn.0041a323
lea ecx, [ebp - 0x160]
call fcn.00407c6b
lea ecx, [ebp - 0x148]
call fcn.00407c6b
lea ecx, [ebp - 0x1b0]
call fcn.0040581d
lea ecx, [ebp - 0x178]
call fcn.00407c6b
test esi, esi
je 0x41a664
push esi
lea ecx, [ebp - 0x1b8]
call fcn.0041a33f
mov eax, edi
call fcn.00475af0
ret