Function at 0x408480
Capabilities:
Check http status code
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x182c
call fcn.004186a0
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x1824], eax
mov eax, dword [esp + 0x1834]
push ebx
push ebp
mov ebp, dword [esp + 0x1838]
push esi
push edi
mov edi, dword [esp + 0x184c]
lea esi, [ebp + 0x48]
mov ebx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.00405f50
push ebp
mov ecx, ebx
call fcn.00408a20
test eax, eax
jne 0x4084d9
mov eax, SysReAllocStringLen
jmp 0x408726
mov ecx, ebp
call fcn.00408230
test eax, eax
je 0x408723
cmp dword [ebp + 0x40], 0
je 0x4084ff
mov esi, ebp
call fcn.00408b60
mov eax, 2
jmp 0x408726
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 8]
push 0
push 0x4600010
push 0x428738
push 0
push 0
push eax
push str.POST
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x408713
mov ebx, dword [esp + 0x1848]
push ebx
call fcn.0040bc81
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.00412210
mov eax, dword [esp + 0x2c]
add esp, 0xc
push ebx
push eax
push esi
call fcn.00412700
add esp, 0xc
push ebx
push esi
push str.Content_Type:_application_x_www_form_urlencoded
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0xc]
push eax
push str.Content_Type:_application_x_www_form_urlencoded
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push esi
test eax, eax
jne 0x4085af
call fcn.0040b1dd
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebp
mov dword [ebp + 0x50], eax
call fcn.00408b60
mov eax, dword [ebp + 0x50]
sub eax, 0x2ee2
neg eax
sbb eax, eax
and eax, 0x7ffffffa
add eax, 0x80000005
jmp 0x408726
call fcn.0040b1dd
mov ecx, dword [ebp + 0xc]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
add esp, 4
xor ebx, ebx
push ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0x20000013
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
je 0x408713
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x408668
cmp eax, 0x12c
jbe 0x40871c
cmp eax, 0x12e
ja 0x40871c
push 0x800
lea eax, [esp + 0x2e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x34], dx
call fcn.00412210
mov eax, dword [ebp + 0xc]
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x21
push eax
mov dword [esp + 0x2c], 0x400
call esi
test eax, eax
je 0x408713
lea edx, [esp + 0x28]
lea edi, [ebp + 0x48]
call fcn.00405e10
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0xc], ebx
lea eax, [ebx + 1]
jmp 0x408726
cmp dword [ebp + 0x40], ebx
jne 0x4084ee
push 0x1000
lea edx, [esp + 0x834]
push ebx
push edx
call fcn.00412210
mov ebx, dword [edi]
mov esi, dword [esp + 0x30]
add esp, 0xc
mov dword [edi], 0
cmp dword [ebp + 0x40], 0
mov dword [esp + 0x14], 0
jne 0x4084ee
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
push 0xfff
lea ecx, [esp + 0x838]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x408713
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4086ed
mov ecx, dword [edi]
add ecx, eax
cmp ecx, ebx
ja 0x4086ed
push eax
lea edx, [esp + 0x834]
push edx
push esi
call fcn.00412700
mov eax, dword [esp + 0x20]
add esp, 0xc
add esi, eax
add dword [edi], eax
test eax, eax
ja 0x408693
mov byte [esi + 1], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0xc], 0
cmp ebx, dword [edi]
sbb eax, eax
and eax, reloc.OLEAUT32.dll_SysStringLen
jmp 0x408726
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x50], eax
mov esi, ebp
call fcn.00408b60
or eax, 0xffffffff
mov ecx, dword [esp + 0x1834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b1b0
add esp, 0x182c
ret 0x10