Function at 0x4037c0
Capabilities:
Create directory
Create process on windows
Create process suspended
Query environment variable
Terminate process

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x3b0]
lea ecx, [ebp - 0x3b8]
push ebx
lea ebx, [ebp - 0x110]
sub esp, 0x3ec
mov dword [ebp - 0x3b8], eax
mov edx, dword [0x517080]
mov eax, dword [0x51707c]
add edx, eax
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00401920
lea ecx, [ebp - 0x3b8]
sub esp, 8
mov dword [esp + 8], 2
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4bf17d
call fcn.004327f0
sub esp, 0xc
cmp eax, 0xffffffff
je 0x40386d
add eax, 1
mov dword [esp + 8], 0xffffffff
mov ecx, ebx
mov dword [esp + 4], eax
lea eax, [ebp - 0x3b8]
mov dword [esp], eax
call fcn.00433310
sub esp, 0xc
lea ecx, [ebp - 0x3b8]
mov dword [esp], ebx
call fcn.00401f60
mov ecx, ebx
push edi
call fcn.0049dd80
movdqu xmm0, xmmword [0x4bf310]
mov ecx, 0x10
lea edx, [ebp - 0x3c8]
mov eax, ebx
movups xmmword [ebp - 0x3c8], xmm0
call fcn.004019a0
mov eax, dword [ebp - 0x3b4]
mov dword [esp], eax
mov ecx, dword [ebp - 0x3b8]
lea eax, [ebp - 0x3a0]
mov edx, dword [ebp - 0x110]
call fcn.00401e30
mov ecx, ebx
call fcn.0049dd80
mov dword [esp + 4], 8
mov eax, dword [ebp - 0x3a0]
lea ecx, [ebp - 0x208]
mov dword [esp], eax
call fcn.0048ec90
mov esi, dword [ebp - 0x184]
sub esp, 8
test esi, esi
je 0x403aea
mov dword [esp + 4], 4
mov ecx, ebx
mov dword [esp], 0x51707c
call fcn.0048eed0
push ecx
lea eax, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x2fc]
mov dword [esp + 4], 4
mov dword [esp], eax
call fcn.00491110
push edx
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0x2fc]
push edx
mov dword [esp], eax
call fcn.00476030
push eax
mov ecx, ebx
call fcn.0048eb30
lea ecx, [ebp - 0x2fc]
call fcn.00490da0
mov dword [esp], str.appdata
call sub.msvcrt.dll_getenv
lea ecx, [ebp - 0x388]
mov dword [esp], eax
call fcn.00401e70
push eax
lea esi, [ebp - 0x358]
mov eax, esi
call fcn.004020b0
mov dword [esp], 0x4bf0a0
mov ecx, dword [ebp - 0x384]
lea eax, [ebp - 0x370]
mov edx, dword [ebp - 0x388]
call fcn.00401df0
mov ecx, esi
lea edx, [ebp - 0x370]
lea eax, [ebp - 0x340]
call fcn.00402000
lea eax, [ebp - 0x340]
mov ecx, 0x517094
mov dword [esp], eax
call fcn.00401f60
lea ecx, [ebp - 0x340]
push eax
call fcn.0049dd80
lea ecx, [ebp - 0x370]
call fcn.0049dd80
mov ecx, esi
call fcn.0049dd80
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x517094]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push eax
call fcn.004028a0
mov dword [esp], 0x4bf188
mov ecx, dword [0x517098]
lea eax, [ebp - 0x340]
mov edx, dword [0x517094]
call fcn.00401df0
mov dword [esp], 0x4bf09a
mov ecx, esi
call fcn.00401e70
push edi
lea eax, [ebp - 0x340]
mov ecx, 0x517094
mov edx, esi
mov dword [esp], eax
lea eax, [ebp - 0x3a0]
call fcn.00401a70
mov ecx, esi
lea edi, [ebp - 0x33c]
call fcn.0049dd80
lea ecx, [ebp - 0x340]
call fcn.0049dd80
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x340], 0x44
mov dword [esp + 0x24], esi
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x3a0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x403ab9
mov eax, dword [ebp - 0x358]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call esi
push ecx
mov eax, dword [ebp - 0x354]
mov dword [esp], eax
call esi
push edx
jmp 0x403adf
mov dword [esp + 8], 0x17
mov dword [esp + 4], str.Failed_to_execute_file.
mov dword [esp], 0x4bea20
call fcn.004ae240
mov eax, 0x4bea20
call fcn.00401f00
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov byte [0x51703c], 1
mov dword [esp], str.Successd
call fcn.004016f0
lea ecx, [ebp - 0x208]
call fcn.0048f590
lea ecx, [ebp - 0x3a0]
call fcn.0049dd80
lea ecx, [ebp - 0x3b8]
call fcn.0049dd80
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret