Function at 0x426230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532ccd
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
push ebx
push esi
push edi
mov eax, dword [0x56adc0]
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 0x4262ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x309
lea eax, [ebp - 0x108]
push eax
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x4262c7
lea edi, [esi + 0x10]
test edi, edi
je 0x42629e
lea eax, [esi + 0x20]
jmp 0x4262a0
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test edi, edi
je 0x4262b7
lea eax, [esi + 0x20]
jmp 0x4262b9
xor eax, eax
push str.application_is_not_specified
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
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.004fbb00
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
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], edx
mov dword [ebp - 0x3c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4263ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x319
lea edx, [ebp - 0x108]
push edx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4262c7
lea esi, [ebx + 0x10]
test esi, esi
je 0x42636e
lea eax, [ebx + 0x20]
jmp 0x426370
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test esi, esi
je 0x426387
lea eax, [ebx + 0x20]
jmp 0x426389
xor eax, eax
push str.failed_to_ShellExecuteEx_for:
push eax
call fcn.00407c44
add esp, 8
test esi, esi
je 0x4263a4
lea eax, [ebx + 0x20]
push edi
jmp 0x4262be
xor eax, eax
push edi
jmp 0x4262be
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0xd], bl
cmp eax, ebx
jne 0x426408
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x322
lea eax, [ebp - 0x108]
push eax
mov ebx, str.env.cpp
call fcn.0041a6b0
push str.failed_to_get_lpExecInfo.hProcess
push ecx
mov esi, eax
mov dword [ebp - 4], 2
call fcn.00405fba
add esp, 4
mov esi, eax
call fcn.00406075
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
jmp 0x42661c
mov ecx, dword [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x42647a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x329
lea edx, [ebp - 0x108]
push edx
mov ebx, str.env.cpp
call fcn.0041a6b0
push str.failed_to_wait_process:
push ecx
mov esi, eax
mov dword [ebp - 4], 3
call fcn.00405fba
add esp, 4
mov esi, eax
call fcn.00406075
test eax, eax
je 0x426463
mov ecx, dword [ebp - 0x18]
push ecx
add eax, 0x20
push eax
call fcn.00428d50
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
jmp 0x42661c
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 0x4264e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x330
lea ecx, [ebp - 0x108]
push ecx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 4
call fcn.00405fba
mov ecx, str.failed_to_get_exit_code_for_app:
mov esi, eax
call fcn.004289e0
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00405fde
mov esi, eax
call fcn.00428920
test eax, eax
je 0x426463
mov edx, dword [ebp - 0x18]
push edx
jmp 0x42645a
mov eax, dword [ebp - 0x14]
cmp eax, 0x103
jne 0x42653b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x336
lea eax, [ebp - 0x108]
push eax
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 5
call fcn.00405fba
mov ecx, str.failed_to_waiting_end_app:
mov esi, eax
call fcn.004289e0
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00405fde
mov esi, eax
call fcn.00428920
jmp 0x426452
cmp eax, ebx
je 0x426618
cmp eax, 7
jne 0x426555
call fcn.00425f80
test al, al
jne 0x42661c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x341
lea edx, [ebp - 0x1c0]
push edx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 6
call fcn.00405fba
mov esi, eax
call fcn.00428960
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00405fde
mov esi, eax
call fcn.00428920
mov esi, eax
test esi, esi
je 0x4265ab
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [esi + 0x20]
push ecx
call fcn.00428d50
push str._exitcode:
call fcn.00406075
mov esi, eax
test esi, esi
je 0x4265e9
mov edx, dword [ebp - 0x14]
push edx
lea edi, [esi + 0x20]
push edi
call fcn.00422730
test edi, edi
jne 0x4265d0
xor eax, eax
jmp 0x4265d7
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
push str._exitcodehex:
call fcn.00406075
test eax, eax
je 0x426604
mov edx, dword [ebp - 0x14]
push edx
add eax, 0x20
push eax
call fcn.00422730
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
jmp 0x42661c
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42662a
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