Function at 0x44f550
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x599f83
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6204e0]
xor eax, esp
push eax
lea eax, [esp + 0x69c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6b0]
mov ecx, dword [esp + 0x6bc]
mov esi, dword [esp + 0x6ac]
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x6b4]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
je 0x44f65c
cdq
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040ec70
push eax
lea edx, [esp + 0x34]
push str.SHGetSpecialFolderLocation_failed:
push edx
mov dword [esp + 0x6bc], ebx
call fcn.0040c620
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x6187d0
mov byte [esp + 0x6b0], 1
call fcn.0040b880
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x44f62a
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x5c], edi
jb 0x44f64e
mov ecx, dword [esp + 0x48]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
jmp 0x44f89d
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x288]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ole32.dll_CoTaskMemFree]
push ecx
mov edi, eax
call ebp
cmp edi, 1
je 0x44f700
push ebx
lea edx, [esp + 0x48]
push ebx
push edx
call fcn.0040ec70
push eax
lea eax, [esp + 0x34]
push str.SHGetPathFromIDList_failed:
push eax
mov dword [esp + 0x6bc], 2
call fcn.0040c620
add esp, 0x18
mov byte [esp + 0x6a4], 3
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x6187d0
call fcn.0040b880
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x44f6db
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x5c], edi
jb 0x44f64e
mov edx, dword [esp + 0x48]
push edx
jmp 0x44f646
mov ecx, dword [esp + 0x6b8]
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
je 0x44f750
cdq
push edx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.0040ec70
push eax
lea eax, [esp + 0x34]
push str.SHGetSpecialFolderLocation_failed:
push eax
mov dword [esp + 0x6bc], 4
call fcn.0040c620
add esp, 0x18
mov byte [esp + 0x6a4], 5
jmp 0x44f6b5
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x6ac], 6
call fcn.0043d560
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x74], ecx
add esp, 8
lea ecx, [esp + 0x60]
lea edx, [esp + 0x490]
lea eax, [esp + 0x288]
push ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], 0x41
mov dword [esp + 0x78], 0x44c3e0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edx, dword [esp + 0x14]
push edx
mov edi, eax
call ebp
cmp edi, ebx
jne 0x44f808
push str.SHBrowseForFolder_returned_0
mov ecx, 0x6187d0
call fcn.0040bc20
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x44f89d
push eax
call sub.MSVCR90.dll_free
add esp, 4
jmp 0x44f89d
lea eax, [esp + 0x80]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push edi
mov dword [esp + 0x1c], eax
call ebp
cmp dword [esp + 0x18], 1
je 0x44f883
push ebx
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.0040ec70
push eax
lea edx, [esp + 0x54]
push str.SHGetPathFromIDList_failed:
push edx
mov byte [esp + 0x6bc], 7
call fcn.0040c620
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x6187d0
mov byte [esp + 0x6b0], 8
call fcn.0040b880
lea ecx, [esp + 0x44]
call fcn.0040b300
lea ecx, [esp + 0x24]
call fcn.0040b300
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
jmp 0x44f894
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0043e5b0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.0040a0d0
mov eax, esi
mov ecx, dword [esp + 0x69c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x684]
xor ecx, esp
call fcn.0058ecc6
add esp, 0x694
ret