Function at 0x421440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e99b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x47b00c]
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.0040ac00
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00412970
test al, al
je 0x421620
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.0040abc0
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x46dcd0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040b7a0
mov esi, eax
test esi, esi
je 0x4215e3
lea ecx, [ebp - 0x18]
call fcn.0040ad50
sub eax, 2
cmp esi, eax
jg 0x4215e3
lea ecx, [ebp - 0x18]
call fcn.0040ad50
sub eax, esi
lea ecx, [ebp - 0x18]
push eax
lea eax, [esi + 1]
push eax
call fcn.0040ae10
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c310
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b6c0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x4215e3
lea ecx, [ebp - 0x18]
call fcn.0040ae10
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4215e3
mov ecx, dword [ebp - 0x78]
lea esi, [ebp - 0x1c]
push esi
push 0x450750
push 0
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x4215da
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.0040ae10
push eax
push 0
push 0
push dword [ebp - 0x1c]
call dword [esi + 0xc]
test eax, eax
jne 0x4215da
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x74]
push edx
push 0
push 0x450770
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push 1
push 0
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x4215da
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 0x4215f1
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x4215fe
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x42160b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x421618
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0x2c]
jmp 0x4219c2
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x46e130
lea ecx, [ebp - 0x18]
call fcn.0040b7a0
mov esi, eax
test esi, esi
jne 0x421680
push 0x104
push eax
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0040b080
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.0040ba50
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
call fcn.0040caa0
mov bl, al
jmp 0x4219c7
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.0040abc0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040ad50
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.0040ae10
push eax
lea ecx, [ebp - 0x24]
call fcn.0040c310
push str..lnk
lea ecx, [ebp - 0x24]
call fcn.0040acb0
test al, al
je 0x42177f
push 0x38
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00435ae0
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.0040ae10
push eax
lea ecx, [ebp - 0x6c]
call fcn.00410830
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00410a20
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ac70
lea ecx, [ebp - 0x18]
call fcn.0040ad50
test eax, eax
je 0x421726
push dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push edi
mov dword [ebx], eax
call fcn.0040caa0
lea ecx, [ebp - 0x6c]
mov bl, al
call fcn.00410b80
jmp 0x4219bf
lea ecx, [ebp - 0x6c]
call fcn.004109a0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ac70
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push esi
push edi
call fcn.0040caa0
lea ecx, [ebp - 0x18]
call fcn.0040ae10
mov ecx, eax
call fcn.00412970
test al, al
je 0x421770
push esi
mov edx, ebx
mov ecx, edi
call fcn.00421440
lea ecx, [ebp - 0x6c]
mov bl, al
call fcn.00410b80
jmp 0x4219bf
lea ecx, [ebp - 0x6c]
mov bl, 1
call fcn.00410b80
jmp 0x4219bf
sub esp, 0x28
lea ecx, [ebp - 0x24]
push 0
push str.HKCR_
call fcn.0040bd60
push 0x20019
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
call fcn.0040ae10
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d5b0
push 0x46cc74
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.0040d640
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.0040d490
mov byte [ebp - 4], 5
cmp dword [ebp - 0x7c], 1
je 0x421804
xor bl, bl
jmp 0x4219ac
push ecx
push dword [ebp - 0x84]
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.0040ac00
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.0040ae10
push eax
push str.HKCR_
lea ecx, [ebp - 0x24]
call fcn.0040adb0
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040ae10
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d730
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.0040d4b0
mov esi, dword [ebp - 0x7c]
cmp esi, 1
je 0x42196a
cmp esi, 2
je 0x42196a
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.0040ae10
push eax
push str.HKCR_
lea ecx, [ebp - 0x24]
call fcn.0040adb0
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040ae10
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d730
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.0040d4b0
mov esi, dword [ebp - 0x7c]
cmp esi, 1
je 0x42190e
cmp esi, 2
je 0x42190e
xor bl, bl
jmp 0x4219a4
push dword [ebp - 0x84]
lea ecx, [ebp - 0x18]
call fcn.0040ac70
cmp esi, 2
jne 0x421929
lea ecx, [ebp - 0x18]
call fcn.0040afa0
push 0
push 1
push 1
push 0
push str..exe
lea ecx, [ebp - 0x18]
call fcn.0040b7a0
test eax, eax
je 0x42194e
add eax, 3
lea ecx, [ebp - 0x18]
push eax
call fcn.0040b6c0
push 0
lea ecx, [ebp - 0x18]
call fcn.0040ace0
cmp word [eax], 0x22
jne 0x421985
push 1
lea ecx, [ebp - 0x18]
call fcn.0040b740
jmp 0x421985
push dword [ebp - 0x84]
lea ecx, [ebp - 0x18]
call fcn.0040ac70
cmp esi, 2
jne 0x421985
lea ecx, [ebp - 0x18]
call fcn.0040afa0
lea ecx, [ebp - 0x18]
call fcn.0040ae10
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.0040caa0
mov bl, al
lea ecx, [ebp - 0x2c]
call fcn.0040acf0
lea ecx, [ebp - 0x84]
call fcn.0040acf0
lea ecx, [ebp - 0x1c]
call fcn.0040d630
lea ecx, [ebp - 0x24]
call fcn.0040acf0
lea ecx, [ebp - 0x18]
call fcn.0040acf0
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.00430eab
mov esp, ebp
pop ebp
ret 4