Function at 0x1015cf7d
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x101cfbac
call fcn.101947d5
mov esi, ecx
mov dword [ebp - 0x238], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1015d25c
lea ecx, [esi + 0x1c]
xor edi, edi
mov eax, dword [ecx]
mov dword [ebp - 0x234], edi
cmp dword [eax - 0xc], edi
jne 0x1015cfc6
cmp dword [ebx + 0xc], edi
je 0x1015cfc6
push edi
push ecx
push dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
call fcn.1006854f
lea ecx, [esi + 0x1c]
mov eax, dword [esi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x1015d002
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], edi
je 0x1015cfe9
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x101d4b00]
mov ecx, ebx
call esi
call fcn.10194784
ret 4
cmp dword [ebx + 0xc], edi
je 0x1015cffa
mov edx, edi
mov dword [ebp - 0x230], edi
cmp dword [esi + 4], edi
jle 0x1015d039
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
add eax, edx
push edi
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_DeleteMenu]
mov edx, dword [ebp - 0x230]
inc edx
mov dword [ebp - 0x230], edx
cmp edx, dword [esi + 4]
jl 0x1015d014
lea eax, [ebp - 0x22c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1015cffa
cmp eax, 0x104
jae 0x1015cffa
lea eax, [ebp - 0x22c]
push eax
call fcn.101a4e8f
pop ecx
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x22c], cx
inc eax
mov dword [ebp - 0x240], eax
add eax, eax
cmp eax, 0x208
jae 0x1015d257
xor ecx, ecx
mov word [ebp + eax - 0x22c], cx
lea ecx, [ebp - 0x23c]
call fcn.100035d0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edi
call fcn.100035d0
mov byte [ebp - 4], 1
cmp dword [esi + 4], edi
jle 0x1015d21d
mov eax, dword [esi]
push 1
push dword [ebp - 0x240]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x22c]
push eax
push edi
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call dword [0x101d4b00]
mov ecx, dword [ebp - 0x238]
call esi
test eax, eax
je 0x1015d21d
mov esi, dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
call fcn.100038b0
mov ecx, eax
movzx eax, word [esi]
test ax, ax
je 0x1015d133
push 0x26
mov edx, eax
pop edi
cmp dx, di
jne 0x1015d117
mov word [ecx], di
add ecx, 2
movzx eax, word [esi]
add esi, 2
mov word [ecx], ax
add ecx, 2
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1015d10c
mov edi, dword [ebp - 0x234]
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x230]
push 0xffffffffffffffff
call fcn.10035e42
mov ecx, dword [ebp - 0x238]
push 0xa
mov eax, dword [ecx + 0x14]
add eax, edi
and eax, 0xf
inc eax
pop ecx
cmp eax, ecx
jbe 0x1015d163
push eax
push 0x101fc984
jmp 0x1015d182
jne 0x1015d17c
push str.10
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.101a4d09
push eax
call fcn.10002070
jmp 0x1015d18c
push eax
push 0x101fc998
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.100470cb
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x24]
add esp, 0x10
lea ecx, [ebp - 0x248]
push eax
call fcn.10027f20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.10040342
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_InsertMenuW]
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx - 0x10]
call fcn.100023f0
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.100023f0
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
inc edi
mov dword [ebp - 0x234], edi
cmp edi, dword [esi + 4]
jl 0x1015d0b2
mov eax, dword [ebx + 0xc]
dec dword [ebx + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [ebp - 0x230]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], 1
lea ecx, [ecx - 0x10]
call fcn.100023f0
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.100023f0
jmp 0x1015cffa
call fcn.10194bbf
call fcn.1003decd
int3