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

Disassembly:
mov eax, 0x182c
call fcn.00417e10
mov eax, dword [0x425074]
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.004056c0
push ebp
mov ecx, ebx
call fcn.00408180
test eax, eax
jne 0x407c39
mov eax, SysReAllocStringLen
jmp 0x407e86
mov ecx, ebp
call fcn.00407990
test eax, eax
je 0x407e83
cmp dword [ebp + 0x40], 0
je 0x407c5f
mov esi, ebp
call fcn.004082c0
mov eax, 2
jmp 0x407e86
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 8]
push 0
push 0x4600010
push 0x426738
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 0x407e73
mov ebx, dword [esp + 0x1848]
push ebx
call fcn.0040b3f1
add esp, 4
push ebx
mov esi, eax
push 0
push esi
call fcn.00411980
mov eax, dword [esp + 0x2c]
add esp, 0xc
push ebx
push eax
push esi
call fcn.00411e70
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 0x407d0f
call fcn.0040a94d
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebp
mov dword [ebp + 0x50], eax
call fcn.004082c0
mov eax, dword [ebp + 0x50]
sub eax, 0x2ee2
neg eax
sbb eax, eax
and eax, 0x7ffffffa
add eax, 0x80000005
jmp 0x407e86
call fcn.0040a94d
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 0x407e73
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x407dc8
cmp eax, 0x12c
jbe 0x407e7c
cmp eax, 0x12e
ja 0x407e7c
push 0x800
lea eax, [esp + 0x2e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x34], dx
call fcn.00411980
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 0x407e73
lea edx, [esp + 0x28]
lea edi, [ebp + 0x48]
call fcn.004055a0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0xc], ebx
lea eax, [ebx + 1]
jmp 0x407e86
cmp dword [ebp + 0x40], ebx
jne 0x407c4e
push 0x1000
lea edx, [esp + 0x834]
push ebx
push edx
call fcn.00411980
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 0x407c4e
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 0x407e73
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407e4d
mov ecx, dword [edi]
add ecx, eax
cmp ecx, ebx
ja 0x407e4d
push eax
lea edx, [esp + 0x834]
push edx
push esi
call fcn.00411e70
mov eax, dword [esp + 0x20]
add esp, 0xc
add esi, eax
add dword [edi], eax
test eax, eax
ja 0x407df3
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 0x407e86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x50], eax
mov esi, ebp
call fcn.004082c0
or eax, 0xffffffff
mov ecx, dword [esp + 0x1834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a920
add esp, 0x182c
ret 0x10