Function at 0x417b74
Capabilities:
Reference http user-agent string
Set http header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x417b7d
xchg dword [ebp - 4], ecx
push ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417dae
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x10]
mov edx, 0x417dc4
call fcn.00404a70
push 0xa0000000
mov eax, dword [ebp - 0x10]
call fcn.00404b84
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b74
push eax
mov eax, dword [ebp - 4]
push eax
call sub.Winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
je 0x417d7e
lea eax, [ebp - 0x10]
mov edx, 0x417f00
call fcn.00404a70
push 0xa0000000
mov eax, dword [ebp - 0x10]
call fcn.00404b84
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b74
push eax
mov eax, dword [ebp - 4]
push eax
call sub.Winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
je 0x417d7e
cmp byte [ebp - 9], 0
je 0x417cb2
cmp dword [ebp + 8], 0
jbe 0x417cb2
lea eax, [ebp - 0x10]
mov edx, 0x417f50
call fcn.00404a70
push 0xa0000000
mov eax, dword [ebp - 0x10]
call fcn.00404b84
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b74
push eax
mov eax, dword [ebp - 4]
push eax
call sub.Winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
je 0x417d7e
push 0x417f80
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0040a784
push dword [ebp - 0x20]
push 0x417f98
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040475c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
call fcn.00404b64
push 0xa0000000
mov eax, dword [ebp - 0x10]
call fcn.00404b84
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b74
push eax
mov eax, dword [ebp - 4]
push eax
call sub.Winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
je 0x417d7e
cmp dword [ebp - 8], 0
je 0x417d7a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x417d7a
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00404664
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040b064
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.00404b64
lea eax, [ebp - 0x30]
mov edx, dword [0x424e80]
mov edx, dword [edx]
call fcn.00404b64
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
call fcn.00404c40
je 0x417d6e
push dword [ebp - 0x10]
push 0x417fa0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x18]
push dword [ebp - 0x34]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404bf8
push 0xa0000000
mov eax, dword [ebp - 0x10]
call fcn.00404b84
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404b74
push eax
mov eax, dword [ebp - 4]
push eax
call sub.Winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
je 0x417d7e
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x417cd8
mov byte [ebp - 0xa], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417db5
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404a28
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004043f0
lea eax, [ebp - 0x10]
call fcn.00404a10
ret