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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d30ee
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x4fe0c0]
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 dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
push 0
mov dword [ebp - 0x228], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x2d4], eax
test eax, eax
js 0x460a22
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
sub eax, dword [ebx]
sar eax, 2
imul eax, eax, 0x914c1bad
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
test eax, eax
je 0x4604b5
cmp eax, 0x1bacf91
ja 0x460a4a
imul edi, eax, 0x94
cmp edi, 0x1000
jb 0x46041c
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x460a4f
push eax
call fcn.0049ca7e
add esp, 4
test eax, eax
je 0x460a54
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x46042f
test edi, edi
je 0x46042d
push edi
call fcn.0049ca7e
add esp, 4
mov esi, eax
jmp 0x46042f
xor esi, esi
lea eax, [edi + esi]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov edi, dword [ebp - 0x228]
mov ebx, dword [ebx + 4]
movq qword [ebp - 0x234], xmm0
mov dword [ebp - 0x22c], 0
mov edi, dword [edi]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x4604af
push edi
mov ecx, esi
call fcn.004581a0
add esi, 0x94
add edi, 0x94
mov dword [ebp - 0x230], esi
cmp edi, ebx
jne 0x460491
mov dword [ebp - 0x220], esi
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 4], 2
call fcn.00452560
mov esi, dword [0x51345c]
test esi, esi
je 0x4604db
lock inc dword [esi + 4]
mov esi, dword [0x51345c]
mov ecx, dword [0x513458]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], esi
mov byte [ebp - 4], 4
lea edx, [ebp - 0x228]
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]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460510
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c4]
call fcn.004520b0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46054e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test esi, esi
je 0x460577
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x460577
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x460577
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2c8], 3
push ecx
cmp eax, dword [ebp - 0x21c]
je 0x4605b0
mov ecx, eax
call fcn.004581a0
mov eax, dword [ebp - 0x220]
add eax, 0x94
mov dword [ebp - 0x220], eax
jmp 0x4605c2
push eax
lea ecx, [ebp - 0x224]
call fcn.00457c00
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2c8], 1
push ecx
cmp eax, dword [ebp - 0x21c]
je 0x4605ee
mov ecx, eax
call fcn.004581a0
add dword [ebp - 0x220], 0x94
jmp 0x4605fa
push eax
lea ecx, [ebp - 0x224]
call fcn.00457c00
mov esi, dword [0x51345c]
test esi, esi
je 0x46060e
lock inc dword [esi + 4]
mov esi, dword [0x51345c]
mov ecx, dword [0x513458]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], esi
mov byte [ebp - 4], 6
lea edx, [ebp - 0x228]
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 0x460640
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2ac]
call fcn.004520b0
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46067e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test esi, esi
je 0x4606a7
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4606a7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4606a7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2c8], 2
push ecx
cmp eax, dword [ebp - 0x21c]
je 0x4606d9
mov ecx, eax
call fcn.004581a0
add dword [ebp - 0x220], 0x94
jmp 0x4606e5
push eax
lea ecx, [ebp - 0x224]
call fcn.00457c00
mov esi, dword [0x51345c]
test esi, esi
je 0x4606f9
lock inc dword [esi + 4]
mov esi, dword [0x51345c]
mov ecx, dword [0x513458]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], esi
mov byte [ebp - 4], 8
lea edx, [ebp - 0x228]
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460726
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c4]
call fcn.004520b0
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x460764
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test esi, esi
je 0x46078d
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x46078d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x46078d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2c8], 2
push ecx
cmp eax, dword [ebp - 0x21c]
je 0x4607c6
mov ecx, eax
call fcn.004581a0
mov eax, dword [ebp - 0x220]
add eax, 0x94
mov dword [ebp - 0x220], eax
jmp 0x4607d8
push eax
lea ecx, [ebp - 0x224]
call fcn.00457c00
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x224]
xor ebx, ebx
sar eax, 2
imul eax, eax, 0x914c1bad
test eax, eax
je 0x4609b8
xor edi, edi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x2d8]
add eax, edi
push 0
push eax
call fcn.00460a60
mov dword [ebp - 0x2d4], eax
test eax, eax
js 0x460994
mov eax, dword [ebp - 0x224]
add eax, edi
cmp dword [eax + 0x8c], 0
je 0x460994
cmp dword [eax], 3
jne 0x460923
add eax, 0x7c
cmp dword [eax + 0x14], 7
jbe 0x46084d
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x460994
mov eax, dword [ebp - 0x224]
add eax, edi
push eax
call fcn.00460f60
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x460a40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push str.barU
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xa
push str.Task_snPin
push eax
call fcn.0041f160
mov eax, dword [ebp - 0x224]
add esp, 0xc
add eax, 0x7c
add eax, edi
cmp dword [eax + 0x14], 7
jbe 0x4608b7
mov eax, dword [eax]
mov esi, dword [ebp - 0x228]
push 0
push 0
push 0
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x224]
add eax, 0x7c
add eax, edi
cmp dword [eax + 0x14], 7
jbe 0x4608e0
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x460905
mov eax, dword [ebp - 0x224]
add eax, 0x7c
add eax, edi
cmp dword [eax + 0x14], 7
jbe 0x4608fe
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 0x460994
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x460994
add eax, 0x7c
cmp dword [eax + 0x14], 7
jbe 0x46092e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x224]
cmp dword [esi + edi + 0x2c], 0
je 0x460994
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e870
lea eax, [esi + 0x7c]
add esp, 0xc
add eax, edi
cmp dword [eax + 0x14], 7
jbe 0x460965
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b4e7b
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x220]
inc ebx
sub eax, dword [ebp - 0x224]
add edi, 0x94
sar eax, 2
imul eax, eax, 0x914c1bad
cmp ebx, eax
jb 0x460800
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 - 0x24c]
call fcn.004257c0
lea ecx, [ebp - 0x264]
call fcn.004257c0
lea ecx, [ebp - 0x27c]
call fcn.004257c0
lea ecx, [ebp - 0x294]
call fcn.004257c0
lea ecx, [ebp - 0x2ac]
call fcn.004257c0
lea ecx, [ebp - 0x2c4]
call fcn.004257c0
lea ecx, [ebp - 0x224]
call fcn.00451fe0
mov eax, dword [ebp - 0x2d4]
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.0049cdfb
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404bb0
call fcn.00403e50
call fcn.004044b0
call fcn.004a1e4f
int3