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

Disassembly:
mov eax, 0x182c
call fcn.10018cb0
mov eax, dword [0x10027074]
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.10003780
mov eax, ebx
mov ebx, ebp
call fcn.10006a00
test eax, eax
jne 0x100064da
mov eax, SysReAllocStringLen
jmp 0x10006727
mov ecx, ebp
call fcn.10006230
test eax, eax
je 0x10006724
cmp dword [ebp + 0x40], 0
je 0x10006500
mov esi, ebp
call fcn.10006ae0
mov eax, 2
jmp 0x10006727
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 8]
push 0
push 0x4600010
push 0x10028710
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 0x10006714
mov esi, dword [esp + 0x1848]
push esi
call fcn.1000ae65
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.10012ec0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push esi
push eax
push ebx
call fcn.10013df0
add esp, 0xc
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 0x100065b0
call fcn.1000a337
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebp
mov dword [ebp + 0x50], eax
call fcn.10006ae0
mov eax, dword [ebp + 0x50]
sub eax, 0x2ee2
neg eax
sbb eax, eax
and eax, 0x7ffffffa
add eax, 0x80000005
jmp 0x10006727
call fcn.1000a337
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 0x10006714
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x10006669
cmp eax, 0x12c
jbe 0x1000671d
cmp eax, 0x12e
ja 0x1000671d
push 0x800
lea eax, [esp + 0x2e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x34], dx
call fcn.10012ec0
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 0x10006714
lea edx, [esp + 0x28]
lea edi, [ebp + 0x48]
call fcn.10003740
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp + 0xc], ebx
lea eax, [ebx + 1]
jmp 0x10006727
cmp dword [ebp + 0x40], ebx
jne 0x100064ef
push 0x1000
lea edx, [esp + 0x834]
push ebx
push edx
call fcn.10012ec0
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 0x100064ef
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 0x10006714
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100066ee
mov ecx, dword [edi]
add ecx, eax
cmp ecx, ebx
ja 0x100066ee
push eax
lea edx, [esp + 0x834]
push edx
push esi
call fcn.10013df0
mov eax, dword [esp + 0x20]
add esp, 0xc
add esi, eax
add dword [edi], eax
test eax, eax
ja 0x10006694
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 0x10006727
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x50], eax
mov esi, ebp
call fcn.10006ae0
or eax, 0xffffffff
mov ecx, dword [esp + 0x1834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a328
add esp, 0x182c
ret 0x10