Function at 0x404060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be9f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov dword [ebp - 4], 0
call fcn.0040dfe0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4042ed
lea ecx, [ebp + 8]
call fcn.00406230
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x64]
push eax
call fcn.00404000
add esp, 4
mov byte [ebp - 4], 1
push str.yourfile.exe
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.0040aa30
add esp, 0xc
mov byte [ebp - 4], 2
push 0x40aa00
lea eax, [ebp - 0x48]
push eax
push str.Downloading_file_to:
push 0x4ec5c0
call fcn.0040a710
add esp, 8
push eax
call fcn.0040aac0
add esp, 8
mov ecx, eax
call fcn.00406080
push 1
push 0x40
push 0x20
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x114]
call fcn.00405d40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
call fcn.00405cc0
movzx edx, al
test edx, edx
jne 0x404184
push 0x40aa00
push str.Failed_to_open_file_for_writing.
push 0x4ec6a8
call fcn.0040a710
add esp, 8
mov ecx, eax
call fcn.00406080
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.00404350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00406540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00406540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406540
mov eax, dword [ebp - 0x18]
jmp 0x40433f
mov eax, dword [ebp - 0x1c]
push eax
push 0x2712
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004128e0
add esp, 0xc
push 0x403950
push 0x4e2b
mov edx, dword [ebp - 0x10]
push edx
call fcn.004128e0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x2711
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004128e0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040e040
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404255
push 0x40aa00
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040e9f0
add esp, 4
push eax
push str.curl_easy_perform___failed:
push 0x4ec6a8
call fcn.0040a710
add esp, 8
push eax
call fcn.0040a710
add esp, 8
mov ecx, eax
call fcn.00406080
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.00404350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00406540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00406540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406540
mov eax, dword [ebp - 0x20]
jmp 0x40433f
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040dfc0
add esp, 4
push 1
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00406230
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x20
jle 0x4042a6
push 0x40aa00
push str.File_successfully_downloaded_and_opened.
push 0x4ec5c0
call fcn.0040a710
add esp, 8
mov ecx, eax
call fcn.00406080
jmp 0x4042c4
push 0x40aa00
push str.Failed_to_open_the_downloaded_file.
push 0x4ec6a8
call fcn.0040a710
add esp, 8
mov ecx, eax
call fcn.00406080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.00404350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00406540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00406540
jmp 0x404326
push 0x40aa00
push str.Failed_to_initialize_libcurl.
push 0x4ec6a8
call fcn.0040a710
add esp, 8
mov ecx, eax
call fcn.00406080
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406540
mov eax, dword [ebp - 0x28]
jmp 0x40433f
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406540
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret