Function at 0x10002b30
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
and esp, 0xfffffff8
mov eax, 0x1014
call fcn.10015940
mov eax, dword [0x10042040]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 1
push str.Downloader
mov edi, edx
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x10002bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003cf80
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 7
jbe 0x10002bbb
mov esi, dword [esi]
push 0
push 0x80000000
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x10002c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003cfb0
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 7
jbe 0x10002c24
mov edi, dword [edi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10002c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003cfe4
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x10]
push eax
push 0x1000
lea eax, [esp + 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x10002ce6
nop dword [eax]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002ce6
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002d13
lea eax, [esp + 0x10]
push eax
push 0x1000
lea eax, [esp + 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x10002cb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [esp + 0xc]
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x1003d010
mov ecx, 0x10043430
call fcn.100079f0
add esp, 4
mov ecx, eax
call fcn.10005370
push eax
call fcn.10007c90
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [esp + 0xc]
call esi
mov ecx, dword [esp + 0x101c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10014737
mov esp, ebp
pop ebp
ret