Function at 0x405490
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 0x411137
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 + 0x4cc]
test al, 1
jne 0x40556c
or eax, 1
mov dword [edi + 0x4cc], 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 + 0x4c0], 1
mov al, byte [ebp + ecx - 0x230]
mov byte [ecx + edi + 0x4bc], al
add ecx, 1
adc edx, 0
jne 0x40555b
cmp ecx, 4
jb 0x405540
push 0x4130b0
call fcn.0040fca6
add esp, 4
mov byte [ebp - 4], 0
lea esi, [edi + 0x4bc]
mov ecx, esi
call fcn.0040d2d0
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 0x4056dd
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 0x4056cc
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x228], 0xed71453f
mov dword [ebp - 0x224], 0x7e738406
mov byte [ebp - 0x220], 0x77
test al, 1
jne 0x405648
or eax, 1
mov dword [edi + 0xf0], 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 + 0x231], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x228]
mov byte [ecx + edi + 0x228], al
add ecx, 1
adc edx, 0
jne 0x40563b
cmp ecx, 9
jb 0x405620
push 0x413070
call fcn.0040fca6
add esp, 4
lea esi, [edi + 0x228]
mov ecx, esi
call fcn.0040d270
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 0x4056cc
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 0x4056e3
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov eax, dword [ebp - 0x238]
jmp 0x4056e3
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.0040f95d
mov esp, ebp
pop ebp
ret