Function at 0x47b1e0
Capabilities:
Get common file path

Disassembly:
push 0x130
mov eax, 0x69f57f
call fcn.0060aea9
mov edi, ecx
mov dword [ebp - 0x130], edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x47b497
mov ecx, dword [ebx + 0xc]
lea esi, [edi + 0x1c]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x47b21f
test ecx, ecx
je 0x47b21f
push 0
push esi
push dword [ebx + 4]
call fcn.0044a87f
mov eax, dword [edi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x47b25e
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x47b244
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x6bfdfc]
mov ecx, ebx
call esi
call fcn.0060ae58
ret 4
cmp dword [ebx + 0xc], 0
je 0x47b256
xor esi, esi
cmp dword [edi + 4], esi
jle 0x47b285
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 0x47b26b
lea eax, [ebp - 0x120]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x47b256
cmp eax, esi
jae 0x47b256
lea eax, [ebp - 0x120]
push eax
call fcn.0066be50
pop ecx
mov byte [ebp + eax - 0x120], 0x5c
inc eax
mov dword [ebp - 0x134], eax
cmp eax, esi
jae 0x47b492
lea ecx, [ebp - 0x12c]
mov byte [ebp + eax - 0x120], 0
call fcn.00401f50
and dword [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.00401f50
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x128], ecx
cmp dword [edi + 4], ecx
jle 0x47b458
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 [0x6bfdfc]
mov ecx, edi
call esi
test eax, eax
je 0x47b458
mov edi, dword [ebp - 0x12c]
lea ecx, [ebp - 0x124]
mov eax, dword [edi - 0xc]
add eax, eax
push eax
call fcn.004288fb
mov esi, eax
jmp 0x47b367
cmp al, 0x26
jne 0x47b34d
mov byte [esi], al
inc esi
movsx eax, byte [edi]
push eax
call fcn.00670df2
pop ecx
test eax, eax
je 0x47b361
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 0x47b346
push 0xffffffffffffffff
lea ecx, [ebp - 0x124]
mov byte [esi], al
call fcn.00430e67
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 0x47b39e
push eax
push 0x6d73e8
jmp 0x47b3bd
jne 0x47b3b7
push 0x6d73ec
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0066c110
push eax
call fcn.0040d920
jmp 0x47b3c7
push eax
push str._d
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00446894
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x13c]
push eax
call fcn.00406f20
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0040b6e0
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.00428a03
mov ecx, dword [ebp - 0x13c]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00428a03
mov ecx, dword [ebp - 0x128]
mov edi, dword [ebp - 0x130]
inc ecx
mov dword [ebp - 0x128], ecx
cmp ecx, dword [edi + 4]
jl 0x47b2fb
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.00428a03
mov ecx, dword [ebp - 0x12c]
lea ecx, [ecx - 0x10]
call fcn.00428a03
jmp 0x47b256
call fcn.0060a2fd
call fcn.004273da
int3