Function at 0x4378df
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45b930
call fcn.0040e508
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 0x43793c
test eax, eax
je 0x43793c
mov eax, dword [esi + 4]
push 0
mov dword [ebp + 8], eax
mov eax, 0x100
push eax
push eax
mov ecx, ebx
call fcn.004333e0
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.0043342f
mov eax, dword [edi + 8]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx - 8], eax
jne 0x437964
mov ebx, dword [ebx]
cmp dword [ebx - 8], eax
je 0x437957
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 0x437b0f
cmp dword [esi + 0xc], eax
je 0x437b0f
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x43798e
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 0x437974
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 [0x46e460]
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 0x437ade
jmp 0x4379e4
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.004377d9
test eax, eax
je 0x437ade
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.004333e0
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x437a47
cmp dl, 0x26
jne 0x437a27
mov byte [eax], dl
inc eax
mov dl, byte [ecx]
mov byte [ebp + 0xb], dl
movzx edx, dl
test byte [edx + 0x475141], 4
je 0x437a3f
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 0x437a19
and byte [eax], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0043342f
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.0043301e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004331df
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.00432fb0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00432fb0
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4379e1
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.00432fb0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00432fb0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4