Function at 0x433e80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48eb34
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x4b1ae0]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1ae0]
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 0x433f8c
cdq
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0041c270
push eax
lea edx, [esp + 0x34]
push str.SHGetSpecialFolderLocation_failed:
push edx
mov dword [esp + 0x6bc], ebx
call fcn.0040bcc0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b0810
mov byte [esp + 0x6b0], 1
call fcn.0040b380
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x433f5a
mov eax, dword [esp + 0x28]
push eax
call fcn.00473948
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 0x433f7e
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00473948
add esp, 4
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
jmp 0x4341cd
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 0x434030
push ebx
lea edx, [esp + 0x48]
push ebx
push edx
call fcn.0041c270
push eax
lea eax, [esp + 0x34]
push str.SHGetPathFromIDList_failed:
push eax
mov dword [esp + 0x6bc], 2
call fcn.0040bcc0
add esp, 0x18
mov byte [esp + 0x6a4], 3
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b0810
call fcn.0040b380
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jb 0x43400b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00473948
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 0x433f7e
mov edx, dword [esp + 0x48]
push edx
jmp 0x433f76
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 0x434080
cdq
push edx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.0041c270
push eax
lea eax, [esp + 0x34]
push str.SHGetSpecialFolderLocation_failed:
push eax
mov dword [esp + 0x6bc], 4
call fcn.0040bcc0
add esp, 0x18
mov byte [esp + 0x6a4], 5
jmp 0x433fe5
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.00429c40
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], 0x431890
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 0x434138
push str.SHBrowseForFolder_returned_0
mov ecx, 0x4b0810
call fcn.0040b900
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4341cd
push eax
call fcn.00473f71
add esp, 4
jmp 0x4341cd
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 0x4341b3
push ebx
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.0041c270
push eax
lea edx, [esp + 0x54]
push str.SHGetPathFromIDList_failed:
push edx
mov byte [esp + 0x6bc], 7
call fcn.0040bcc0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b0810
mov byte [esp + 0x6b0], 8
call fcn.0040b380
lea ecx, [esp + 0x44]
call fcn.0040ae00
lea ecx, [esp + 0x24]
call fcn.0040ae00
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
jmp 0x4341c4
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0042a950
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00409fb0
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.00474468
add esp, 0x694
ret