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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6978
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x4e3018]
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 - 0x2c8], ecx
mov esi, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
test ebx, ebx
js 0x46096e
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
push esi
lea ecx, [ebp - 0x228]
movq qword [ebp - 0x228], xmm0
call fcn.00461780
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 4], 0
call fcn.0045a310
mov esi, dword [0x4f8118]
test esi, esi
je 0x4604b0
lock inc dword [esi + 4]
mov esi, dword [0x4f8118]
mov ecx, dword [0x4f8114]
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2c0], esi
mov byte [ebp - 4], 2
lea edx, [ebp - 0x21c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 3
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 0x4604e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2b8]
call fcn.0042c6a0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46051e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
je 0x460547
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x460547
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x460547
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], 3
push eax
lea ecx, [ebp - 0x228]
call fcn.0045ca00
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], 1
push eax
lea ecx, [ebp - 0x228]
call fcn.0045ca00
mov esi, dword [0x4f8118]
test esi, esi
je 0x460593
lock inc dword [esi + 4]
mov esi, dword [0x4f8118]
mov ecx, dword [0x4f8114]
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2c0], esi
mov byte [ebp - 4], 4
lea edx, [ebp - 0x21c]
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 0x4605c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2a0]
call fcn.0042c6a0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4605fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
je 0x460627
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x460627
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x460627
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], 2
push eax
lea ecx, [ebp - 0x228]
call fcn.0045ca00
mov esi, dword [0x4f8118]
test esi, esi
je 0x460657
lock inc dword [esi + 4]
mov esi, dword [0x4f8118]
mov ecx, dword [0x4f8114]
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2c0], esi
mov byte [ebp - 4], 6
lea edx, [ebp - 0x21c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov byte [ebp - 4], 7
mov edx, dword [eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460684
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2b8]
call fcn.0042c6a0
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4606c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
je 0x4606eb
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4606eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4606eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], 2
push eax
lea ecx, [ebp - 0x228]
call fcn.0045ca00
xor ecx, ecx
mov eax, 0xdd67c8a7
mov dword [ebp - 0x2c0], ecx
mov ecx, dword [ebp - 0x224]
sub ecx, dword [ebp - 0x228]
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x460908
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x2c8]
add eax, edi
push eax
call fcn.004609a0
mov ebx, eax
test ebx, ebx
js 0x4608cf
mov eax, dword [ebp - 0x228]
add eax, edi
cmp dword [eax + 0x8c], 0
je 0x4608cf
cmp dword [eax], 3
jne 0x46085e
add eax, 0x7c
cmp dword [eax + 0x14], 8
jb 0x460788
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4608cf
mov eax, dword [ebp - 0x228]
add eax, edi
push eax
call fcn.00460a70
call fcn.00404840
mov ecx, eax
test ecx, ecx
je 0x46098c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.barU
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 8
push 0x4cda38
push eax
call fcn.00403ab0
mov eax, dword [ebp - 0x228]
add esp, 0xc
add eax, 0x7c
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x4607f2
mov eax, dword [eax]
mov esi, dword [ebp - 0x21c]
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], 8
jb 0x46081b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x460840
mov eax, dword [ebp - 0x228]
add eax, 0x7c
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x460839
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4608cf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4608cf
add eax, 0x7c
cmp dword [eax + 0x14], 8
jb 0x460869
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 0x4608cf
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00489020
lea eax, [esi + 0x7c]
add esp, 0xc
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x4608a0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00498bec
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 ecx, dword [ebp - 0x224]
mov eax, 0xdd67c8a7
sub ecx, dword [ebp - 0x228]
add edi, 0x94
inc dword [ebp - 0x2c0]
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x2c0]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x460740
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 - 0x240]
call fcn.0042c640
lea ecx, [ebp - 0x258]
call fcn.0042c640
lea ecx, [ebp - 0x270]
call fcn.0042c640
lea ecx, [ebp - 0x288]
call fcn.0042c640
lea ecx, [ebp - 0x2a0]
call fcn.0042c640
lea ecx, [ebp - 0x2b8]
call fcn.0042c640
lea ecx, [ebp - 0x228]
call fcn.0045a150
mov eax, ebx
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.00486999
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404610
int3