Function at 0x41ef40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45350e
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0xa4], ebx
mov edi, ecx
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push edi
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.00409a00
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00411030
test al, al
je 0x41f159
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
xor bl, bl
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
call fcn.004099b0
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x46d668
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040a7e0
mov esi, eax
test esi, esi
je 0x41f112
lea ecx, [ebp - 0x20]
call fcn.00409b70
sub eax, 2
cmp esi, eax
jg 0x41f112
lea ecx, [ebp - 0x20]
call fcn.00409b70
sub eax, esi
lea ecx, [ebp - 0x20]
push eax
lea eax, [esi + 1]
push eax
call fcn.00409c40
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b340
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a6f0
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x41f112
lea ecx, [ebp - 0x20]
call fcn.00409c40
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x41f112
mov ecx, dword [ebp - 0x94]
lea esi, [ebp - 0x14]
push esi
push 0x4546e0
push 0
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x41f106
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push 0
mov esi, dword [eax]
lea eax, [ebp - 0x8c]
push eax
push 0
call fcn.00409c40
push eax
push 0
push 0
push dword [ebp - 0x14]
call dword [esi + 0xc]
test eax, eax
jne 0x41f106
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x90]
push edx
push 0
push 0x454700
mov ecx, dword [eax]
lea edx, [ebp - 0x8c]
push edx
push 1
push 0
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x41f106
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x90]
push edx
push dword [ebp - 0xa4]
push dword [ebp + 8]
mov ecx, dword [eax]
push edi
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
sete bl
push dword [ebp - 0xa8]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x41f123
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x41f133
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41f140
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x41f528
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x41f528
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x46dab8
lea ecx, [ebp - 0x20]
call fcn.0040a7e0
mov esi, eax
test esi, esi
jne 0x41f1b9
push 0x104
push eax
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00409f00
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Shell32.dll
lea ecx, [ebp - 0x20]
call fcn.0040aa90
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
call fcn.0040bac0
mov bl, al
jmp 0x41f530
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.004099b0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00409b70
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00409c40
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b340
push str..lnk
lea ecx, [ebp - 0x2c]
call fcn.00409ab0
test al, al
je 0x41f2d4
push 0x4c
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0043eb00
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00409c40
push eax
lea ecx, [ebp - 0x88]
call fcn.0040ef00
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0040f100
push eax
lea ecx, [ebp - 0x20]
call fcn.00409a70
lea ecx, [ebp - 0x20]
call fcn.00409b70
test eax, eax
je 0x41f272
push dword [ebp + 8]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x20]
push edi
mov dword [ebx], eax
call fcn.0040bac0
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.0040f260
jmp 0x41f528
lea ecx, [ebp - 0x88]
call fcn.0040f080
push eax
lea ecx, [ebp - 0x20]
call fcn.00409a70
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push esi
push edi
call fcn.0040bac0
lea ecx, [ebp - 0x20]
call fcn.00409c40
mov ecx, eax
call fcn.00411030
test al, al
je 0x41f2c2
push esi
mov edx, ebx
mov ecx, edi
call fcn.0041ef40
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.0040f260
jmp 0x41f528
lea ecx, [ebp - 0x88]
mov bl, 1
call fcn.0040f260
jmp 0x41f528
sub esp, 0x28
lea ecx, [ebp - 0x2c]
push 0
push str.HKCR_
call fcn.0040ada0
push ecx
push 0x20019
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
call fcn.00409c40
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c670
push 0x46c60c
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
push eax
lea ecx, [ebp - 0x14]
movq qword [ebp - 0xa0], xmm0
call fcn.0040c6e0
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0xa0]
call fcn.0040c550
mov byte [ebp - 4], 5
cmp dword [ebp - 0x98], 1
je 0x41f360
xor bl, bl
jmp 0x41f515
push ecx
push dword [ebp - 0xa0]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.00409a00
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.DefaultIcon
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00409c40
push eax
push str.HKCR_
lea ecx, [ebp - 0x2c]
call fcn.00409be0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00409c40
push eax
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c7d0
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0xa0]
call fcn.0040c570
mov esi, dword [ebp - 0x98]
cmp esi, 1
je 0x41f4d3
cmp esi, 2
je 0x41f4d3
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.ShellOpencommand
lea ecx, [ebp - 0x38]
call fcn.00409c40
push eax
push str.HKCR_
lea ecx, [ebp - 0x2c]
call fcn.00409be0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00409c40
push eax
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c7d0
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0xa0]
call fcn.0040c570
mov esi, dword [ebp - 0x98]
cmp esi, 1
je 0x41f477
cmp esi, 2
je 0x41f477
xor bl, bl
jmp 0x41f50d
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x20]
call fcn.00409a70
cmp esi, 2
jne 0x41f492
lea ecx, [ebp - 0x20]
call fcn.00409e20
push 0
push 1
push 1
push 0
push str..exe
lea ecx, [ebp - 0x20]
call fcn.0040a7e0
test eax, eax
je 0x41f4b7
add eax, 3
lea ecx, [ebp - 0x20]
push eax
call fcn.0040a6f0
push 0
lea ecx, [ebp - 0x20]
call fcn.00409ae0
cmp word [eax], 0x22
jne 0x41f4ee
push 1
lea ecx, [ebp - 0x20]
call fcn.0040a770
jmp 0x41f4ee
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x20]
call fcn.00409a70
cmp esi, 2
jne 0x41f4ee
lea ecx, [ebp - 0x20]
call fcn.00409e20
lea ecx, [ebp - 0x20]
call fcn.00409c40
push eax
call dword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [ebx], eax
push edi
call fcn.0040bac0
mov bl, al
lea ecx, [ebp - 0x38]
call fcn.00409af0
lea ecx, [ebp - 0xa0]
call fcn.00409af0
lea ecx, [ebp - 0x14]
call fcn.0040c6c0
lea ecx, [ebp - 0x2c]
call fcn.00409af0
lea ecx, [ebp - 0x20]
call fcn.00409af0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042520b
mov esp, ebp
pop ebp
ret 4