Function at 0x41faf0
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push ebx
lea eax, [ecx + 0x61858]
xor ebx, ebx
push esi
cmp word [eax], bx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
je 0x41fb17
mov dword [ebp - 4], eax
jmp 0x41fbc3
cmp word [0x437780], bx
jne 0x41fbbc
mov al, byte [0x4387c8]
mov ecx, 0x208
mov byte [ebp - 0x83c], al
xor eax, eax
lea edi, [ebp - 0x83b]
mov dword [ebp - 8], 0x823
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x83c]
push eax
push ebx
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
jne 0x41fbb3
lea eax, [ebp - 0x83c]
test eax, eax
jne 0x41fb6b
xor edi, edi
jmp 0x41fba0
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00427310
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x83c]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x824
push 0x437780
push edi
call fcn.0041c20a
add esp, 0xc
cmp word [0x437780], bx
je 0x41fbc3
mov dword [ebp - 4], 0x437780
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp + 8]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x41fd2a
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
add eax, 0x2348
mov dword [ebp - 4], ebx
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 8], 3
call edi
test eax, eax
pop ecx
je 0x41fc10
mov eax, dword [esi + 0x20]
add eax, 0x2348
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
add eax, 0x2048
push eax
call edi
test eax, eax
pop ecx
je 0x41fc2b
mov eax, dword [esi + 0x20]
add eax, 0x2048
mov dword [ebp + 8], eax
cmp dword [ebp - 4], ebx
jne 0x41fc4b
mov eax, dword [ebp - 0xc]
add eax, 0x60610
push eax
call edi
test eax, eax
pop ecx
je 0x41fc4b
mov eax, dword [ebp - 0xc]
add eax, 0x60610
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x41fc6b
mov eax, dword [ebp - 0xc]
add eax, 0x60710
push eax
call edi
test eax, eax
pop ecx
je 0x41fc6b
mov eax, dword [ebp - 0xc]
add eax, 0x60710
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0x20]
push 1
pop eax
cmp dword [ecx + 4], eax
jne 0x41fc79
mov dword [ebp - 8], eax
push 0x41e251
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebp - 0xc]
push esi
mov eax, dword [esi + 0x20]
push dword [ecx + 0x26d8]
mov cx, word [eax]
add eax, 0x2148
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
push ecx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x41fd2a
mov eax, dword [ebp - 0xc]
add eax, 0x60810
push eax
mov dword [ebp + 8], eax
call edi
test eax, eax
pop ecx
jbe 0x41fd25
cmp dword [ebp + 8], ebx
push 3
pop edi
mov dword [ebp - 0x18], edi
jne 0x41fcda
mov dword [ebp - 0x14], ebx
jmp 0x41fd0d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
add eax, edi
and al, 0xfc
call fcn.00427310
mov edi, esp
push ebx
push ebx
push dword [ebp - 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x26
push dword [esi + 0x14]
mov dword [ebp - 0x10], 0x4387c8
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 1
pop eax
jmp 0x41fd2c
xor eax, eax
lea esp, [ebp - 0x848]
pop edi
pop esi
pop ebx
leave
ret 4