Function at 0x4021c0
Capabilities:
Create shortcut via ishelllink
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43cb39
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x451690]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [0x451690]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
push 0
mov dword [esp + 0x138], 2
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x40229d
mov byte [esp + 0x134], 1
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40223d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x134], 0
mov eax, dword [esp + 0x140]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4025ac
push 0x104
lea ecx, [esp + 0x25]
push 0
push ecx
mov byte [esp + 0x13], 0
mov byte [esp + 0x2c], 0
call fcn.0042a4e0
add esp, 0xc
call fcn.0040f866
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4022d5
push 0x80004005
call fcn.004020b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x138], 3
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4024f6
lea edx, [esp + 0x18]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4024f6
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40233c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push 0x443e2c
push ecx
call fcn.00401970
add esp, 0xc
push 0x443e30
lea ecx, [esp + 0xc]
call fcn.00405bf0
mov eax, dword [esp + 0x13c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.004065f0
push 0x443e34
lea ecx, [esp + 0xc]
call fcn.00405bf0
mov ecx, dword [esp + 8]
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x4023ae
push 0
lea ecx, [esp + 0xc]
call fcn.00401ed0
mov edx, dword [esp + 8]
push 0
push edx
call fcn.00428065
add esp, 8
test eax, eax
jne 0x4023d2
push eax
lea ecx, [esp + 0xc]
call fcn.00401f20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0xc]
push eax
push 0x44329c
push 1
push 0
push 0x4432ac
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4024e6
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00405e10
add esp, 0xc
mov byte [esp + 0x134], 4
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x50]
push ecx
call eax
mov byte [esp + 0x134], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402457
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x140]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
mov ecx, dword [eax]
push 0x4432dc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4024d6
push 0
lea ecx, [esp + 0xc]
call fcn.00401f20
push eax
lea ecx, [esp + 0x14]
call fcn.00405fa0
mov byte [esp + 0x134], 5
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x4024c5
mov byte [esp + 7], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 3
call fcn.00402090
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4024e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4024f6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x134], 2
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x134], 1
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40254f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x134], 0
mov eax, dword [esp + 0x140]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40257a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0x144]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 7]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00427974
add esp, 0x134
ret