Function at 0x4050c0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411217
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x240], edx
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x22c], 0x200
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x230], 0xbbc57ed8
mov edi, dword [eax]
mov eax, dword [edi + 0x530]
test al, 1
jne 0x40519c
or eax, 1
mov dword [edi + 0x530], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 1
movlpd qword [ebp - 0x23c], xmm0
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
mov byte [edi + 0x508], 1
mov al, byte [ebp + ecx - 0x230]
mov byte [ecx + edi + 0x504], al
add ecx, 1
adc edx, 0
jne 0x40518b
cmp ecx, 4
jb 0x405170
push 0x413180
call fcn.0040fe53
add esp, 4
mov byte [ebp - 4], 0
lea esi, [edi + 0x504]
mov ecx, esi
call fcn.0040d3b0
push esi
lea eax, [ebp - 0x1c]
push 5
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x40530d
push 0
push 0
push 3
push 0
push 0
push 0x50
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
je 0x4052fc
mov eax, dword [edi + 0x14c]
mov dword [ebp - 0x228], 0xed71453f
mov dword [ebp - 0x224], 0x7e738406
mov byte [ebp - 0x220], 0x77
test al, 1
jne 0x405278
or eax, 1
mov dword [edi + 0x14c], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movlpd qword [ebp - 0x234], xmm0
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x234]
mov byte [edi + 0x2b9], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x228]
mov byte [ecx + edi + 0x2b0], al
add ecx, 1
adc edx, 0
jne 0x40526b
cmp ecx, 9
jb 0x405250
push 0x413140
call fcn.0040fe53
add esp, 4
lea esi, [edi + 0x2b0]
mov ecx, esi
call fcn.0040d350
push 0
push 0x8404f700
push 0
push 0
push esi
push dword [ebp - 0x240]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x4052fc
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, dword [ebp - 0x244]
lea eax, [ebp - 0x230]
push eax
push 0x64
push edi
push esi
mov dword [ebp - 0x230], 0x64
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x230]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [edi + eax], 0
call esi
push ebx
call esi
mov eax, dword [ebp - 0x238]
jmp 0x405313
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov eax, dword [ebp - 0x238]
jmp 0x405313
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fb0d
mov esp, ebp
pop ebp
ret