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

Disassembly:
mov eax, 0x181c
call fcn.100164d0
mov eax, dword [0x10027070]
xor eax, esp
mov dword [esp + 0x1818], eax
mov eax, dword [esp + 0x1824]
push ebx
push ebp
mov ebp, dword [esp + 0x1828]
push esi
push edi
mov edi, dword [esp + 0x183c]
lea esi, [ebp + 0x48]
mov ebx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.10003cb0
mov ecx, ebx
mov ebx, ebp
call fcn.10006900
test eax, eax
jne 0x100063ca
mov eax, SysReAllocString
jmp 0x10006613
mov ecx, ebp
call fcn.10006120
test eax, eax
je 0x10006610
cmp dword [ebp + 0x40], 0
je 0x100063f0
mov esi, ebp
call fcn.10006a40
mov eax, 2
jmp 0x10006613
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 8]
push 0
push 0x4600010
push 0x10028750
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 0x10006600
mov esi, dword [esp + 0x1838]
push esi
call fcn.10009ae5
push esi
mov ebx, eax
push 0
push ebx
call fcn.10010490
mov eax, dword [esp + 0x2c]
push esi
push eax
push ebx
call fcn.10010510
add esp, 0x1c
push esi
push ebx
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 ebx
test eax, eax
jne 0x1000649a
call fcn.10009504
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, ebp
mov dword [ebp + 0x50], eax
call fcn.10006a40
mov eax, dword [ebp + 0x50]
sub eax, 0x2ee2
neg eax
sbb eax, eax
and eax, 0x7ffffffa
add eax, 0x80000005
jmp 0x10006613
call fcn.10009504
mov ecx, dword [ebp + 0xc]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
add esp, 4
xor ebx, ebx
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push 0x20000013
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 4
call esi
test eax, eax
je 0x10006600
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x10006553
cmp eax, 0x12c
jbe 0x10006609
cmp eax, 0x12e
ja 0x10006609
push 0x800
lea eax, [esp + 0x2a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x30], dx
call fcn.10010490
mov eax, dword [ebp + 0xc]
add esp, 0xc
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x21
push eax
mov dword [esp + 0x28], 0x400
call esi
test eax, eax
je 0x10006600
lea edx, [esp + 0x24]
lea edi, [ebp + 0x48]
call fcn.10003b70
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0xc], ebx
lea eax, [ebx + 1]
jmp 0x10006613
cmp dword [ebp + 0x40], ebx
jne 0x100063df
push 0x1000
lea edx, [esp + 0x82c]
push ebx
push edx
call fcn.10010490
mov ebx, dword [edi]
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov dword [edi], 0
mov edi, edi
cmp dword [ebp + 0x40], 0
mov dword [esp + 0x10], 0
jne 0x100063df
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0xfff
lea ecx, [esp + 0x830]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10006600
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100065da
mov ecx, dword [edi]
add ecx, eax
cmp ecx, ebx
ja 0x100065da
push eax
lea edx, [esp + 0x82c]
push edx
push esi
call fcn.10010510
mov eax, dword [esp + 0x1c]
add esp, 0xc
add esi, eax
add dword [edi], eax
test eax, eax
ja 0x10006580
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 0x10006613
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x50], eax
mov esi, ebp
call fcn.10006a40
or eax, 0xffffffff
mov ecx, dword [esp + 0x1828]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100090c2
add esp, 0x181c
ret 0x10