Function at 0x413f50
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1084
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1080], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x4142c1
push 0xffff0000
push 0
push 0x1101
push dword [ebx]
mov dword [esp + 0x2c], 0xf0000000
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
je 0x413fd7
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x4142d9
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [eax]
push 1
push eax
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x541740]
call esi
xor eax, eax
mov dword [esp + 0x20], 0x27
test dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
je 0x41403f
mov dword [esp + 0x40], 1
mov dword [esp + 0x20], 0x67
mov ecx, dword [0x5e3c10]
push 0xc
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
call esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x4142d9
push 0x800
lea eax, [esp + 0x94]
push eax
push 1
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.00416150
test al, al
je 0x4142d9
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x90]
xor edi, edi
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x4140c1
movzx eax, word [ebp]
mov edi, 2
test ax, ax
je 0x4140c1
mov edx, eax
mov ecx, ebp
mov edi, edi
movzx eax, dx
add ecx, eax
add edi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4140b0
mov ecx, dword [0x5e3c10]
push edi
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
call esi
mov esi, eax
mov dword [esp + 0x4c], esi
test esi, esi
je 0x4142d9
push edi
push 0
push esi
call fcn.005201d0
push edi
push ebp
push esi
call fcn.0051f6b0
add esp, 0x18
push dword [esp + 0x10]
call fcn.004143d0
mov ebp, dword [esp + 0x18]
mov ecx, ebx
mov dword [ebp + 4], eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00414f60
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x541740]
call esi
mov ecx, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x414161
movzx eax, word [ecx]
mov edi, 2
test ax, ax
je 0x414161
mov edx, eax
nop
movzx eax, dx
add ecx, eax
add edi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x414150
mov ecx, dword [0x5e3c10]
push edi
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
call esi
mov esi, eax
test esi, esi
je 0x4142f2
push edi
push 0
push esi
call fcn.005201d0
push edi
push dword [esp + 0x28]
push esi
call fcn.0051f6b0
add esp, 0x18
mov dword [ebp + 8], esi
lea eax, [esp + 0x50]
mov dword [esp + 0x44], ebp
mov ecx, 0xa
lea esi, [esp + 0x20]
lea edi, [esp + 0x58]
push eax
push 0
push 0x1132
push dword [ebx]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0xffff0000
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov ecx, ebx
push esi
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [ebx]
call fcn.00414790
push esi
push 2
push 0x1102
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x48]
push eax
push 0
push 0
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push esi
push 4
push 0x110a
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
je 0x41428f
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
push eax
push 0
push 0x113e
push dword [ebx]
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
push dword [eax + 8]
mov esi, dword [ecx]
push dword [esp + 0x4c]
push 0
mov esi, dword [esi + 0x1c]
push ecx
mov ecx, esi
call dword [0x541740]
call esi
mov ecx, dword [ebx]
push edi
test eax, eax
je 0x41427e
push 1
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x414220
jmp 0x41428f
push 2
push 0x1102
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 4], edi
mov eax, dword [0x5e3c10]
push dword [esp + 0x4c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
mov eax, dword [0x5e3c10]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4142d9
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
call esi
mov ecx, dword [esp + 0x1090]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1084
ret
mov dword [ebp + 8], esi
jmp 0x4142d9