Function at 0x410fd0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x203c
call fcn.004ebbf0
mov eax, dword [0x528af4]
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 0x411102
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 0x4110e5
nop
push edi
push 3
push 0x110a
push dword [ebx]
call ebp
mov edi, eax
test edi, edi
je 0x4112b0
lea eax, [esp + 0x20]
push eax
push 0
push 0x113e
push dword [ebx]
call ebp
test eax, eax
je 0x4110b1
cmp word [esi], 0
je 0x41109f
push 0x800
lea eax, [esp + 0x4c]
push eax
call fcn.00477290
push 0x800
push esi
lea eax, [esp + 0x50]
push eax
call fcn.0048e6d0
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.0048e710
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 0x411050
xor al, al
mov ecx, dword [esp + 0x2048]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebbd8
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 0x4111f0
cmp word [0x529558], 0
jne 0x411158
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x13
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 0x529558
push dword [esp + 0x14]
call ebx
mov eax, dword [0x595554]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, 0x529558
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411160
sub ecx, edx
lea eax, [esp + 0x48]
sar ecx, 1
push ecx
push eax
push 0x529558
call fcn.004f2e5f
add esp, 0xc
test eax, eax
jne 0x4111cd
lea eax, [esp + 0x1048]
push eax
lea eax, [edi + 4]
push eax
push edi
push ebp
call fcn.00410d60
test al, al
je 0x4111d7
push 0x800
lea eax, [esp + 0x104c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0048e710
push dword [esp + 0x205c]
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.0048e710
mov al, 1
jmp 0x4110e7
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.0048e710
mov al, 1
jmp 0x4110e7
call fcn.0046bee0
cmp eax, 0x601
jb 0x4110e5
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4110e5
push str.SHCreateItemFromIDList
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4110e5
lea ecx, [esp + 0x14]
push ecx
push 0x50c870
push dword [edi + 8]
call eax
test eax, eax
jne 0x4110e5
lea eax, [esp + 0x18]
push eax
push 0x50c860
push 0
push dword [esp + 0x20]
call fcn.00411cd0
test eax, eax
jne 0x4110e5
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x50c870
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x4110e5
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 0x4110e5
push dword [esp + 0x205c]
push dword [esp + 0x14]
push esi
call fcn.0048e710
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x4110e7