Function at 0x411a80
Capabilities:
Get common file path

Disassembly:
mov eax, 0x203c
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x2038], eax
mov eax, dword [esp + 0x2044]
push ebx
push ebp
mov ebp, dword [esp + 0x2048]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x2054]
push edi
mov edi, dword [eax + 0x24]
test edi, edi
jne 0x411bb2
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov word [esi], cx
mov edi, dword [eax + 4]
lea eax, [esp + 0x48]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push ecx
push 0x113e
push dword [ebx]
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], 0x800
call ebp
test eax, eax
je 0x411b95
nop
push edi
push 3
push 0x110a
push dword [ebx]
call ebp
mov edi, eax
test edi, edi
je 0x411d65
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
call ebp
test eax, eax
je 0x411b61
cmp word [esi], 0
je 0x411b4f
push 0x800
lea eax, [esp + 0x4c]
push eax
call fcn.0047bc90
push 0x800
push esi
lea eax, [esp + 0x50]
push eax
call fcn.00494790
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.004947d0
lea eax, [esp + 0x48]
mov dword [esp + 0x20], 1
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], 0x800
call ebp
test eax, eax
jne 0x411b00
xor al, al
mov ecx, dword [esp + 0x2048]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x203c
ret 0x10
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
xor eax, eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x48]
push eax
push dword [edi + 8]
call ebx
test eax, eax
je 0x411ca5
cmp word [0x544d80], 0
jne 0x411c08
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x13
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x544d80
push dword [esp + 0x14]
call ebx
mov eax, dword [0x5ac874]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, 0x544d80
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411c10
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0x544d80
call fcn.004fecf4
add esp, 0xc
test eax, eax
jne 0x411c82
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [edi + 4]
push eax
push edi
push ebp
call fcn.00411820
test al, al
je 0x411c8c
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004947d0
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.004947d0
mov al, 1
jmp 0x411b97
lea eax, [esp + 0x48]
push eax
push dword [edi + 8]
call ebx
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.004947d0
mov al, 1
jmp 0x411b97
call fcn.00470750
cmp eax, 0x601
jb 0x411b95
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x411b95
push str.SHCreateItemFromIDList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411b95
lea ecx, [esp + 0x14]
push ecx
push 0x5189d4
push dword [edi + 8]
call eax
test eax, eax
jne 0x411b95
lea eax, [esp + 0x18]
push eax
push 0x5189c4
push 0
push dword [esp + 0x20]
call fcn.00412740
test eax, eax
jne 0x411b95
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x5189d4
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x411b95
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0x80058000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
jne 0x411b95
push dword [esp + 0x205c]
push dword [esp + 0x14]
push esi
call fcn.004947d0
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x411b97