Function at 0x535e4c
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x595289
call fcn.00569fe9
mov esi, ecx
mov dword [ebp - 0x238], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x53612b
lea ecx, [esi + 0x1c]
xor edi, edi
mov eax, dword [ecx]
mov dword [ebp - 0x234], edi
cmp dword [eax - 0xc], edi
jne 0x535e95
cmp dword [ebx + 0xc], edi
je 0x535e95
push edi
push ecx
push dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
call fcn.00439817
lea ecx, [esi + 0x1c]
mov eax, dword [esi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jne 0x535ed1
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], edi
je 0x535eb8
mov eax, dword [ebx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5999dc]
mov ecx, ebx
call esi
mov eax, dword [ebx]
push edi
mov esi, dword [eax]
mov ecx, esi
call dword [0x5999dc]
mov ecx, ebx
call esi
call fcn.00569f98
ret 4
cmp dword [ebx + 0xc], edi
je 0x535ec9
mov edx, edi
mov dword [ebp - 0x230], edi
cmp dword [esi + 4], edi
jle 0x535f08
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 0x535ee3
lea eax, [ebp - 0x22c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x535ec9
cmp eax, 0x104
jae 0x535ec9
lea eax, [ebp - 0x22c]
push eax
call fcn.00570a94
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 0x536126
xor ecx, ecx
mov word [ebp + eax - 0x22c], cx
lea ecx, [ebp - 0x23c]
call fcn.004036d0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edi
call fcn.004036d0
mov byte [ebp - 4], 1
cmp dword [esi + 4], edi
jle 0x5360ec
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 [0x5999dc]
mov ecx, dword [ebp - 0x238]
call esi
test eax, eax
je 0x5360ec
mov esi, dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
call fcn.00403f30
mov ecx, eax
movzx eax, word [esi]
test ax, ax
je 0x536002
push 0x26
mov edx, eax
pop edi
cmp dx, di
jne 0x535fe6
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 0x535fdb
mov edi, dword [ebp - 0x234]
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x230]
push 0xffffffffffffffff
call fcn.004113b4
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 0x536032
push eax
push 0x5bf958
jmp 0x536051
jne 0x53604b
push str.10
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.005709e5
push eax
call fcn.00403800
jmp 0x53605b
push eax
push 0x5bf96c
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.0041219d
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x24]
add esp, 0x10
lea ecx, [ebp - 0x248]
push eax
call fcn.0040a2e0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0040a9c3
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.00403db0
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00403db0
mov edi, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
inc edi
mov dword [ebp - 0x234], edi
cmp edi, dword [esi + 4]
jl 0x535f81
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.00403db0
mov ecx, dword [ebp - 0x23c]
lea ecx, [ecx - 0x10]
call fcn.00403db0
jmp 0x535ec9
call fcn.0056a4ae
call fcn.0044a0ce
int3