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

Disassembly:
mov eax, 0x182c
call fcn.00418590
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.00405e40
push ebp
mov ecx, ebx
call fcn.004088d0
test eax, eax
jne 0x408389
mov eax, SysReAllocStringLen
jmp 0x4085d6
mov ecx, ebp
call fcn.004080e0
test eax, eax
je 0x4085d3
cmp dword [ebp + 0x40], 0
je 0x4083af
mov esi, ebp
call fcn.00408a10
mov eax, 2
jmp 0x4085d6
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 0x4085c3
mov ebx, dword [esp + 0x1848]
push ebx
call fcn.0040bb71
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.004120b0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push ebx
push eax
push esi
call fcn.004125a0
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 0x40845f
call fcn.0040b0cd
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebp
mov dword [ebp + 0x50], eax
call fcn.00408a10
mov eax, dword [ebp + 0x50]
sub eax, 0x2ee2
neg eax
sbb eax, eax
and eax, 0x7ffffffa
add eax, 0x80000005
jmp 0x4085d6
call fcn.0040b0cd
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 0x4085c3
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x408518
cmp eax, 0x12c
jbe 0x4085cc
cmp eax, 0x12e
ja 0x4085cc
push 0x800
lea eax, [esp + 0x2e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x34], dx
call fcn.004120b0
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 0x4085c3
lea edx, [esp + 0x28]
lea edi, [ebp + 0x48]
call fcn.00405d20
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0xc], ebx
lea eax, [ebx + 1]
jmp 0x4085d6
cmp dword [ebp + 0x40], ebx
jne 0x40839e
push 0x1000
lea edx, [esp + 0x834]
push ebx
push edx
call fcn.004120b0
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 0x40839e
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 0x4085c3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40859d
mov ecx, dword [edi]
add ecx, eax
cmp ecx, ebx
ja 0x40859d
push eax
lea edx, [esp + 0x834]
push edx
push esi
call fcn.004125a0
mov eax, dword [esp + 0x20]
add esp, 0xc
add esi, eax
add dword [edi], eax
test eax, eax
ja 0x408543
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 0x4085d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x50], eax
mov esi, ebp
call fcn.00408a10
or eax, 0xffffffff
mov ecx, dword [esp + 0x1834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b0a0
add esp, 0x182c
ret 0x10