Function at 0x40c3f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452654
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x46b0b4]
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 edi, dword [ebp + 0x10]
call fcn.00416620
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test al, al
jne 0x40c489
push str.AppLauncher.cpp
push str.wWinMain
push 0xf
push 4
lea ecx, [ebp - 0x74]
call fcn.00407040
mov edx, str.Failed_to_Initialize_Secure_DLL_loading._Error:
mov ecx, dword [eax]
call fcn.0040ee20
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040ba50
sub esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x74]
call fcn.00401190
mov ecx, dword [ebp - 0x74]
call fcn.004074e0
mov eax, dword [ebp - 0x74]
add eax, 0x14
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
test edi, edi
je 0x40c7d3
cmp word [edi], ax
jne 0x40c4ae
xor ecx, ecx
jmp 0x40c4c2
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c4b3
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.004091c0
cmp dword [ebp - 0x48], 0
je 0x40c7d3
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40c4f3
mov eax, dword [ecx]
jmp 0x40c4f5
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x58]
push edx
push eax
call fcn.004090a0
lea ecx, [ebp - 0x70]
call fcn.0040bbf0
add esp, 0x18
lea ecx, [ebp - 0x74]
push str.AppLauncher.cpp
push str.wWinMain
push 0x1c
push 3
call fcn.00407040
mov edx, str.Argument_received_is_:
mov ecx, dword [eax]
call fcn.00407210
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.0040d880
sub esp, 0xc
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x74]
call fcn.00401190
mov ecx, dword [ebp - 0x74]
call fcn.004074e0
mov eax, dword [ebp - 0x74]
add eax, 0x14
push eax
call ebx
sub esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40c584
mov eax, dword [ecx]
jmp 0x40c586
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x58]
push edx
push eax
call fcn.004090a0
lea ecx, [ebp - 0x40]
call fcn.0040bd90
add esp, 0x18
lea ecx, [ebp - 0x74]
push str.AppLauncher.cpp
push str.wWinMain
push 0x1f
push 3
call fcn.00407040
mov edx, str.Application_to_launch_is_:
mov ecx, dword [eax]
call fcn.00407210
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.0040d880
sub esp, 0xc
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
call fcn.00401190
mov ecx, dword [ebp - 0x74]
call fcn.004074e0
mov eax, dword [ebp - 0x74]
add eax, 0x14
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x30], 0
jne 0x40c64d
push str.AppLauncher.cpp
push str.wWinMain
push 0x22
push 4
lea ecx, [ebp - 0x74]
call fcn.00407040
mov edx, str.Invalid_Exe_Path_given
mov ecx, dword [eax]
call fcn.00407210
sub esp, 0xc
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x74]
call fcn.00401190
mov ecx, dword [ebp - 0x74]
call fcn.004074e0
mov eax, dword [ebp - 0x74]
add eax, 0x14
push eax
call ebx
mov esi, 0x57
jmp 0x40c77f
push ecx
call fcn.0040c320
add esp, 4
mov byte [ebp - 0x75], al
lea ecx, [ebp - 0x28]
call fcn.0040c180
cmp dword [ebp - 0x18], 0
je 0x40c679
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40c696
mov eax, dword [ecx]
jmp 0x40c698
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.004090a0
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40c6c6
mov eax, dword [ecx]
jmp 0x40c6c8
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.004090a0
mov cl, byte [ebp - 0x75]
call fcn.0040bf30
add esp, 0x30
test eax, eax
je 0x40c754
push str.AppLauncher.cpp
push str.wWinMain
push 0x32
push 4
lea ecx, [ebp - 0x7c]
call fcn.00407040
mov edx, str.Failed_to_Execute_the_Exe:
mov ecx, dword [eax]
call fcn.00407210
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.0040d880
mov edx, str._With_Commandline:
mov ecx, eax
call fcn.00407210
lea edx, [ebp - 0x58]
mov ecx, eax
call fcn.0040d880
sub esp, 0xc
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x7c]
call fcn.00401190
mov ecx, dword [ebp - 0x7c]
call fcn.004074e0
mov eax, dword [ebp - 0x7c]
add eax, 0x14
push eax
call ebx
mov esi, 0x57
jmp 0x40c756
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40c76b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409f50
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40c794
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409f50
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x40c7bd
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00409f50
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jmp 0x40c81a
push str.AppLauncher.cpp
push str.wWinMain
push 0x17
push 3
lea ecx, [ebp - 0x74]
call fcn.00407040
mov edx, str.There_is_nothing_to_launch
mov ecx, dword [eax]
call fcn.00407210
sub esp, 0xc
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
call fcn.00401190
mov ecx, dword [ebp - 0x74]
call fcn.004074e0
mov eax, dword [ebp - 0x74]
add eax, 0x14
push eax
call ebx
xor esi, esi
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x40c82f
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00409f50
mov eax, esi
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.0042d012
mov esp, ebp
pop ebp
ret 0x10