Function at 0x1003775c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100522db
call fcn.1001bb34
sub esp, 0x12c
mov eax, dword [0x1006d564]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
lea ebx, [edi + 0x1c]
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x10037799
test ecx, ecx
je 0x10037799
push eax
push ebx
push dword [esi + 4]
call fcn.100390be
mov eax, dword [edi + 8]
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx - 0xc], eax
jne 0x100377c1
mov ebx, dword [ebx]
cmp dword [ebx - 0xc], eax
je 0x100377b4
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 0x100379ee
cmp dword [esi + 0xc], eax
je 0x100379ee
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x100377eb
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
push 0
add eax, ebx
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
inc ebx
cmp ebx, dword [edi + 4]
jl 0x100377d1
lea eax, [ebp - 0x120]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x100379ee
cmp eax, ebx
jae 0x100379ee
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov byte [ebp + ebx - 0x120], 0x5c
inc ebx
mov dword [ebp - 0x130], ebx
mov byte [ebp + ebx - 0x120], 0
call fcn.100370d9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x128], eax
and dword [ebp - 4], 0
call fcn.100370d9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x124], eax
and dword [ebp + 8], 0
cmp dword [edi + 4], 0
mov byte [ebp - 4], 1
jle 0x100379b9
jmp 0x1003787c
mov ebx, dword [ebp - 0x130]
mov eax, dword [edi]
push 1
push ebx
lea ecx, [ebp - 0x120]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x128]
push ecx
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x100379b9
mov ebx, dword [ebp - 0x128]
mov eax, dword [ebx - 0xc]
add eax, eax
push eax
lea ecx, [ebp - 0x124]
call fcn.10005850
jmp 0x100378d8
cmp cl, 0x26
jne 0x100378c0
mov byte [eax], cl
inc eax
mov cl, byte [ebx]
movzx edx, cl
test byte [edx + 0x10072481], 4
je 0x100378d2
mov byte [eax], cl
inc eax
inc ebx
mov cl, byte [ebx]
mov byte [eax], cl
inc eax
inc ebx
mov cl, byte [ebx]
test cl, cl
jne 0x100378b8
mov byte [eax], cl
push 0xffffffffffffffff
lea ecx, [ebp - 0x124]
call fcn.10011534
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 1]
and eax, 0xf
cmp eax, 0xa
jle 0x10037907
push eax
push 0x100575f8
jmp 0x10037920
jne 0x1003791a
push str.10
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1003792d
push eax
push 0x100575e8
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x134]
call fcn.100115f2
lea ecx, [ebp - 0x124]
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
mov byte [ebp - 4], 2
call fcn.100374bd
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
lea ebx, [edx + 1]
mov dword [esi + 8], ebx
lea ebx, [ecx + 1]
add esp, 0xc
mov dword [esi + 4], ebx
mov eax, dword [eax]
mov dword [ebp - 0x12c], eax
push dword [ebp - 0x12c]
mov eax, dword [esi + 0xc]
push ecx
push 0x400
push edx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InsertMenuA]
mov ecx, dword [ebp - 0x138]
add ecx, 0xfffffff0
call fcn.10005980
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.10005980
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 4]
jl 0x10037876
mov eax, dword [esi + 0xc]
dec dword [esi + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp - 0x124]
add ecx, 0xfffffff0
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], 1
call fcn.10005980
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
call fcn.10005980
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1001b624
leave
ret 4