Function at 0x417ce4
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 0x417ced
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 0x417f1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x10]
mov edx, 0x417f34
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 0x417eee
lea eax, [ebp - 0x10]
mov edx, 0x418070
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 0x417eee
cmp byte [ebp - 9], 0
je 0x417e22
cmp dword [ebp + 8], 0
jbe 0x417e22
lea eax, [ebp - 0x10]
mov edx, 0x4180c0
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 0x417eee
push 0x4180f0
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0040a784
push dword [ebp - 0x20]
push 0x418108
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 0x417eee
cmp dword [ebp - 8], 0
je 0x417eea
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
test eax, eax
jl 0x417eea
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 0x417ede
push dword [ebp - 0x10]
push 0x418110
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 0x417eee
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x417e48
mov byte [ebp - 0xa], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417f25
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