Function at 0x40d292
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x39c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x398], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x394], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0x3a8], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x3a4], eax
lea edi, [ebp - 0x3b8]
xor eax, eax
stosd dword es:[edi], eax
push 0x44
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3fc]
push eax
call fcn.004e4da0
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push 0
push eax
call fcn.004e4da0
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e4da0
push esi
call fcn.0049f486
add esp, 0x28
test eax, eax
je 0x40d337
xor eax, eax
jmp 0x40d619
test ebx, ebx
jne 0x40d35e
xor eax, eax
mov dword [ebp - 0x3fc], 0x44
mov dword [ebp - 0x3d0], 1
lea ebx, [ebp - 0x3fc]
mov word [ebp - 0x3cc], ax
mov eax, dword [ebp - 0x3a0]
lea edi, [ebp - 0x3b8]
test eax, eax
push 0x104
cmovne edi, eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004a11a5
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ee800
pop ecx
mov edx, 0x5112c4
mov ecx, 0x5096f0
cmp byte [ebp + eax - 0x109], 0x2e
lea eax, [ebp - 0x108]
cmove ecx, edx
push ecx
push eax
call fcn.004a10b8
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
add esp, 0x10
test eax, eax
je 0x40d4b9
push 0x80
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.004e4da0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004ee4d0
lea eax, [ebp - 0x20c]
push eax
call fcn.004a025a
add esp, 0x18
lea eax, [ebp - 0x28c]
push 0xa
push eax
call fcn.004ee499
mov ecx, 0x8ae
cdq
idiv ecx
add edx, ecx
push edx
call fcn.004ee936
push 0
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x287], 0
push eax
push 0x5096f0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004a05e9
push 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042c26e
add esp, 0x2c
test eax, eax
jne 0x40d4b9
push 0x4b0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042c26e
add esp, 0xc
test eax, eax
jne 0x40d4b9
push str._GetLastError_
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x39c]
push esi
push str.:8:CreateProcessExe___s_____s___will_FAIL:_An_alternate_version_of_the_EXE_will_be_run:_The_file___s__could_not_be_renamed_to___s_:__s
call fcn.004255b9
add esp, 0x18
mov byte [ebp - 0x20c], 0
push edi
push ebx
push dword [ebp - 0x3a4]
mov ebx, dword [ebp - 0x39c]
push dword [ebp - 0x3a8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x394]
push dword [ebp - 0x398]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x394], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0049f486
pop ecx
test eax, eax
jne 0x40d5cf
push 0x104
push eax
lea eax, [ebp - 0x390]
push eax
call fcn.004e4da0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x390]
push eax
call fcn.004ee4d0
lea eax, [ebp - 0x390]
push eax
call fcn.004a0109
lea eax, [ebp - 0x108]
push eax
call fcn.004a025a
lea eax, [ebp - 0x20c]
push eax
call fcn.004a025a
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0049fcaa
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042c26e
add esp, 0x34
test eax, eax
jne 0x40d5cf
push 0x2ee
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042c26e
add esp, 0xc
test eax, eax
jne 0x40d5cf
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
push str.:8:CreateProcessExe___s_____s___encountered_a_problem:_The_file___s__could_not_be_reverse_renamed_back_to___s_:__s
call fcn.004255b9
add esp, 0x18
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x3b8]
cmp edi, eax
jne 0x40d613
push 0x1a83
mov edi, str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_Console.c
mov esi, str.CreateProcessExe
push edi
push esi
push dword [ebp - 0x3b4]
call fcn.00426fac
push 0x1a84
push edi
push esi
push dword [ebp - 0x3b8]
call fcn.00426fac
mov eax, dword [ebp - 0x394]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret