Function at 0x40caa0
Capabilities:
Create directory
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf88
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov dword [ebp - 0xf84], edx
mov edi, ecx
jmp 0x40cad0
push 0x400
lea eax, [ebp - 0x724]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x724]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [ebp - 0x724]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40cb04
sub edx, ecx
mov ecx, 0x41331c
lea edx, [ebp + edx - 0x724]
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40cb20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea eax, [ebp - 0x324]
push esi
push 0x413328
push eax
call fcn.0040cf20
add esp, 0xc
push 0x1f0003
push 0x413318
call fcn.0040c7b0
push 0x104
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp - 0xf7c]
push 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf7c], 0x44
xor eax, eax
mov dword [ebp - 0xf50], 1
mov word [ebp - 0xf4c], ax
push 0x400
push eax
lea eax, [ebp - 0xf24]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf80], 0
lea eax, [ebp - 0xf80]
push eax
lea eax, [ebp - 0xf24]
push eax
push ecx
call fcn.0040c990
add esp, 0xc
lea eax, [ebp - 0xf24]
push eax
push 0x413340
call fcn.0040c7b0
add esp, 8
cmp dword [ebp - 0xf80], 0
je 0x40cdec
push esi
push 0x413344
lea eax, [ebp - 0xf24]
push eax
lea eax, [ebp - 0x21c]
push 0x413360
push eax
call fcn.0040cf20
add esp, 0x14
lea eax, [ebp - 0x114]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push esi
push 0x41336c
push eax
call fcn.0040cf20
add esp, 0xc
lea eax, [ebp - 0xb24]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x724]
push edi
push eax
lea eax, [ebp - 0xb24]
push 0x413380
push eax
call fcn.0040c450
add esp, 0x10
lea eax, [ebp - 0xb24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x324]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xf80], eax
test eax, eax
je 0x40cdec
lea eax, [ebp - 0x114]
push eax
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
je 0x40cdec
push 0x1000
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40cdec
mov eax, dword [ebp - 0xf84]
lea ecx, [ebp - 0xb24]
mov dword [ebx + 0x34], eax
lea edx, [ebx + 0x38]
mov eax, ecx
mov dword [ebx], 0
mov dword [ebx + 8], edi
sub edx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40cd00
mov eax, dword [ebp + 0xc]
lea edi, [ebx + 0x1d4]
mov esi, dword [ebp + 8]
lea edx, [ebx + 0x2d9]
mov ecx, 0x1e
movups xmm0, xmmword [eax]
mov dword [ebx + 0x1d0], 0x78
movups xmmword [ebx + 0x1c0], xmm0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x10]
lea edi, [ebx + 0x258]
mov ecx, 0x1c
mov dword [ebx + 0x254], 0x70
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x413388
mov byte [ebx + 0x2d8], 8
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40cd62
push 0
mov byte [ebx + 0x2f9], 1
mov dword [ebx + 0x2fa], 0
mov dword [ebx + 0x2fe], 1
mov dword [ebx + 0x302], 0x1600
mov byte [ebx + 0x407], 1
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebx + 0xa0b], eax
lea eax, [ebp - 0xf34]
mov byte [ebx + 0xa13], 2
push eax
lea eax, [ebp - 0xf7c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0xf80]
test eax, eax
jne 0x40cdff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xf2c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e8e5
mov esp, ebp
pop ebp
ret