Function at 0x431e10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48a974
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x4acab8]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
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 0x431f1c
cdq
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0041ab30
push eax
lea edx, [esp + 0x34]
push str.SHGetSpecialFolderLocation_failed:
push edx
mov dword [esp + 0x6bc], ebx
call fcn.0040bcf0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4ab808
mov byte [esp + 0x6b0], 1
call fcn.0040b360
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x431eea
mov eax, dword [esp + 0x28]
push eax
call fcn.0046fa18
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 0x431f0e
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046fa18
add esp, 4
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
jmp 0x43215d
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 0x431fc0
push ebx
lea edx, [esp + 0x48]
push ebx
push edx
call fcn.0041ab30
push eax
lea eax, [esp + 0x34]
push str.SHGetPathFromIDList_failed:
push eax
mov dword [esp + 0x6bc], 2
call fcn.0040bcf0
add esp, 0x18
mov byte [esp + 0x6a4], 3
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4ab808
call fcn.0040b360
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x431f9b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0046fa18
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 0x431f0e
mov edx, dword [esp + 0x48]
push edx
jmp 0x431f06
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 0x432010
cdq
push edx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.0041ab30
push eax
lea eax, [esp + 0x34]
push str.SHGetSpecialFolderLocation_failed:
push eax
mov dword [esp + 0x6bc], 4
call fcn.0040bcf0
add esp, 0x18
mov byte [esp + 0x6a4], 5
jmp 0x431f75
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.00427f10
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], 0x42f820
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 0x4320c8
push str.SHBrowseForFolder_returned_0
mov ecx, 0x4ab808
call fcn.0040b660
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x43215d
push eax
call fcn.00470041
add esp, 4
jmp 0x43215d
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 0x432143
push ebx
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.0041ab30
push eax
lea edx, [esp + 0x54]
push str.SHGetPathFromIDList_failed:
push edx
mov byte [esp + 0x6bc], 7
call fcn.0040bcf0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4ab808
mov byte [esp + 0x6b0], 8
call fcn.0040b360
lea ecx, [esp + 0x44]
call fcn.0040ae10
lea ecx, [esp + 0x24]
call fcn.0040ae10
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
jmp 0x432154
lea eax, [esp + 0x80]
push eax
push esi
call fcn.00428bf0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00409fc0
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.00470538
add esp, 0x694
ret