Function at 0x58e2f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67ac0c
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x150]
call edx
mov ebx, eax
mov dword [ebp - 0x11c], ebx
test ebx, ebx
je 0x58e6d0
cmp dword [ebx + 8], 0
je 0x58e6d0
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0x40]
mov eax, dword [eax + 0x2c]
inc ecx
cmp ecx, eax
jge 0x58e3c5
mov eax, dword [esi + 0x40]
inc eax
mov ecx, dword [esi + 0xb8]
js 0x58e371
cmp eax, dword [ecx + 0x2c]
jge 0x58e371
mov edx, dword [ecx + 0x28]
mov edi, dword [edx + eax*4]
lea eax, [edx + eax*4]
jmp 0x58e373
xor edi, edi
mov eax, dword [esi]
mov edx, dword [eax + 0x154]
mov ebx, dword [edi + 0x44]
mov ecx, esi
call edx
cmp ebx, eax
jl 0x58e3bf
mov eax, dword [esi]
mov edx, dword [eax + 0x154]
mov ebx, dword [edi + 0x44]
mov ecx, esi
call edx
mov ecx, dword [ebp - 0x11c]
add eax, dword [ecx + 4]
cmp ebx, eax
jg 0x58e3ee
mov ecx, dword [esi + 0xb8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
push edi
call eax
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0xb8]
inc edx
cmp edx, dword [ecx + 0x2c]
jl 0x58e355
mov ebx, dword [ebp - 0x11c]
mov ecx, dword [esi + 0xc0]
call fcn.0057bf90
test eax, eax
je 0x58e3f2
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
push 1
mov ecx, esi
mov dword [esi + 0x90], 0
call edx
jmp 0x58e6d0
mov ebx, ecx
jmp 0x58e3c5
mov eax, dword [ebx + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x58e415
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov dword [esi + 0x90], 0
push 0
mov ecx, esi
jmp 0x58e6ce
or dword [esi + 0x90], 1
lea ecx, [ebp - 0x118]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov byte [ebp + edi - 0x118], 0x5c
inc edi
push str.PinableRecentFileList
add ebx, 0x1c
push ebx
mov dword [ebp - 0x144], edi
mov byte [ebp + edi - 0x118], 0
call fcn.00401ce0
movzx eax, al
add esp, 8
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x12c], eax
call fcn.00401b80
xor ebx, ebx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], ebx
call fcn.00401b80
mov ecx, dword [ebp - 0x11c]
mov byte [ebp - 4], 1
cmp dword [ecx + 4], ebx
jle 0x58e681
jmp 0x58e4a8
mov edi, dword [ebp - 0x144]
mov ecx, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push 1
push edi
lea eax, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x124]
push eax
call edx
test eax, eax
je 0x58e681
cmp dword [ebp - 0x12c], 0
je 0x58e5fc
mov ecx, dword [ebp - 0x11c]
add ecx, 0xffffffe0
push ebx
call fcn.005eb280
mov edi, eax
mov dword [ebp - 0x128], edi
test edi, edi
je 0x58e564
lea eax, [ebp - 0x140]
push eax
mov ecx, edi
call fcn.0058d7c0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
mov eax, dword [ebp - 0x140]
setne byte [ebp - 0x11d]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x58e52e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x11d], 0
je 0x58e564
lea ecx, [ebp - 0x138]
push ecx
mov ecx, edi
call fcn.0058d7c0
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.00401740
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.00578e60
mov edx, dword [esi]
mov eax, dword [edx + 0x154]
mov ecx, esi
call eax
mov ecx, dword [esi + 0x40]
push 1
lea edx, [ebx + ecx + 1]
mov ecx, dword [esi + 0xb8]
push edx
push 0x6e6048
add eax, ebx
push eax
push 1
call fcn.005593f0
mov edi, eax
lea eax, [ebx + 1]
push eax
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.0058da60
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0055cb90
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x58e5e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 8
mov ecx, edi
call fcn.00559ab0
test ebx, ebx
jne 0x58e60b
cmp dword [esi + 0x40], ebx
je 0x58e60b
lea eax, [ebx + 1]
jmp 0x58e60d
mov dword [ebp - 0x128], 0
jmp 0x58e564
xor eax, eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x5c]
mov ecx, edi
call eax
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + ebx*4]
push eax
mov ecx, edi
call fcn.0058e2b0
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x58e649
mov eax, dword [eax + 0x24]
cmp dword [edi + 0x48], eax
je 0x58e649
push 0
mov ecx, edi
mov dword [edi + 0x48], eax
call fcn.00559e20
mov ecx, esi
call fcn.0051e260
test al, al
jns 0x58e66c
test ebx, ebx
jne 0x58e66c
mov ecx, edi
call fcn.0051e260
or eax, 0x80
push eax
mov ecx, edi
call fcn.00559ab0
mov ebx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x11c]
cmp ebx, dword [eax + 4]
jl 0x58e4a0
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x58e6a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x58e6d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret 4