Function at 0x47e156
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x531722
call fcn.00513f54
mov ebx, ecx
mov eax, dword [ebx]
mov dword [ebp - 0x134], ebx
call dword [eax + 0x19c]
mov edi, eax
mov eax, dword [ebx + 0xdbc]
xor esi, esi
cmp eax, esi
je 0x47e1ff
push eax
call dword [sym.imp.USER32.dll_IsMenu]
neg eax
sbb eax, eax
neg eax
jne 0x47e197
call fcn.00414104
cmp dword [ebx + 0x120], esi
jne 0x47e1b4
push edi
push dword [ebx + 0xdbc]
mov ecx, 0x58b85c
call fcn.004733b2
test eax, eax
jne 0x47e1ff
call fcn.0047a18b
test eax, eax
je 0x47e1da
mov eax, dword [edi]
push 1
push dword [ebx + 0xdbc]
mov ecx, edi
call dword [eax + 0x410]
test eax, eax
jne 0x47e1ff
xor eax, eax
jmp 0x47e6c1
mov edx, dword [edi]
xor eax, eax
cmp dword [ebx + 0x120], esi
setne al
xor ecx, ecx
cmp eax, esi
sete cl
push ecx
push dword [ebx + 0xdbc]
mov ecx, edi
call dword [edx + 0x410]
jmp 0x47e1cf
call fcn.0042185a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x12c], eax
cmp eax, esi
je 0x47e45a
cmp dword [0x58a5a4], esi
jne 0x47e45a
mov eax, dword [edi + 0xb08]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], eax
cmp eax, esi
je 0x47e45a
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [edi + 0xb04]
call fcn.0041edf4
mov esi, dword [eax]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x47e192
cmp dword [esi + 0x20], 0xe110
jne 0x47e28a
push str.Recent_File
lea ecx, [esi + 0x2c]
call fcn.0042b40d
test eax, eax
je 0x47e2ab
mov esi, dword [esi + 0x24]
mov eax, dword [ebp - 0x120]
and esi, 1
inc dword [ebp - 0x11c]
mov dword [ebp - 0x124], esi
test eax, eax
jne 0x47e247
jmp 0x47e458
push dword [ebp - 0x128]
lea ecx, [edi + 0xb04]
call fcn.0047fd10
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [ebp - 0x12c]
mov byte [ebp + esi - 0x114], 0x5c
xor ebx, ebx
inc esi
cmp dword [eax + 4], ebx
mov byte [ebp + esi - 0x114], 0
mov dword [ebp - 0x118], ebx
jle 0x47e3f8
lea ecx, [ebp - 0x128]
call fcn.0040f5f0
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
push 1
push esi
lea edx, [ebp - 0x114]
push edx
push ebx
lea edx, [ebp - 0x128]
push edx
call dword [eax + 8]
test eax, eax
je 0x47e3cd
lea ecx, [ebp - 0x130]
call fcn.0040f5f0
push dword [ebp - 0x128]
inc dword [ebp - 0x118]
push dword [ebp - 0x118]
lea eax, [ebp - 0x130]
push str._d__s
push eax
mov byte [ebp - 4], 1
call fcn.00410150
add esp, 0x10
push 0
push dword [ebp - 0x130]
lea eax, [ebx + 0xe110]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.0049c43e
push dword [ebp - 0x11c]
mov edx, dword [edi]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call dword [edx + 0x320]
inc dword [ebp - 0x11c]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.0049b22d
mov ecx, dword [ebp - 0x130]
add ecx, 0xfffffff0
call fcn.00401390
mov ecx, dword [ebp - 0x128]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401390
mov eax, dword [ebp - 0x12c]
inc ebx
cmp ebx, dword [eax + 4]
jl 0x47e30e
cmp dword [ebp - 0x118], 0
jne 0x47e452
cmp dword [ebp - 0x124], 0
je 0x47e452
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x47e452
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x120]
lea ebx, [edi + 0xb04]
push eax
mov ecx, ebx
call fcn.0041edf4
mov esi, dword [eax]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x47e192
test byte [esi + 0x24], 1
je 0x47e452
push dword [ebp - 0x128]
mov ecx, ebx
call fcn.0047fd10
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x134]
xor esi, esi
cmp dword [0x58a4b0], esi
je 0x47e664
cmp dword [0x58a5a4], esi
jne 0x47e664
mov eax, dword [edi + 0xb08]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], eax
cmp eax, esi
je 0x47e664
jmp 0x47e4a0
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x120]
lea ebx, [edi + 0xb04]
push eax
mov ecx, ebx
call fcn.0041edf4
mov esi, dword [eax]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x47e192
mov eax, dword [0x58a4b0]
mov ecx, dword [eax + 0x20]
cmp ecx, dword [esi + 0x20]
jne 0x47e613
cmp dword [0x58b940], 0
lea ebx, [eax + 4]
je 0x47e4ee
cmp dword [ebx + 0xc], 0
je 0x47e508
push dword [ebp - 0x12c]
lea ecx, [edi + 0xb04]
call fcn.0047fd10
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x124], 0
jne 0x47e64b
xor esi, esi
cmp dword [ebp - 0x11c], esi
jne 0x47e542
cmp dword [ebx + 0xc], esi
je 0x47e542
cmp dword [edi + 0xb10], esi
je 0x47e542
push dword [ebp - 0x118]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x324]
inc dword [ebp - 0x118]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x124], eax
cmp eax, esi
je 0x47e5d5
lea eax, [ebp - 0x124]
push eax
mov ecx, ebx
call fcn.0041cb7e
mov esi, eax
mov eax, dword [esi + 0x10]
push 1
push eax
call fcn.0044581f
mov ecx, eax
call fcn.0044592f
mov ecx, dword [esi + 4]
mov esi, dword [esi + 0x10]
xor edx, edx
cmp eax, 0xffffffff
setne dl
push edx
push ecx
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 0
push esi
lea ecx, [ebp - 0x21c]
call fcn.0049c43e
push dword [ebp - 0x118]
mov edx, dword [edi]
push eax
mov ecx, edi
mov dword [ebp - 4], 3
call dword [edx + 0x320]
inc dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0049b22d
cmp dword [ebp - 0x124], 0
jne 0x47e553
xor esi, esi
cmp dword [ebp - 0x120], esi
je 0x47e607
push dword [ebp - 0x118]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x324]
inc dword [ebp - 0x118]
mov dword [ebp - 0x11c], 1
test eax, eax
jge 0x47e607
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x124], 1
jmp 0x47e64b
test byte [esi + 0x24], 1
je 0x47e644
cmp dword [ebp - 0x11c], 0
je 0x47e638
push dword [ebp - 0x12c]
mov ecx, ebx
call fcn.0047fd10
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x11c], 1
jmp 0x47e64b
and dword [ebp - 0x11c], 0
inc dword [ebp - 0x118]
cmp dword [ebp - 0x120], 0
jne 0x47e49a
mov ebx, dword [ebp - 0x134]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3a0]
mov esi, eax
test esi, esi
je 0x47e682
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x128]
test eax, eax
jne 0x47e68b
push ebx
call fcn.004297e8
pop ecx
mov esi, eax
test esi, esi
je 0x47e69c
mov eax, dword [edi]
push 0
push esi
mov ecx, edi
call dword [eax + 0x21c]
push ebx
push ebx
call fcn.0041eddb
pop ecx
push eax
call fcn.0047b982
test eax, eax
je 0x47e1d3
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0x150]
xor eax, eax
inc eax
call fcn.00513fd7
ret