Function at 0x40cc6f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
and dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [0x42d6b4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40cccc
push str.EEC3:_failed_to_expand_environment_variables
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x428008
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x40ce71
mov eax, dword [ebp - 0x18]
shl eax, 1
push eax
push 8
call fcn.0040b8e3
push eax
call dword [0x42d690]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40ccfb
push str.EEC3:_failed_to_allocate_memory_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x40ce71
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040d15d
pop ecx
pop ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [0x42d6b4]
cmp dword [ebp - 0x18], eax
je 0x40cd65
push str.EEC3:_failed_to_expand_environment_variables2
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x428008
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040d028
mov al, byte [ebp - 0xd]
jmp 0x40ce71
push 0
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.PATH
call dword [0x42d6f8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40cda3
push str.EEC3:_failed_to_get_env_vars_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 0xe], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040d028
mov al, byte [ebp - 0xe]
jmp 0x40ce71
mov eax, dword [ebp - 0x18]
shl eax, 1
push eax
push 8
call fcn.0040b8e3
push eax
call dword [0x42d690]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40cde7
push str.EEC3:_failed_to_allocate_memory2_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 0xf], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040d028
mov al, byte [ebp - 0xf]
jmp 0x40ce71
mov esi, dword [ebp - 0x18]
dec esi
push dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.PATH
call dword [0x42d6f8]
cmp esi, eax
je 0x40ce22
push str.EEC3:_failed_to_aget_env_vars2_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 0x10], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040d028
mov al, byte [ebp - 0x10]
jmp 0x40ce71
push 0x427560
call dword [0x42d6d0]
test eax, eax
je 0x40ce58
call fcn.0040cc1e
movzx eax, al
test eax, eax
je 0x40ce58
push dword [ebp - 0x1c]
push str.PATH
call dword [0x42d6a4]
test eax, eax
je 0x40ce58
mov dword [ebp - 0x20], 1
jmp 0x40ce5c
and dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov byte [ebp - 0x11], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040d028
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret