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

Disassembly:
push 0x1a8
mov eax, 0x589fc1
call fcn.00475b46
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x198], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1ac], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1b4], ecx
test eax, eax
je 0x41a945
test edi, edi
je 0x41a945
xor ebx, ebx
push ebx
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401510
lea eax, [ebp - 0x190]
push eax
call fcn.0040a883
lea eax, [ebp - 0x1a4]
mov dword [ebp - 4], ebx
push 0x58daf8
push eax
call fcn.0041a22f
add esp, 0x28
mov esi, dword [ebp - 0x1a4]
mov ecx, esi
push 0x64
mov byte [ebp - 4], 1
call fcn.00422536
push ebx
mov ecx, esi
call fcn.00422543
mov eax, dword [ebp - 0x1ac]
test eax, eax
je 0x41a70a
push eax
mov ecx, esi
call fcn.0042243f
call fcn.0041a94d
test al, al
je 0x41a75c
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], 2
push eax
mov ecx, esi
call fcn.0042247e
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.00407c6b
push 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.0048d110
add esp, 0xc
mov dword [ebp - 0x1a8], 0x104
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x10000001
call sub.urlmon.dll_ObtainUserAgentString
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x148], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a7b2
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.00407e18
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 3
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x19c], ebx
call fcn.004068ff
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 4
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], 5
push eax
lea ecx, [ebp - 0x1a0]
call fcn.0041a100
push eax
add eax, 0x10
lea ecx, [ebp - 0x1a0]
push eax
push ebx
lea eax, [ebp - 0x1b0]
push eax
call fcn.004042ec
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 4
call fcn.00407c6b
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x191]
push eax
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1ac], ecx
push eax
call fcn.0041a064
mov ecx, esi
call fcn.0042244f
lea eax, [ebp - 0x190]
mov ecx, esi
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.004225b7
mov ecx, dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x178]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x41a8a7
mov dword [ecx], eax
cmp eax, 0xc8
jne 0x41a905
mov ecx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x164]
mov dword [ecx], eax
inc eax
push eax
call fcn.00475cf1
mov ecx, dword [ebp - 0x198]
mov dword [edi], eax
mov ecx, dword [ecx]
inc ecx
push ecx
push ebx
push eax
call fcn.0048d110
cmp dword [ebp - 0x160], 0x10
lea eax, [ebp - 0x174]
push dword [ebp - 0x164]
cmovae eax, dword [ebp - 0x174]
push eax
mov eax, dword [ebp - 0x198]
push dword [eax]
push dword [edi]
call fcn.0040cf12
add esp, 0x20
mov bl, 1
lea ecx, [ebp - 0x178]
call fcn.0041a323
lea ecx, [ebp - 0x1a0]
call fcn.0040581d
lea ecx, [ebp - 0x148]
call fcn.00407c6b
test esi, esi
je 0x41a936
push esi
lea ecx, [ebp - 0x1a4]
call fcn.0041a33f
lea ecx, [ebp - 0x190]
call fcn.00407c6b
mov al, bl
jmp 0x41a947
xor al, al
call fcn.00475af0
ret