Function at 0x439b59
Capabilities:
Get common file path

Disassembly:
mov eax, 0x468034
call fcn.0040e738
sub esp, 0x124
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0xc]
lea ebx, [edi + 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ecx - 8], 0
jne 0x439bb6
test eax, eax
je 0x439bb6
mov eax, dword [esi + 4]
push 0
mov dword [ebp + 8], eax
mov eax, 0x100
push eax
push eax
mov ecx, ebx
call fcn.0043877f
push eax
mov eax, dword [ebp - 0x18]
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuStringA]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004387ce
mov eax, dword [edi + 8]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx - 8], eax
jne 0x439bde
mov ebx, dword [ebx]
cmp dword [ebx - 8], eax
je 0x439bd1
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
jmp 0x439d89
cmp dword [esi + 0xc], eax
je 0x439d89
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x439c08
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
add eax, ebx
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
inc ebx
cmp ebx, dword [edi + 4]
jl 0x439bee
lea eax, [ebp - 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x4c4c70]
mov byte [ebp + eax - 0x130], 0x5c
and byte [ebp + eax - 0x12f], 0
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
cmp dword [edi + 4], ebx
mov byte [ebp - 4], 1
jle 0x439d58
jmp 0x439c5e
mov eax, dword [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x130]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00439a53
test eax, eax
je 0x439d58
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [eax - 8]
add eax, eax
push eax
call fcn.0043877f
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x439cc1
cmp dl, 0x26
jne 0x439ca1
mov byte [eax], dl
inc eax
mov dl, byte [ecx]
mov byte [ebp + 0xb], dl
movzx edx, dl
test byte [edx + 0x4cba81], 4
je 0x439cb9
mov dl, byte [ebp + 0xb]
mov byte [eax], dl
inc eax
inc ecx
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
inc ecx
jmp 0x439c93
and byte [eax], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004387ce
mov eax, dword [edi + 0x14]
push 0xa
xor edx, edx
pop ecx
lea eax, [eax + ebx + 1]
div ecx
lea eax, [ebp - 0x2c]
push edx
push str._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push eax
call fcn.004383bd
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0043857e
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push dword [ebp + 8]
lea edx, [ecx + 1]
mov dword [esi + 8], edx
lea edx, [eax + 1]
push eax
mov eax, dword [esi + 0xc]
push 0x400
push ecx
mov dword [esi + 4], edx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InsertMenuA]
lea ecx, [ebp - 0x1c]
call fcn.0043834f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0043834f
inc ebx
cmp ebx, dword [edi + 4]
jl 0x439c5b
mov eax, dword [esi + 0xc]
dec dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], 1
call fcn.0043834f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043834f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4