Function at 0x5be660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x5be669
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5bea9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
test al, al
jne 0x5be6a4
mov dword [ebp - 4], 0x80040064
jmp 0x5bea59
lea eax, [ebp - 0x18]
mov edx, esi
mov ecx, 0x5beab0
call fcn.005f7044
mov dl, 1
mov eax, dword [0x5d09fc]
call fcn.005f44d8
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x5bea2f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
call fcn.005f1abc
lea eax, [ebp - 0x58]
call fcn.005f1abc
lea eax, [ebp - 0x68]
call fcn.005f1abc
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
inc eax
inc eax
shl eax, 2
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x78]
mov edx, 0x5beac8
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x20]
lea edx, [ebp - 0x78]
lea eax, [ebp - 8]
call fcn.005f613c
cmp dword [ebp - 8], 0
je 0x5be74c
push 1
mov ecx, 0x5beadc
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.005b6e20
mov edx, eax
lea eax, [ebp - 0x48]
mov cl, 0xfc
call fcn.005f615c
lea eax, [ebp - 0x48]
call fcn.005f6114
mov dword [ebp - 0x24], eax
jmp 0x5be7e8
lea ecx, [ebp - 0x58]
mov edx, 0x5beaec
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x20]
lea eax, [ebp - 0x58]
call fcn.005f6114
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x58]
call fcn.005f07bc
test al, al
jne 0x5be785
lea ecx, [ebp - 0x68]
mov edx, 0x5beafc
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x5be7a2
push 1
mov ecx, 0x5beafc
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.005b6e20
mov edx, eax
lea eax, [ebp - 0x68]
mov cl, 0xfc
call fcn.005f615c
lea eax, [ebp - 0x68]
call fcn.005f07bc
test al, al
jne 0x5be7b7
lea eax, [ebp - 0x34]
push eax
call sub.SHELL32.DLL_SHGetDesktopFolder
lea eax, [ebp - 0x30]
push eax
push 0
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [ebp - 0x30]
call fcn.005b6d88
mov ecx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x30]
call fcn.005f5160
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [sym.UltraISO.exe__Taofrmts_taoShellMalloc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
call fcn.005f5328
add dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x5be8ea
inc ebx
xor esi, esi
lea eax, [ebp - 0x48]
call fcn.005f07bc
test al, al
je 0x5be825
lea eax, [ebp - 0x58]
call fcn.005f07bc
test al, al
jne 0x5be849
lea eax, [ebp - 0x88]
push eax
mov ecx, esi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [ebp - 0x88]
lea eax, [ebp - 8]
call fcn.005f613c
jmp 0x5be851
lea eax, [ebp - 8]
call fcn.005f5070
cmp dword [ebp - 8], 0
jne 0x5be8cc
cmp dword [ebp - 0x34], 0
je 0x5be8cc
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x68]
call fcn.005f6114
mov edx, eax
mov ecx, esi
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x38]
call fcn.005f6144
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x38]
call fcn.005f58e8
push eax
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x30]
call fcn.005b6d88
mov ecx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x30]
call fcn.005f5160
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [sym.UltraISO.exe__Taofrmts_taoShellMalloc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 8]
call fcn.005f5328
add dword [ebp - 0x1c], eax
inc esi
dec ebx
jne 0x5be80d
xor eax, eax
push ebp
push 0x5bea1e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x5be928
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_GlobalSize
cmp eax, 4
jae 0x5be950
mov dword [ebp - 4], 0x80040066
call fcn.005f4d60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5bea59
mov eax, dword [ebp - 0x1c]
push eax
push 2
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0xc]
test ebx, ebx
jne 0x5be947
call fcn.005e5c58
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5bea01
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.005cbefc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add eax, 2
shl eax, 2
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov ebx, dword [ebp - 0x20]
test ebx, ebx
jl 0x5be9e2
inc ebx
xor esi, esi
add dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
lea ecx, [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
call fcn.005f5328
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.005cbeec
mov eax, dword [ebp - 8]
call fcn.005f5328
add dword [ebp - 0x10], eax
inc esi
dec ebx
jne 0x5be9a2
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bea08
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5beaa4
lea eax, [ebp - 0x98]
mov edx, dword [0x5f1f50]
mov ecx, 6
call fcn.005f5be4
lea eax, [ebp - 0x38]
call fcn.005f578c
lea eax, [ebp - 0x34]
call fcn.005f7000
lea eax, [ebp - 0x18]
call fcn.005f7000
lea eax, [ebp - 8]
call fcn.005f5070
ret