Function at 0x4b4bb0
Capabilities:
Get common file path

Disassembly:
push 0x130
mov eax, 0x5aadd3
call fcn.005748b3
mov edi, ecx
mov dword [ebp - 0x130], edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4b4e67
mov ecx, dword [ebx + 0xc]
lea esi, [edi + 0x1c]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4b4bef
test ecx, ecx
je 0x4b4bef
push 0
push esi
push dword [ebx + 4]
call fcn.0044b6f7
mov eax, dword [edi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4b4c2e
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x4b4c14
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, ebx
call esi
call fcn.00574862
ret 4
cmp dword [ebx + 0xc], 0
je 0x4b4c26
xor esi, esi
cmp dword [edi + 4], esi
jle 0x4b4c55
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
add eax, esi
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
inc esi
cmp esi, dword [edi + 4]
jl 0x4b4c3b
lea eax, [ebp - 0x120]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4b4c26
cmp eax, esi
jae 0x4b4c26
lea eax, [ebp - 0x120]
push eax
call fcn.00581e50
pop ecx
mov byte [ebp + eax - 0x120], 0x5c
inc eax
mov dword [ebp - 0x134], eax
cmp eax, esi
jae 0x4b4e62
lea ecx, [ebp - 0x12c]
mov byte [ebp + eax - 0x120], 0
call fcn.004064d0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004064d0
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x128], ecx
cmp dword [edi + 4], ecx
jle 0x4b4e28
mov eax, dword [edi]
push 1
push dword [ebp - 0x134]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x120]
push eax
push ecx
lea eax, [ebp - 0x12c]
mov ecx, esi
push eax
call dword [0x5b4a78]
mov ecx, edi
call esi
test eax, eax
je 0x4b4e28
mov edi, dword [ebp - 0x12c]
lea ecx, [ebp - 0x124]
mov eax, dword [edi - 0xc]
add eax, eax
push eax
call fcn.00406ba0
mov esi, eax
jmp 0x4b4d37
cmp al, 0x26
jne 0x4b4d1d
mov byte [esi], al
inc esi
movsx eax, byte [edi]
push eax
call fcn.00589746
pop ecx
test eax, eax
je 0x4b4d31
mov al, byte [edi]
inc edi
mov byte [esi], al
inc esi
mov al, byte [edi]
inc edi
mov byte [esi], al
inc esi
mov al, byte [edi]
test al, al
jne 0x4b4d16
push 0xffffffffffffffff
lea ecx, [ebp - 0x124]
mov byte [esi], al
call fcn.00412791
mov ecx, dword [ebp - 0x130]
push 0xa
mov eax, dword [ecx + 0x14]
add eax, dword [ebp - 0x128]
and eax, 0xf
inc eax
pop ecx
cmp eax, ecx
jbe 0x4b4d6e
push eax
push 0x5c58dc
jmp 0x4b4d8d
jne 0x4b4d87
push str.10
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00581936
push eax
call fcn.0040f575
jmp 0x4b4d97
push eax
push str._d
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00406430
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x13c]
push eax
call fcn.0040e1a0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0043a961
mov edx, dword [ebx + 4]
add esp, 0xc
mov ecx, dword [ebx + 8]
mov esi, dword [eax]
push esi
push edx
lea eax, [edx + 1]
mov dword [ebx + 4], eax
lea eax, [ecx + 1]
push 0x400
push ecx
mov dword [ebx + 8], eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InsertMenuA]
mov ecx, dword [ebp - 0x138]
lea ecx, [ecx - 0x10]
call fcn.00406a20
mov ecx, dword [ebp - 0x13c]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00406a20
mov ecx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x130]
inc ecx
mov dword [ebp - 0x128], ecx
cmp ecx, dword [edi + 4]
jl 0x4b4ccb
mov eax, dword [ebx + 0xc]
dec dword [ebx + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp - 0x124]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], 1
lea ecx, [ecx - 0x10]
call fcn.00406a20
mov ecx, dword [ebp - 0x12c]
lea ecx, [ecx - 0x10]
call fcn.00406a20
jmp 0x4b4c26
call fcn.00574f3c
call fcn.00419500
int3