Function at 0x1001b990
Capabilities:
Check if file exists
Create process on windows
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008207e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e4], ecx
mov ebx, dword [ebp + 8]
push 0
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x2e0], eax
test eax, eax
js 0x1001c076
mov ecx, dword [ebx + 4]
mov eax, 0xdd67c8a7
sub ecx, dword [ebx]
xorps xmm0, xmm0
imul ecx
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x220], 0
add edx, ecx
mov dword [ebp - 0x228], 0
sar edx, 7
mov eax, edx
mov dword [ebp - 0x224], 0
shr eax, 0x1f
mov dword [ebp - 0x220], 0
add eax, edx
je 0x1001bb14
cmp eax, 0x1bacf91
ja 0x1001c09e
imul edi, eax, 0x94
cmp edi, 0x1000
jb 0x1001ba74
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x1001c0a3
push eax
call fcn.10053c2b
add esp, 4
test eax, eax
je 0x1001c0a8
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x1001ba87
test edi, edi
je 0x1001ba85
push edi
call fcn.10053c2b
add esp, 4
mov esi, eax
jmp 0x1001ba87
xor esi, esi
lea eax, [edi + esi]
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov edi, dword [ebp - 0x22c]
mov ebx, dword [ebx + 4]
movq qword [ebp - 0x238], xmm0
mov dword [ebp - 0x230], 0
mov edi, dword [edi]
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x1001bb0e
nop dword [eax]
push edi
mov ecx, esi
call fcn.10012550
add esi, 0x94
add edi, 0x94
mov dword [ebp - 0x234], esi
cmp edi, ebx
jne 0x1001baf0
mov dword [ebp - 0x224], esi
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 4], 2
call fcn.1000cc50
mov esi, dword [0x100a4098]
test esi, esi
je 0x1001bb3a
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2d8], esi
mov byte [ebp - 4], 4
lea edx, [ebp - 0x22c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001bb67
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2d0]
call fcn.1000c570
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001bba5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test esi, esi
je 0x1001bbce
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1001bbce
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1001bbce
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 3
push ecx
cmp eax, dword [ebp - 0x220]
je 0x1001bc0a
mov edx, eax
call fcn.10012280
mov eax, dword [ebp - 0x224]
add esp, 4
add eax, 0x94
mov dword [ebp - 0x224], eax
jmp 0x1001bc1c
push eax
lea ecx, [ebp - 0x228]
call fcn.10011c80
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 1
push ecx
cmp eax, dword [ebp - 0x220]
je 0x1001bc4b
mov edx, eax
call fcn.10012280
add esp, 4
add dword [ebp - 0x224], 0x94
jmp 0x1001bc57
push eax
lea ecx, [ebp - 0x228]
call fcn.10011c80
mov esi, dword [0x100a4098]
test esi, esi
je 0x1001bc6b
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2d8], esi
mov byte [ebp - 4], 6
lea edx, [ebp - 0x22c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 7
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001bca0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2b8]
call fcn.1000c570
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001bcde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test esi, esi
je 0x1001bd07
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1001bd07
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1001bd07
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 2
push ecx
cmp eax, dword [ebp - 0x220]
je 0x1001bd3c
mov edx, eax
call fcn.10012280
add esp, 4
add dword [ebp - 0x224], 0x94
jmp 0x1001bd48
push eax
lea ecx, [ebp - 0x228]
call fcn.10011c80
mov esi, dword [0x100a4098]
test esi, esi
je 0x1001bd5c
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2d8], esi
mov byte [ebp - 4], 8
lea edx, [ebp - 0x22c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov byte [ebp - 4], 9
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001bd90
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2d0]
call fcn.1000c570
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001bdce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test esi, esi
je 0x1001bdf7
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1001bdf7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1001bdf7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 2
push ecx
cmp eax, dword [ebp - 0x220]
je 0x1001be34
mov edx, eax
call fcn.10012280
mov ecx, dword [ebp - 0x224]
add esp, 4
add ecx, 0x94
mov dword [ebp - 0x224], ecx
jmp 0x1001be46
push eax
lea ecx, [ebp - 0x228]
call fcn.10011c80
mov ecx, dword [ebp - 0x224]
sub ecx, dword [ebp - 0x228]
xor edx, edx
mov dword [ebp - 0x2d8], edx
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1001c043
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x2e4]
add eax, edi
push 0
push eax
call fcn.1001c0b0
mov dword [ebp - 0x2e0], eax
test eax, eax
js 0x1001c00c
mov eax, dword [ebp - 0x228]
add eax, edi
cmp dword [eax + 0x8c], 0
je 0x1001c00c
cmp dword [eax], 3
jne 0x1001bf9b
add eax, 0x7c
cmp dword [eax + 0x14], 7
jbe 0x1001becd
mov eax, dword [eax]
push eax
call ebx
test eax, eax
je 0x1001c00c
mov eax, dword [ebp - 0x228]
add eax, edi
push eax
call fcn.1001c500
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x1001c094
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
push str.barU
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0xa
push str.Task_snPin
push eax
call fcn.10007310
mov eax, dword [ebp - 0x228]
add esp, 0xc
add eax, 0x7c
add eax, edi
cmp dword [eax + 0x14], 7
jbe 0x1001bf33
mov eax, dword [eax]
mov esi, dword [ebp - 0x22c]
push 0
push 0
push 0
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x228]
add eax, 0x7c
add eax, edi
cmp dword [eax + 0x14], 7
jbe 0x1001bf5c
mov eax, dword [eax]
push eax
call ebx
test eax, eax
je 0x1001bf7d
mov eax, dword [ebp - 0x228]
add eax, 0x7c
add eax, edi
cmp dword [eax + 0x14], 7
jbe 0x1001bf76
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001c00c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1001c00c
add eax, 0x7c
cmp dword [eax + 0x14], 7
jbe 0x1001bfa6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x228]
cmp dword [esi + edi + 0x2c], 0
je 0x1001c00c
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.10055b90
lea eax, [esi + 0x7c]
add esp, 0xc
add eax, edi
cmp dword [eax + 0x14], 7
jbe 0x1001bfdd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.10061eeb
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x224]
mov eax, 0xdd67c8a7
sub ecx, dword [ebp - 0x228]
add edi, 0x94
inc dword [ebp - 0x2d8]
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x2d8], eax
jb 0x1001be80
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x2d4]
call fcn.1000c8d0
lea ecx, [ebp - 0x228]
call fcn.1000c3c0
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10001410
call fcn.10012250
call fcn.10007770
call fcn.10058b57
int3