Function at 0x40bf67
Capabilities:
Get common file path

Disassembly:
push 0x30
mov eax, 0x43ee03
call fcn.0041ef4d
mov edi, ecx
mov esi, 0x48d7fc
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x24], 1
call fcn.00405a79
mov dword [ebp - 4], 1
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x28], 1
call fcn.00405a79
mov byte [ebp - 4], 3
xor ebx, ebx
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], ebx
call fcn.00405a79
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 6
push 0x2001f
push dword [0x489134]
lea ecx, [ebp - 0x3c]
push 0x80000001
call fcn.00401712
cmp eax, ebx
jne 0x40c0c5
lea eax, [ebp - 0x24]
push eax
push str.showWelcome
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.00404723
lea eax, [ebp - 0x10]
push eax
push str.path
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.00408922
lea eax, [ebp - 0x28]
push eax
push str.recurse
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.00404723
lea eax, [ebp - 0x14]
push eax
push str.filter
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.00408922
push esi
lea ecx, [ebp - 0x1c]
call fcn.00405a79
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1c]
push eax
push str.outputType
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.00408922
mov ebx, dword [ebp - 0x1c]
test al, al
je 0x40c0b9
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00418e1e
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
push str.outputFileName
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.00408922
push esi
lea ecx, [ebp - 0x20]
call fcn.00405a79
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x20]
push eax
push 0x47a12c
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.00408922
mov esi, dword [ebp - 0x20]
test al, al
je 0x40c0ad
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.00418e57
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea ecx, [esi - 0x10]
call fcn.004039ac
mov byte [ebp - 4], 6
lea ecx, [ebx - 0x10]
call fcn.004039ac
lea ecx, [ebp - 0x3c]
call fcn.0040168f
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx - 0xc]
test eax, eax
jne 0x40c0fd
push 0x105
lea ecx, [ebp - 0x10]
call fcn.004065d4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004059b3
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jne 0x40c11f
mov esi, 0x441570
push esi
call fcn.00420451
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004073f5
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x24]
mov ecx, edi
call fcn.00418dc4
push ebx
mov ecx, edi
call fcn.00419c9b
push dword [ebp - 0x28]
mov ecx, edi
call fcn.00418dd3
push esi
mov ecx, edi
call fcn.00419cc0
push dword [ebp - 0x2c]
mov ecx, edi
call fcn.00418de2
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00419ce5
push dword [ebp - 0x30]
mov ecx, edi
call fcn.00418df1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0040168f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004039ac
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.004039ac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.004039ac
call fcn.0041f025
ret