Function at 0x41dbf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cecad
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
push ebx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x41dcad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2d1
lea eax, [ebp - 0x108]
push eax
mov ebx, str.env.cpp
call fcn.00407320
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x41dc87
lea edi, [esi + 0x10]
test edi, edi
je 0x41dc5e
lea eax, [esi + 0x20]
jmp 0x41dc60
xor eax, eax
push str.ERROR:
push eax
call fcn.00409b50
add esp, 8
test edi, edi
je 0x41dc77
lea eax, [esi + 0x20]
jmp 0x41dc79
xor eax, eax
push str.application_is_not_specified
push eax
call fcn.00409b50
add esp, 8
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.004073f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x38
lea ecx, [ebp - 0x4c]
push ebx
push ecx
call fcn.00483200
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x4c], 0x140
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], str.open
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41dd69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2e1
lea ecx, [ebp - 0x108]
push ecx
mov ebx, str.env.cpp
call fcn.00407320
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x41dc87
lea esi, [ebx + 0x10]
test esi, esi
je 0x41dd2b
lea eax, [ebx + 0x20]
jmp 0x41dd2d
xor eax, eax
push str.ERROR:
push eax
call fcn.00409b50
add esp, 8
test esi, esi
je 0x41dd44
lea eax, [ebx + 0x20]
jmp 0x41dd46
xor eax, eax
push str.failed_to_ShellExecuteEx_for:
push eax
call fcn.00409b50
add esp, 8
test esi, esi
je 0x41dd61
lea eax, [ebx + 0x20]
push edi
jmp 0x41dc7e
xor eax, eax
push edi
jmp 0x41dc7e
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0xd], bl
cmp eax, ebx
jne 0x41ddbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2ea
lea edx, [ebp - 0x108]
push edx
mov ebx, str.env.cpp
call fcn.00407320
mov esi, eax
mov dword [ebp - 4], 2
call fcn.004210f0
mov esi, eax
call fcn.00421280
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.004073f0
jmp 0x41dfbe
push 0x927c0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x41de2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2f1
lea eax, [ebp - 0x108]
push eax
mov ebx, str.env.cpp
call fcn.00407320
mov esi, eax
mov dword [ebp - 4], 3
call fcn.004210f0
mov ecx, str.failed_to_wait_process:
mov esi, eax
call fcn.00421400
test eax, eax
je 0x41de14
mov ecx, dword [ebp - 0x18]
push ecx
add eax, 0x20
push eax
call fcn.004217e0
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.004073f0
jmp 0x41dfbe
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x41de90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2f8
lea ecx, [ebp - 0x108]
push ecx
mov ebx, str.env.cpp
call fcn.00407320
mov esi, eax
mov dword [ebp - 4], 4
call fcn.004210f0
mov esi, eax
call fcn.004212c0
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00421240
mov esi, eax
call fcn.00421300
test eax, eax
je 0x41de14
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41de0b
mov eax, dword [ebp - 0x14]
cmp eax, 0x103
jne 0x41dee7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2fe
lea eax, [ebp - 0x108]
push eax
mov ebx, str.env.cpp
call fcn.00407320
mov esi, eax
mov dword [ebp - 4], 5
call fcn.004210f0
mov ecx, str.failed_to_waiting_end_app:
mov esi, eax
call fcn.00421400
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00421240
mov esi, eax
call fcn.00421300
jmp 0x41de03
cmp eax, ebx
je 0x41dfba
cmp eax, 7
jne 0x41df01
call fcn.0041d940
test al, al
jne 0x41dfbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x309
lea edx, [ebp - 0x1c0]
push edx
mov ebx, str.env.cpp
call fcn.00407320
mov esi, eax
mov dword [ebp - 4], 6
call fcn.004210f0
mov esi, eax
call fcn.00421340
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00421240
mov esi, eax
call fcn.00421300
mov esi, eax
test esi, esi
je 0x41df57
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [esi + 0x20]
push ecx
call fcn.004217e0
call fcn.00421380
mov esi, eax
test esi, esi
je 0x41df90
mov edx, dword [ebp - 0x14]
push edx
lea edi, [esi + 0x20]
push edi
call fcn.0040f950
test edi, edi
jne 0x41df77
xor eax, eax
jmp 0x41df7e
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [eax + 0x14], ecx
call fcn.004213c0
test eax, eax
je 0x41dfa6
mov edx, dword [ebp - 0x14]
push edx
add eax, 0x20
push eax
call fcn.0040f950
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 4], 0xffffffff
call fcn.004073f0
jmp 0x41dfbe
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dfcc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret