Function at 0x5be244
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x5be24d
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 0x5be681
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 0x5be288
mov dword [ebp - 4], 0x80040064
jmp 0x5be63d
lea eax, [ebp - 0x18]
mov edx, esi
mov ecx, 0x5be694
call fcn.005f6c28
mov dl, 1
mov eax, dword [0x5d05e0]
call fcn.005f40bc
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x5be613
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
call fcn.005f16a0
lea eax, [ebp - 0x58]
call fcn.005f16a0
lea eax, [ebp - 0x68]
call fcn.005f16a0
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, 0x5be6ac
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x20]
lea edx, [ebp - 0x78]
lea eax, [ebp - 8]
call fcn.005f5d20
cmp dword [ebp - 8], 0
je 0x5be330
push 1
mov ecx, 0x5be6c0
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.005b6a04
mov edx, eax
lea eax, [ebp - 0x48]
mov cl, 0xfc
call fcn.005f5d40
lea eax, [ebp - 0x48]
call fcn.005f5cf8
mov dword [ebp - 0x24], eax
jmp 0x5be3cc
lea ecx, [ebp - 0x58]
mov edx, 0x5be6d0
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x20]
lea eax, [ebp - 0x58]
call fcn.005f5cf8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x58]
call fcn.005f03a0
test al, al
jne 0x5be369
lea ecx, [ebp - 0x68]
mov edx, 0x5be6e0
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x5be386
push 1
mov ecx, 0x5be6e0
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.005b6a04
mov edx, eax
lea eax, [ebp - 0x68]
mov cl, 0xfc
call fcn.005f5d40
lea eax, [ebp - 0x68]
call fcn.005f03a0
test al, al
jne 0x5be39b
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.005b696c
mov ecx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x30]
call fcn.005f4d44
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.005f4f0c
add dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x5be4ce
inc ebx
xor esi, esi
lea eax, [ebp - 0x48]
call fcn.005f03a0
test al, al
je 0x5be409
lea eax, [ebp - 0x58]
call fcn.005f03a0
test al, al
jne 0x5be42d
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.005f5d20
jmp 0x5be435
lea eax, [ebp - 8]
call fcn.005f4c54
cmp dword [ebp - 8], 0
jne 0x5be4b0
cmp dword [ebp - 0x34], 0
je 0x5be4b0
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x68]
call fcn.005f5cf8
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.005f5d28
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.005f54cc
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.005b696c
mov ecx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x30]
call fcn.005f4d44
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.005f4f0c
add dword [ebp - 0x1c], eax
inc esi
dec ebx
jne 0x5be3f1
xor eax, eax
push ebp
push 0x5be602
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x5be50c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_GlobalSize
cmp eax, 4
jae 0x5be534
mov dword [ebp - 4], 0x80040066
call fcn.005f4944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be63d
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 0x5be52b
call fcn.005e583c
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 0x5be5e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.005cbae0
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 0x5be5c6
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.005f4f0c
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.005cbad0
mov eax, dword [ebp - 8]
call fcn.005f4f0c
add dword [ebp - 0x10], eax
inc esi
dec ebx
jne 0x5be586
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5be5ec
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 0x5be688
lea eax, [ebp - 0x98]
mov edx, dword [0x5f1b34]
mov ecx, 6
call fcn.005f57c8
lea eax, [ebp - 0x38]
call fcn.005f5370
lea eax, [ebp - 0x34]
call fcn.005f6be4
lea eax, [ebp - 0x18]
call fcn.005f6be4
lea eax, [ebp - 8]
call fcn.005f4c54
ret