Function at 0x408efb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x42300c]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x1c], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
call fcn.0040a26e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
cmp byte [eax + 4], 0
je 0x408f9b
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
push dword [esp + 0x28]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [esp + 0x38]
test eax, eax
je 0x408f9b
xor eax, eax
inc eax
jmp 0x409028
push 2
mov edx, esi
mov ecx, str.CreateProcessA
call fcn.00402802
pop ecx
call fcn.0040a26e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
cmp dword [eax], 1
jle 0x409026
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
push 1
push 0x10
pop edx
mov dword [esp + 0x2c], eax
call fcn.0040a3e6
pop ecx
test al, al
je 0x40901c
call fcn.0040a38d
mov dword [esp + 0x34], eax
test eax, eax
je 0x40901c
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x10], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x409002
call fcn.0040a7dd
mov edi, eax
test edi, edi
je 0x40901c
test esi, esi
je 0x40903f
mov ecx, esi
call fcn.0040a7dd
mov ebx, eax
test ebx, ebx
jne 0x40903f
mov ecx, edi
xor edx, edx
call fcn.0040aa44
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c535
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x409063
call fcn.0040a7dd
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x409067
xor edx, edx
mov ecx, edi
call fcn.0040aa44
mov ecx, ebx
jmp 0x409015
mov ecx, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x409076
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
jmp 0x40907a
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x409087
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
jmp 0x40908b
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x409098
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
jmp 0x40909c
mov dword [esp + 0x14], esi
lea eax, [esp + 0x78]
mov dword [esp + 0x18], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4090c4
cmp eax, 0x104
lea ecx, [esp + 0x78]
cmovae ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
push 0x34
push esi
mov dword [esp + 0x34], ecx
mov eax, dword [ecx + 8]
add eax, ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x4c]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x38], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x34], 0x10
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004095d2
add esp, 0x18
xor edx, edx
mov ecx, edi
mov esi, eax
call fcn.0040aa44
xor edx, edx
mov ecx, ebx
call fcn.0040aa44
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.0040aa44
test esi, esi
jne 0x40901c
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x4c], esi
jne 0x409026
mov edx, dword [esp + 0x40]
mov ecx, str.CreateProcessA
call fcn.0040291c
jmp 0x408f93