Function at 0x4f884f
Capabilities:
Get common file path

Disassembly:
push 0x314
mov eax, 0x5225c1
call fcn.005058aa
mov ebx, ecx
mov eax, dword [ebx]
mov dword [ebp - 0x238], ebx
call dword [eax + 0x19c]
mov edi, eax
mov eax, dword [ebx + 0xdbc]
xor esi, esi
cmp eax, esi
je 0x4f88f8
push eax
call dword [sym.imp.USER32.dll_IsMenu]
neg eax
sbb eax, eax
neg eax
jne 0x4f8890
call fcn.00470a7a
cmp dword [ebx + 0x120], esi
jne 0x4f88ad
push edi
push dword [ebx + 0xdbc]
mov ecx, 0x5814dc
call fcn.004b89c3
test eax, eax
jne 0x4f88f8
call fcn.00495cc7
test eax, eax
je 0x4f88d3
mov eax, dword [edi]
push 1
push dword [ebx + 0xdbc]
mov ecx, edi
call dword [eax + 0x410]
test eax, eax
jne 0x4f88f8
xor eax, eax
jmp 0x4f8dbf
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 0x4f88c8
call fcn.00439fb7
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x230], eax
cmp eax, esi
je 0x4f8b58
cmp dword [0x57fd5c], esi
jne 0x4f8b58
mov eax, dword [edi + 0xb08]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], eax
cmp eax, esi
je 0x4f8b58
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0xb04]
call fcn.004989e8
mov esi, dword [eax]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x4f888b
cmp dword [esi + 0x20], 0xe110
jne 0x4f8983
push str.Recent_File
lea ecx, [esi + 0x2c]
call fcn.004a67f9
test eax, eax
je 0x4f89a4
mov esi, dword [esi + 0x24]
mov eax, dword [ebp - 0x224]
and esi, 1
inc dword [ebp - 0x220]
mov dword [ebp - 0x228], esi
test eax, eax
jne 0x4f8940
jmp 0x4f8b56
push dword [ebp - 0x22c]
lea ecx, [edi + 0xb04]
call fcn.004c8736
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
xor eax, eax
inc esi
mov word [ebp + esi*2 - 0x218], ax
mov eax, dword [ebp - 0x230]
xor ebx, ebx
cmp dword [eax + 4], ebx
mov dword [ebp - 0x21c], ebx
jle 0x4f8af6
lea ecx, [ebp - 0x22c]
call fcn.0048c727
mov ecx, dword [ebp - 0x230]
mov eax, dword [ecx]
and dword [ebp - 4], 0
push 1
push esi
lea edx, [ebp - 0x218]
push edx
push ebx
lea edx, [ebp - 0x22c]
push edx
call dword [eax + 8]
test eax, eax
je 0x4f8acb
lea ecx, [ebp - 0x234]
call fcn.0048c727
push dword [ebp - 0x22c]
inc dword [ebp - 0x21c]
push dword [ebp - 0x21c]
lea eax, [ebp - 0x234]
push str._d__s
push eax
mov byte [ebp - 4], 1
call fcn.0048f83a
add esp, 0x10
push 0
push dword [ebp - 0x234]
lea eax, [ebx + 0xe110]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x320]
call fcn.004e7b46
push dword [ebp - 0x220]
mov edx, dword [edi]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call dword [edx + 0x320]
inc dword [ebp - 0x220]
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 1
call fcn.0047e87c
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.00425e0a
mov ecx, dword [ebp - 0x22c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00425e0a
mov eax, dword [ebp - 0x230]
inc ebx
cmp ebx, dword [eax + 4]
jl 0x4f8a0c
cmp dword [ebp - 0x21c], 0
jne 0x4f8b50
cmp dword [ebp - 0x228], 0
je 0x4f8b50
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4f8b50
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x224]
lea ebx, [edi + 0xb04]
push eax
mov ecx, ebx
call fcn.004989e8
mov esi, dword [eax]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x4f888b
test byte [esi + 0x24], 1
je 0x4f8b50
push dword [ebp - 0x22c]
mov ecx, ebx
call fcn.004c8736
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x238]
xor esi, esi
cmp dword [0x581540], esi
je 0x4f8d62
cmp dword [0x57fd5c], esi
jne 0x4f8d62
mov eax, dword [edi + 0xb08]
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], eax
cmp eax, esi
je 0x4f8d62
jmp 0x4f8b9e
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x224]
lea ebx, [edi + 0xb04]
push eax
mov ecx, ebx
call fcn.004989e8
mov esi, dword [eax]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x4f888b
mov eax, dword [0x581540]
mov ecx, dword [eax + 0x20]
cmp ecx, dword [esi + 0x20]
jne 0x4f8d11
cmp dword [0x5815c0], 0
lea ebx, [eax + 4]
je 0x4f8bec
cmp dword [ebx + 0xc], 0
je 0x4f8c06
push dword [ebp - 0x230]
lea ecx, [edi + 0xb04]
call fcn.004c8736
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x228], 0
jne 0x4f8d49
xor esi, esi
cmp dword [ebp - 0x220], esi
jne 0x4f8c40
cmp dword [ebx + 0xc], esi
je 0x4f8c40
cmp dword [edi + 0xb10], esi
je 0x4f8c40
push dword [ebp - 0x21c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x324]
inc dword [ebp - 0x21c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x228], eax
cmp eax, esi
je 0x4f8cd3
lea eax, [ebp - 0x228]
push eax
mov ecx, ebx
call fcn.0045b4d1
mov esi, eax
mov eax, dword [esi + 0x10]
push 1
push eax
call fcn.004817c0
mov ecx, eax
call fcn.004341bb
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 - 0x320]
call fcn.004e7b46
push dword [ebp - 0x21c]
mov edx, dword [edi]
push eax
mov ecx, edi
mov dword [ebp - 4], 3
call dword [edx + 0x320]
inc dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x320]
call fcn.0047e87c
cmp dword [ebp - 0x228], 0
jne 0x4f8c51
xor esi, esi
cmp dword [ebp - 0x224], esi
je 0x4f8d05
push dword [ebp - 0x21c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x324]
inc dword [ebp - 0x21c]
mov dword [ebp - 0x220], 1
test eax, eax
jge 0x4f8d05
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], 1
jmp 0x4f8d49
test byte [esi + 0x24], 1
je 0x4f8d42
cmp dword [ebp - 0x220], 0
je 0x4f8d36
push dword [ebp - 0x230]
mov ecx, ebx
call fcn.004c8736
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x220], 1
jmp 0x4f8d49
and dword [ebp - 0x220], 0
inc dword [ebp - 0x21c]
cmp dword [ebp - 0x224], 0
jne 0x4f8b98
mov ebx, dword [ebp - 0x238]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3a0]
mov esi, eax
test esi, esi
je 0x4f8d80
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x128]
test eax, eax
jne 0x4f8d89
push ebx
call fcn.0047ae94
pop ecx
mov esi, eax
test esi, esi
je 0x4f8d9a
mov eax, dword [edi]
push 0
push esi
mov ecx, edi
call dword [eax + 0x21c]
push ebx
push ebx
call fcn.004c39d9
pop ecx
push eax
call fcn.004fd046
test eax, eax
je 0x4f88cc
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0x150]
xor eax, eax
inc eax
call fcn.0050592d
ret