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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423858
mov eax, dword fs:[0]
push eax
mov eax, 0x3534
call fcn.0041f0d0
mov eax, dword [0x42f050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [ebp - 0x34f0]
mov dword [ebp - 4], ebx
call fcn.004015e3
push 2
pop edi
push 4
pop esi
push esi
push dword [0x4280c0]
lea eax, [ebp - 0x34f0]
push 0x21
push eax
mov dword [ebp - 0x10a0], edi
mov dword [ebp - 0x109c], esi
mov word [ebp - 0x10a4], 0x50
call fcn.0040dcf3
push eax
call fcn.00404f09
add esp, 0x14
lea eax, [ebp - 0x34f0]
call fcn.004015e3
lea eax, [ebp - 0x34f0]
call fcn.004015e3
lea eax, [ebp - 0x34f0]
push eax
call fcn.0040124c
push ebx
push ebx
push ebx
push ebx
push str.WinHINet_Example_1.0
call dword [sym.imp.WININET.dll_InternetOpenW]
push ebx
push 0x80000000
push 3
mov dword [ebp - 0x34fc], eax
movzx eax, word [ebp - 0x10a4]
push ebx
push ebx
push eax
lea eax, [ebp - 0x34ae]
push eax
push dword [ebp - 0x34fc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x3500], eax
lea eax, [ebp - 0x20a6]
push eax
lea eax, [ebp - 0x3508]
push eax
mov dword [ebp - 0x3514], 0x428190
mov dword [ebp - 0x3510], ebx
call fcn.0040387b
mov dword [ebp - 0x34f4], eax
lea eax, [ebp - 0x30a8]
push eax
lea eax, [ebp - 0x350c]
push eax
mov byte [ebp - 4], 1
call fcn.0040387b
mov byte [ebp - 4], 2
push dword [ebp - 0x34f4]
lea ecx, [ebp - 0x3504]
push ecx
mov ecx, eax
call fcn.00403b0f
pop ecx
pop ecx
mov eax, dword [ebp - 0x350c]
add eax, 0xfffffff0
call fcn.00404c04
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x3508]
add eax, 0xfffffff0
call fcn.00404c04
push ebx
push 0x84200100
lea eax, [ebp - 0x3514]
push eax
push ebx
push str.HTTP_1.1
push dword [ebp - 0x3504]
push str.POST
push dword [ebp - 0x3500]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push esi
lea ecx, [ebp - 0x34f4]
push ecx
push edi
push eax
mov dword [ebp - 0x34f8], eax
mov dword [ebp - 0x34f4], 0x7d0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edi, eax
cmp edi, ebx
jne 0x4017ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40191b
cmp dword [ebp - 0x34f8], ebx
je 0x40185c
push str.Content_Type:_multipart_form_data__boundary__MULTI_PARTS_FORM_DATA_BOUNDARY_REPORTLOG_r_nConnection:_close_r_n
lea eax, [ebp - 0x34f4]
push eax
call fcn.004036aa
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34f4]
cmp dword [eax - 4], 1
mov edi, dword [ebp + 8]
jle 0x40182e
push dword [eax - 0xc]
lea eax, [ebp - 0x34f4]
push eax
call fcn.00403e32
mov eax, dword [ebp - 0x34f4]
push dword [ebp + 0xc]
push edi
push 0xffffffffffffffff
push eax
push dword [ebp - 0x34f8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea edx, [ebp - 0x34f4]
mov edi, eax
call fcn.00403862
mov eax, dword [ebp - 0x34f4]
add eax, 0xfffffff0
call fcn.00404c04
cmp edi, ebx
je 0x4017e2
push 0x63
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00410b00
add esp, 0xc
push ebx
lea eax, [ebp - 0x3508]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x13
push dword [ebp - 0x34f8]
mov dword [ebp - 0x3508], 0x64
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4018a6
lea eax, [ebp - 0x78]
push eax
call fcn.0040e093
pop ecx
jmp 0x4018ab
mov eax, 0x1f4
cmp eax, 0xc8
jne 0x40191b
jmp 0x4018c0
cmp dword [ebp - 0x3524], ebx
je 0x40196b
push 0x1002
lea eax, [ebp - 0x1080]
push ebx
push eax
call fcn.00410b00
add esp, 0xc
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x353c]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x1080]
mov dword [ebp - 0x3528], eax
push esi
lea eax, [ebp - 0x353c]
push eax
push dword [ebp - 0x34f8]
mov dword [ebp - 0x353c], 0x28
mov dword [ebp - 0x3524], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4018b4
cmp dword [ebp - 0x34f8], ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x401931
push dword [ebp - 0x34f8]
call esi
cmp dword [ebp - 0x3500], ebx
je 0x401941
push dword [ebp - 0x3500]
call esi
cmp dword [ebp - 0x34fc], ebx
je 0x401951
push dword [ebp - 0x34fc]
call esi
mov eax, dword [ebp - 0x3504]
add eax, 0xfffffff0
call fcn.00404c04
push dword [ebp + 8]
call fcn.0040db23
xor eax, eax
jmp 0x4019ba
cmp dword [ebp - 0x34f8], ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x401981
push dword [ebp - 0x34f8]
call esi
cmp dword [ebp - 0x3500], ebx
je 0x401991
push dword [ebp - 0x3500]
call esi
cmp dword [ebp - 0x34fc], ebx
je 0x4019a1
push dword [ebp - 0x34fc]
call esi
mov eax, dword [ebp - 0x3504]
add eax, 0xfffffff0
call fcn.00404c04
push dword [ebp + 8]
call fcn.0040db23
xor eax, eax
inc eax
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040db28
leave
ret