Function at 0x490050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1458
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4e3a20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov esi, dword [edx]
mov edi, dword [edx + 4]
cmp esi, edi
je 0x4900f0
cmp dword [esi + 0x14], 8
jb 0x4900aa
mov edx, dword [esi]
jmp 0x4900ac
mov edx, esi
cmp word [edx], 0
jne 0x4900b6
xor eax, eax
jmp 0x4900d0
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x44], ecx
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4900c0
sub eax, dword [ebp - 0x44]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x40]
call fcn.004846d0
push 1
push 0x4d7a14
lea ecx, [ebp - 0x40]
call fcn.004846d0
add esi, 0x18
cmp esi, edi
jne 0x4900a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x49011b
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.00402a20
lea ecx, [ebp - 0x28]
call fcn.004908a0
test al, al
jne 0x490170
mov eax, dword [0x4e7fdc]
test al, 1
jne 0x490152
or eax, 1
mov dword [0x4e7fdc], eax
mov byte [ebp - 4], 2
call fcn.00404600
push 0x4c27b0
call fcn.004a377d
add esp, 4
mov byte [ebp - 4], 1
push str.Failed_to_remove_file_spec_from_Path
push str.Utilities
push 0x4e7f48
call fcn.00405870
add esp, 0xc
xor bl, bl
jmp 0x4902de
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
jb 0x490193
mov ecx, dword [ebx]
mov dword [ebp - 0x44], ecx
jmp 0x490196
mov dword [ebp - 0x44], ebx
mov eax, dword [0x4e7fdc]
test al, 1
jne 0x4901c1
or eax, 1
mov dword [0x4e7fdc], eax
mov byte [ebp - 4], 3
call fcn.00404600
push 0x4c27b0
call fcn.004a377d
add esp, 4
mov byte [ebp - 4], 1
push esi
push edi
push dword [ebp - 0x44]
push str.Path_to_Process_:_ls_Process_Directory_:_ls_arguments_being_passed_:_ls
push str.Utilities
push 0x4e7f48
call fcn.00405750
push 0x44
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.004a9520
add esp, 0x24
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebx + 0x14], 8
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0x44
movq qword [ebp - 0x54], xmm0
movq qword [ebp - 0x4c], xmm0
jb 0x490222
mov ebx, dword [ebx]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0xa0]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x490291
mov eax, dword [0x4e7fdc]
test al, 1
jne 0x49026f
or eax, 1
mov dword [0x4e7fdc], eax
mov byte [ebp - 4], 4
call fcn.00404600
push 0x4c27b0
call fcn.004a377d
add esp, 4
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
push str.Utilities
push 0x4e7f48
call fcn.00405870
add esp, 0x10
xor bl, bl
jmp 0x4902de
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4e7fdc]
test al, 1
jne 0x4902c5
or eax, 1
mov dword [0x4e7fdc], eax
mov byte [ebp - 4], 5
call fcn.00404600
push 0x4c27b0
call fcn.004a377d
add esp, 4
mov byte [ebp - 4], 1
push str.Success_in_CreateProcess
push str.Utilities
push 0x4e7f48
call fcn.00405750
add esp, 0xc
mov bl, 1
cmp dword [ebp - 0x14], 8
jb 0x4902ef
push dword [ebp - 0x28]
call fcn.004a37d1
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x490314
push dword [ebp - 0x40]
call fcn.004a37d1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret