Function at 0x403fc0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
lea esi, [ebx + 0x14]
mov byte [ebp - 1], 0
mov dword [ebp - 0x24], 0x405254
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], esi
cmp dword [esi + 4], edi
jle 0x403ffe
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], edi
push edi
push edi
push edi
push 1
add ebx, 0x1c
push ebx
mov dword [esi], edi
mov dword [esi + 4], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
je 0x4041ac
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 8]
push eax
push 2
mov edi, 0x2710
push ebx
mov dword [ebp - 8], edi
call esi
push 4
lea ecx, [ebp - 8]
push ecx
push 0x4d
push ebx
mov dword [ebp - 8], 1
call esi
push 4
lea edx, [ebp - 8]
push edx
push 6
push ebx
mov dword [ebp - 8], edi
call esi
push 4
lea eax, [ebp - 8]
push eax
push 5
push ebx
mov dword [ebp - 8], edi
call esi
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 3
push 0
push 0
push 0x50
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4041a5
cmp byte [ebp + 0x1c], 0
mov ecx, 0x405258
je 0x404098
mov ecx, str.POST
push 0
push 0x844cff00
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp + 0x10]
push 0
push str.HTTP_1.1
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x40419b
push 4
lea eax, [ebp - 8]
push eax
push 0x4d
push edi
mov dword [ebp - 8], 1
call esi
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
push eax
push ecx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x404194
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push 0x20000013
push edi
mov byte [ebp - 1], 1
mov dword [ebp - 0x18], 4
call esi
test eax, eax
je 0x404194
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 0xc8
je 0x40412c
test eax, eax
setne byte [ebp - 1]
jmp 0x404194
push 0
lea edx, [ebp - 0x1c]
push edx
add ecx, 4
push ecx
push 0x40000009
push edi
mov dword [ebp - 0x1c], 0x10
call esi
test eax, eax
je 0x404194
mov dword [ebp - 0x14], 0
jmp 0x404155
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push 0x800
lea ecx, [ebp - 0x824]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404194
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404194
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x824]
push edx
mov ebx, eax
call fcn.00403e90
test al, al
jne 0x404152
call fcn.00403f00
mov ebx, dword [ebp - 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20