Function at 0x5a6270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d50ec
mov eax, dword fs:[0]
push eax
sub esp, 0x584
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4f0], 0
lea eax, [ebp - 0x4f0]
push eax
call fcn.004474e0
add esp, 4
push eax
push 0x6e6878
push 1
push 0
push 0x5d95a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a6873
mov dword [ebp - 0x510], 0
lea ecx, [ebp - 0x510]
push ecx
mov edx, dword [ebp - 0x4f0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4f0]
push ecx
mov edx, dword [eax + 0x28]
call edx
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a6361
mov eax, dword [ebp - 0x510]
or eax, 0x40
or eax, 0x20000000
push eax
mov ecx, dword [ebp - 0x4f0]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4f0]
push eax
mov ecx, dword [edx + 0x24]
call ecx
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a6361
push 0x6c2ff4
mov edx, dword [ebp - 0x4f0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4f0]
push ecx
mov edx, dword [eax + 0x44]
call edx
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a66e0
mov dword [ebp - 0x500], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x520], 0x104
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x514], eax
mov eax, dword [ebp - 0x520]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x5a640c
push 0
push 0x70c50008
lea edx, [ebp - 0x500]
push edx
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
mov dword [ebp - 0x4ec], eax
jmp 0x5a6429
lea ecx, [ebp - 0x500]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a64d3
mov dword [ebp - 0x504], 0
lea eax, [ebp - 0x504]
push eax
mov ecx, dword [ebp - 0x500]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
mov dword [ebp - 0x4ec], eax
mov edx, dword [ebp - 0x500]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x4ec], 0
jne 0x5a64d3
mov eax, dword [ebp - 0x504]
push eax
mov ecx, dword [ebp - 0x4f0]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4f0]
push eax
mov ecx, dword [edx + 0x30]
call ecx
mov dword [ebp - 0x4ec], eax
mov edx, dword [ebp - 0x504]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x504]
push ecx
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0x4ec], 0
jne 0x5a64d3
mov eax, dword [ebp - 0x514]
push eax
mov ecx, dword [ebp - 0x4f0]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4f0]
push eax
mov ecx, dword [edx + 0x3c]
call ecx
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a66e0
mov dword [ebp - 0x488], 0x6c2ffc
mov dword [ebp - 0x484], 0x6c301c
mov dword [ebp - 0x480], 0x6c3028
mov dword [ebp - 0x47c], 0x6c3294
mov dword [ebp - 0x478], 0x6c32a0
mov dword [ebp - 0x474], 0x6c32c0
mov dword [ebp - 0x470], 0x6c32cc
mov dword [ebp - 0x46c], 0x6c31d8
mov dword [ebp - 0x468], 0x6c3200
mov dword [ebp - 0x464], 0x6c31ec
mov dword [ebp - 0x460], 0x6c325c
mov dword [ebp - 0x45c], 0x6c3148
mov dword [ebp - 0x458], 0x6c315c
mov dword [ebp - 0x454], 0x6c318c
mov dword [ebp - 0x450], 0x6c3198
mov dword [ebp - 0x44c], 0x6c30f4
mov dword [ebp - 0x448], 0x6c3100
mov dword [ebp - 0x444], 0x6c311c
mov dword [ebp - 0x440], 0x6c3128
mov dword [ebp - 0x43c], 0x6c3608
mov dword [ebp - 0x438], str.LZH
mov dword [ebp - 0x434], str..lzh
mov dword [ebp - 0x430], 0x6c364c
mov dword [ebp - 0x42c], 0x6c3304
mov dword [ebp - 0x428], 0x6c35e4
mov dword [ebp - 0x424], 0x6c35f8
lea edx, [ebp - 0x488]
push edx
push 0xd
mov eax, dword [ebp - 0x4f0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x4f0]
push edx
mov eax, dword [ecx + 0x10]
call eax
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a66e0
mov dword [ebp - 0x4f4], 0
mov ecx, dword [ebp - 0x514]
push ecx
lea ecx, [ebp - 0x4a0]
call fcn.00446660
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4a0]
push edx
lea eax, [ebp - 0x4b8]
push eax
call fcn.005a6e10
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4a0]
call fcn.00446610
cmp dword [ebp - 0x4f4], 0xc
jae 0x5a66ce
mov ecx, dword [ebp - 0x4f4]
mov edx, dword [ecx*4 + 0x70d534]
mov dword [ebp - 0x524], edx
mov eax, dword [ebp - 0x524]
push eax
lea ecx, [ebp - 0x4b8]
push ecx
call fcn.00453f30
add esp, 8
movzx edx, al
mov dword [ebp - 0x528], edx
mov eax, dword [ebp - 0x4f4]
add eax, 1
mov dword [ebp - 0x4f4], eax
cmp dword [ebp - 0x528], 0
je 0x5a66cc
mov ecx, dword [ebp - 0x4f4]
push ecx
mov edx, dword [ebp - 0x4f0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4f0]
push ecx
mov edx, dword [eax + 0x14]
call edx
jmp 0x5a66ce
jmp 0x5a665c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b8]
call fcn.00446610
cmp dword [ebp - 0x4ec], 0
jne 0x5a685a
mov dword [ebp - 0x508], 0
lea eax, [ebp - 0x508]
push eax
call fcn.004474e0
add esp, 4
push eax
push 0x6e6868
call fcn.005a6a70
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a685a
mov dword [ebp - 0x518], 0
lea ecx, [ebp - 0x518]
push ecx
mov edx, dword [ebp - 0x508]
push edx
mov eax, dword [ebp - 0x4f0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x4f0]
push edx
mov eax, dword [ecx + 0x1c]
call eax
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x508]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x508]
push eax
mov ecx, dword [edx + 8]
call ecx
cmp dword [ebp - 0x4ec], 0
jne 0x5a685a
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4f0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x4f0]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x518]
push ecx
mov edx, dword [ebp - 0x4f0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4f0]
push ecx
mov edx, dword [eax + 0x20]
call edx
cmp dword [ebp - 0x4ec], 0
jne 0x5a685a
mov dword [ebp - 0x4f8], 0
lea eax, [ebp - 0x4f8]
push eax
mov ecx, dword [ebp - 0x4f0]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4f0]
push eax
mov ecx, dword [edx + 0x50]
call ecx
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x4ec], 0
jne 0x5a685a
mov dword [ebp - 0x50c], 0
lea edx, [ebp - 0x50c]
push edx
push 0x80058000
mov eax, dword [ebp - 0x4f8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x4f8]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x4f8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4f8]
push eax
mov ecx, dword [edx + 8]
call ecx
cmp dword [ebp - 0x4ec], 0
jne 0x5a685a
mov edx, dword [ebp - 0x50c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00446900
mov eax, dword [ebp - 0x50c]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x4f0]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x4f0]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x5a6a41
xor edx, edx
mov word [ebp - 0x420], dx
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x51c], 0x104
mov ecx, dword [ebp - 0x51c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov dword [ebp - 0x590], 0
push 0x54
push 0
lea ecx, [ebp - 0x58c]
push ecx
call fcn.004e1330
add esp, 0xc
mov dword [ebp - 0x590], 0x58
mov edx, dword [ebp + 8]
mov dword [ebp - 0x58c], edx
mov dword [ebp - 0x55c], 0x88082a
mov dword [ebp - 0x560], 0x6c3600
lea eax, [ebp - 0x420]
mov dword [ebp - 0x574], eax
mov ecx, dword [ebp - 0x51c]
mov dword [ebp - 0x570], ecx
mov dword [ebp - 0x54c], 0x5a6b50
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x584], str.ZIP
mov dword [ebp - 0x578], 0
mov dword [ebp - 0x4fc], 0
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x4d0]
call fcn.00446660
mov dword [ebp - 4], 3
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x4e8]
push ecx
call fcn.005a6e10
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4d0]
call fcn.00446610
cmp dword [ebp - 0x4fc], 0xc
jae 0x5a69e3
mov edx, dword [ebp - 0x4fc]
mov eax, dword [edx*4 + 0x70d534]
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x52c]
push ecx
lea edx, [ebp - 0x4e8]
push edx
call fcn.00453f30
add esp, 8
movzx eax, al
mov dword [ebp - 0x530], eax
mov ecx, dword [ebp - 0x4fc]
add ecx, 1
mov dword [ebp - 0x4fc], ecx
cmp dword [ebp - 0x530], 0
je 0x5a69e1
mov edx, dword [ebp - 0x4fc]
mov dword [ebp - 0x578], edx
jmp 0x5a69e3
jmp 0x5a6980
lea eax, [ebp - 0x590]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
mov dword [ebp - 0x538], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x534], eax
mov ecx, dword [ebp - 0x534]
push ecx
call fcn.00445c30
add esp, 4
mov dword [ebp - 0x4ec], eax
cmp dword [ebp - 0x538], 0
je 0x5a6a2f
lea edx, [ebp - 0x420]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00446900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4e8]
call fcn.00446610
mov eax, dword [ebp - 0x4ec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret 0xc