Function at 0x4b47ec
Capabilities:
Get common file path

Disassembly:
push 0x130
mov eax, 0x5a8993
call fcn.005744f6
mov edi, ecx
mov dword [ebp - 0x130], edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4b4aa3
mov ecx, dword [ebx + 0xc]
lea esi, [edi + 0x1c]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4b482b
test ecx, ecx
je 0x4b482b
push 0
push esi
push dword [ebx + 4]
call fcn.0044b328
mov eax, dword [edi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4b486a
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x4b4850
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x5b1a70]
mov ecx, ebx
call esi
call fcn.005744a5
ret 4
cmp dword [ebx + 0xc], 0
je 0x4b4862
xor esi, esi
cmp dword [edi + 4], esi
jle 0x4b4891
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 0x4b4877
lea eax, [ebp - 0x120]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4b4862
cmp eax, esi
jae 0x4b4862
lea eax, [ebp - 0x120]
push eax
call fcn.0057fe70
pop ecx
mov byte [ebp + eax - 0x120], 0x5c
inc eax
mov dword [ebp - 0x134], eax
cmp eax, esi
jae 0x4b4a9e
lea ecx, [ebp - 0x12c]
mov byte [ebp + eax - 0x120], 0
call fcn.00406150
and dword [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.00406150
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x128], ecx
cmp dword [edi + 4], ecx
jle 0x4b4a64
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 [0x5b1a70]
mov ecx, edi
call esi
test eax, eax
je 0x4b4a64
mov edi, dword [ebp - 0x12c]
lea ecx, [ebp - 0x124]
mov eax, dword [edi - 0xc]
add eax, eax
push eax
call fcn.00406820
mov esi, eax
jmp 0x4b4973
cmp al, 0x26
jne 0x4b4959
mov byte [esi], al
inc esi
movsx eax, byte [edi]
push eax
call fcn.005877e7
pop ecx
test eax, eax
je 0x4b496d
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 0x4b4952
push 0xffffffffffffffff
lea ecx, [ebp - 0x124]
mov byte [esi], al
call fcn.004123c1
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 0x4b49aa
push eax
push 0x5c28dc
jmp 0x4b49c9
jne 0x4b49c3
push str.10
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0057f956
push eax
call fcn.0040f1a5
jmp 0x4b49d3
push eax
push str._d
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.004060b0
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x13c]
push eax
call fcn.0040ddd0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0043a58a
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.004066a0
mov ecx, dword [ebp - 0x13c]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.004066a0
mov ecx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x130]
inc ecx
mov dword [ebp - 0x128], ecx
cmp ecx, dword [edi + 4]
jl 0x4b4907
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.004066a0
mov ecx, dword [ebp - 0x12c]
lea ecx, [ecx - 0x10]
call fcn.004066a0
jmp 0x4b4862
call fcn.00574b7c
call fcn.0041912f
int3