Function at 0x421ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45066b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x48100c]
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 - 0x88], ebx
mov edi, ecx
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push edi
movq qword [ebp - 0x18], xmm0
call fcn.0040a9e0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004126f0
test al, al
je 0x421e80
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
xor bl, bl
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
movq qword [ebp - 0x2c], xmm0
call fcn.0040a9a0
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x46fd20
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040b580
mov esi, eax
test esi, esi
je 0x421e43
lea ecx, [ebp - 0x18]
call fcn.0040ab30
sub eax, 2
cmp esi, eax
jg 0x421e43
lea ecx, [ebp - 0x18]
call fcn.0040ab30
sub eax, esi
lea ecx, [ebp - 0x18]
push eax
lea eax, [esi + 1]
push eax
call fcn.0040abf0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c0f0
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b4a0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x421e43
lea ecx, [ebp - 0x18]
call fcn.0040abf0
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x421e43
mov ecx, dword [ebp - 0x78]
lea esi, [ebp - 0x1c]
push esi
push 0x452740
push 0
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x421e3a
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push 0
mov esi, dword [eax]
lea eax, [ebp - 0x70]
push eax
push 0
call fcn.0040abf0
push eax
push 0
push 0
push dword [ebp - 0x1c]
call dword [esi + 0xc]
test eax, eax
jne 0x421e3a
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x74]
push edx
push 0
push 0x452760
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push 1
push 0
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x421e3a
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x74]
push edx
push dword [ebp - 0x88]
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 - 0x20]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x421e51
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x421e5e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x421e6b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x421e78
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0x2c]
jmp 0x422222
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x470180
lea ecx, [ebp - 0x18]
call fcn.0040b580
mov esi, eax
test esi, esi
jne 0x421ee0
push 0x104
push eax
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0040ae60
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 - 0x18]
call fcn.0040b830
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
call fcn.0040c8c0
mov bl, al
jmp 0x422227
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.0040a9a0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040ab30
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.0040abf0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040c0f0
push str..lnk
lea ecx, [ebp - 0x24]
call fcn.0040aa90
test al, al
je 0x421fdf
push 0x38
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00435d50
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.0040abf0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00410320
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00410510
push eax
lea ecx, [ebp - 0x18]
call fcn.0040aa50
lea ecx, [ebp - 0x18]
call fcn.0040ab30
test eax, eax
je 0x421f86
push dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push edi
mov dword [ebx], eax
call fcn.0040c8c0
lea ecx, [ebp - 0x6c]
mov bl, al
call fcn.00410670
jmp 0x42221f
lea ecx, [ebp - 0x6c]
call fcn.00410490
push eax
lea ecx, [ebp - 0x18]
call fcn.0040aa50
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push esi
push edi
call fcn.0040c8c0
lea ecx, [ebp - 0x18]
call fcn.0040abf0
mov ecx, eax
call fcn.004126f0
test al, al
je 0x421fd0
push esi
mov edx, ebx
mov ecx, edi
call fcn.00421ca0
lea ecx, [ebp - 0x6c]
mov bl, al
call fcn.00410670
jmp 0x42221f
lea ecx, [ebp - 0x6c]
mov bl, 1
call fcn.00410670
jmp 0x42221f
sub esp, 0x28
lea ecx, [ebp - 0x24]
push 0
push str.HKCR_
call fcn.0040bb40
push 0x20019
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
call fcn.0040abf0
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d3d0
push 0x46ec74
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
push eax
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x84], xmm0
call fcn.0040d460
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 - 0x84]
call fcn.0040d2b0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x7c], 1
je 0x422064
xor bl, bl
jmp 0x42220c
push ecx
push dword [ebp - 0x84]
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.0040a9e0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.DefaultIcon
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.0040abf0
push eax
push str.HKCR_
lea ecx, [ebp - 0x24]
call fcn.0040ab90
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040abf0
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d550
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 - 0x84]
call fcn.0040d2d0
mov esi, dword [ebp - 0x7c]
cmp esi, 1
je 0x4221ca
cmp esi, 2
je 0x4221ca
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.ShellOpencommand
lea ecx, [ebp - 0x2c]
call fcn.0040abf0
push eax
push str.HKCR_
lea ecx, [ebp - 0x24]
call fcn.0040ab90
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040abf0
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d550
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 - 0x84]
call fcn.0040d2d0
mov esi, dword [ebp - 0x7c]
cmp esi, 1
je 0x42216e
cmp esi, 2
je 0x42216e
xor bl, bl
jmp 0x422204
push dword [ebp - 0x84]
lea ecx, [ebp - 0x18]
call fcn.0040aa50
cmp esi, 2
jne 0x422189
lea ecx, [ebp - 0x18]
call fcn.0040ad80
push 0
push 1
push 1
push 0
push str..exe
lea ecx, [ebp - 0x18]
call fcn.0040b580
test eax, eax
je 0x4221ae
add eax, 3
lea ecx, [ebp - 0x18]
push eax
call fcn.0040b4a0
push 0
lea ecx, [ebp - 0x18]
call fcn.0040aac0
cmp word [eax], 0x22
jne 0x4221e5
push 1
lea ecx, [ebp - 0x18]
call fcn.0040b520
jmp 0x4221e5
push dword [ebp - 0x84]
lea ecx, [ebp - 0x18]
call fcn.0040aa50
cmp esi, 2
jne 0x4221e5
lea ecx, [ebp - 0x18]
call fcn.0040ad80
lea ecx, [ebp - 0x18]
call fcn.0040abf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathParseIconLocationW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebx], eax
push edi
call fcn.0040c8c0
mov bl, al
lea ecx, [ebp - 0x2c]
call fcn.0040aad0
lea ecx, [ebp - 0x84]
call fcn.0040aad0
lea ecx, [ebp - 0x1c]
call fcn.0040d450
lea ecx, [ebp - 0x24]
call fcn.0040aad0
lea ecx, [ebp - 0x18]
call fcn.0040aad0
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.004310db
mov esp, ebp
pop ebp
ret 4