Function at 0x1006ac10
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x100e8220
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x2c], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], 0xffffffff
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x1006ae3a
cmp edi, ebx
je 0x1006ae3a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006ac86
sub eax, edx
sar eax, 1
je 0x1006ae3a
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.100c7d20
mov eax, edi
lea ecx, [ebp]
call fcn.10008bf0
push 0x5c
lea ecx, [ebp]
push ecx
call fcn.100c747a
add esp, 0x14
cmp eax, ebx
je 0x1006acc9
mov word [eax], bx
lea edx, [ebp]
push edx
xor ecx, ecx
call fcn.1004a9a0
add esp, 4
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1006ad08
lea eax, [ebp]
push eax
push str.Could_not_create_directory___s_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
push 0x1012ac78
lea edx, [ebp - 0x30]
push edx
call fcn.100c80ad
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x1006ad4d
push edi
push str.Could_not_create_File___s_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
push 0x1012ac78
lea ecx, [ebp - 0x34]
push ecx
call fcn.100c80ad
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
push ebx
push ebx
lea edx, [ebp - 0x18]
push edx
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, ebx
je 0x1006ae17
mov eax, dword [ebp - 0x18]
push eax
push str.Available_Size___d
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x1006ad97
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x1006ae8e
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x1006adbc
mov dword [ebp - 0x14], 0x7a
mov dword [ebp - 4], 0xffffffff
jmp 0x1006ae8e
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1006add7
push str.Read_file_data_from_URL_fail__
jmp 0x1006ae0a
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x1006aded
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x1006ae8e
mov dword [ebp - 0x28], ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1006ae29
push str.Write_file_data_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1006ae8e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x1006ad50
mov eax, 0x57
jmp 0x1006aeb9
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006aea4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x1006aeaf
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4