Function at 0x10157702
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x101c95cc
call fcn.1018ece3
mov esi, ecx
mov dword [ebp - 0x238], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x101579e1
lea ecx, [esi + 0x1c]
xor edi, edi
mov eax, dword [ecx]
mov dword [ebp - 0x234], edi
cmp dword [eax - 0xc], edi
jne 0x1015774b
cmp dword [ebx + 0xc], edi
je 0x1015774b
push edi
push ecx
push dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
call fcn.100661f3
lea ecx, [esi + 0x1c]
mov eax, dword [esi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x10157787
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], edi
je 0x1015776e
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x101cdb00]
mov ecx, ebx
call esi
call fcn.1018ec92
ret 4
cmp dword [ebx + 0xc], edi
je 0x1015777f
mov edx, edi
mov dword [ebp - 0x230], edi
cmp dword [esi + 4], edi
jle 0x101577be
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 0x10157799
lea eax, [ebp - 0x22c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1015777f
cmp eax, 0x104
jae 0x1015777f
lea eax, [ebp - 0x22c]
push eax
call fcn.1019f37f
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 0x101579dc
xor ecx, ecx
mov word [ebp + eax - 0x22c], cx
lea ecx, [ebp - 0x23c]
call fcn.10003770
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edi
call fcn.10003770
mov byte [ebp - 4], 1
cmp dword [esi + 4], edi
jle 0x101579a2
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 [0x101cdb00]
mov ecx, dword [ebp - 0x238]
call esi
test eax, eax
je 0x101579a2
mov esi, dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
call fcn.10003af0
mov ecx, eax
movzx eax, word [esi]
test ax, ax
je 0x101578b8
push 0x26
mov edx, eax
pop edi
cmp dx, di
jne 0x1015789c
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 0x10157891
mov edi, dword [ebp - 0x234]
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x230]
push 0xffffffffffffffff
call fcn.10033cb7
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 0x101578e8
push eax
push 0x101f5554
jmp 0x10157907
jne 0x10157901
push str.10
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.1019f1f9
push eax
call fcn.10002070
jmp 0x10157911
push eax
push 0x101f5568
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.10044e9d
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x24]
add esp, 0x10
lea ecx, [ebp - 0x248]
push eax
call fcn.10025db0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.1003e115
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.10002420
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.10002420
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
inc edi
mov dword [ebp - 0x234], edi
cmp edi, dword [esi + 4]
jl 0x10157837
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.10002420
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.10002420
jmp 0x1015777f
call fcn.1018f0cf
call fcn.1003bca0
int3