Function at 0x42f7d0
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d808
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
lea ecx, [ebx + 0x2c]
call fcn.00434920
test eax, eax
je 0x42fc8e
push esi
push edi
call fcn.004178f0
mov esi, eax
call fcn.004154a0
mov edi, eax
mov eax, dword [0x4800d8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
mov dword [esp + 0x30], 0
jl 0x42f84b
push str._DESKTOP_
push eax
call fcn.00457e8d
add esp, 8
test eax, eax
je 0x42f84b
sub eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x42f84b
push str.DESKTOP
jmp 0x42f87b
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x42f876
push str._QUICKLAUNCH_
push eax
call fcn.00457e8d
add esp, 8
test eax, eax
je 0x42f876
sub eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x42f876
push str.QUICKLAUNCH
jmp 0x42f87b
push str.LINK
lea ecx, [esp + 0x20]
call fcn.00404d30
mov eax, dword [0x4800d8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], eax
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x24]
push 0x4708c8
push edx
mov byte [esp + 0x3c], 2
call fcn.00405ab0
mov ebx, dword [edi + 0x58]
add esp, 0xc
mov edi, 0x104
push edi
lea ecx, [esp + 0x10]
call fcn.004042d0
test eax, eax
je 0x42f8cf
mov eax, dword [esp + 0xc]
mov dword [eax - 8], edi
mov byte [eax + 0x104], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
push ebp
push ebx
push edi
push eax
mov eax, dword [esp + 0x30]
push 0x4708d8
push eax
push ecx
mov ecx, esi
call dword [edx + 0x90]
lea ecx, [esp + 0x10]
call fcn.00404410
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call ebx
mov dword [ebp - 8], eax
push ebp
mov byte [eax + ebp], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42f921
mov edx, dword [esi]
push 0
push 0
push ebp
mov ecx, esi
call dword [edx + 0x20]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x58]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x28]
push 0
push eax
push ecx
mov ecx, esi
call dword [edx + 0x9c]
mov edx, dword [0x4800d8]
mov dword [esp + 0x18], edx
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
call fcn.004042d0
test eax, eax
je 0x42f96a
mov eax, dword [esp + 0x18]
mov dword [eax - 8], edi
mov byte [eax + 0x104], 0
mov edx, dword [esi]
push edi
push eax
mov ecx, esi
call dword [edx + 0xc4]
lea ecx, [esp + 0x18]
call fcn.00404410
mov eax, dword [esp + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], eax
mov byte [eax + ecx], 0
mov ecx, dword [0x4800d8]
mov dword [esp + 0x1c], ecx
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call fcn.004042d0
test eax, eax
je 0x42f9bc
mov eax, dword [esp + 0x1c]
mov dword [eax - 8], edi
mov byte [eax + 0x104], 0
mov edx, dword [esi]
push edi
push eax
mov ecx, esi
call dword [edx + 0xc8]
lea ecx, [esp + 0x1c]
call fcn.00404410
mov eax, dword [esp + 0x1c]
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 8], eax
mov byte [eax + ecx], 0
mov ecx, dword [0x4800d8]
mov dword [esp + 0x14], ecx
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 5
call fcn.004042d0
test eax, eax
je 0x42fa0e
mov eax, dword [esp + 0x14]
mov dword [eax - 8], edi
mov byte [eax + 0x104], 0
mov edx, dword [esi]
push edi
push eax
mov ecx, esi
call dword [edx + 0xc0]
lea ecx, [esp + 0x14]
call fcn.00404410
mov esi, dword [esp + 0x14]
push esi
call ebx
push 0x5c
mov dword [esi - 8], eax
push ebp
mov byte [eax + esi], 0
call fcn.00457e22
add esp, 8
test eax, eax
je 0x42fbb3
sub eax, ebp
cmp eax, 0xffffffff
je 0x42fbb3
nop
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040a900
mov ebx, eax
mov esi, dword [ebx]
cmp ebp, esi
mov byte [esp + 0x34], 6
je 0x42fb1e
mov eax, dword [ebp - 0xc]
test eax, eax
mov ecx, dword [0x4800dc]
lea edi, [ebp - 0xc]
jge 0x42fa87
lea edx, [ebp - 0xc]
cmp edx, ecx
jne 0x42fa8e
mov edx, dword [esi - 0xc]
test edx, edx
jge 0x42faf3
cmp eax, 1
mov ebx, dword [esi - 8]
jg 0x42fa9b
cmp ebx, dword [ebp - 4]
jle 0x42fad1
add ebp, 0xfffffff4
cmp ebp, ecx
je 0x42fabf
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42fab6
push edi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800d8]
mov dword [esp + 0x10], eax
push ebx
lea ecx, [esp + 0x14]
call fcn.004039b0
test eax, eax
mov ebp, dword [esp + 0x10]
je 0x42fb1e
lea ecx, [ebx + 1]
cmp ecx, ebx
jb 0x42faea
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], ebx
mov byte [ebx + ebp], 0
jmp 0x42fb1e
add ebp, 0xfffffff4
cmp ebp, ecx
je 0x42fb0e
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42fb0e
push edi
call fcn.00457c3f
add esp, 4
mov ebp, dword [ebx]
lea eax, [ebp - 0xc]
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x28]
mov edx, dword [0x4800dc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x34], 5
je 0x42fb54
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42fb54
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
mov ebx, dword [esp + 0x18]
push ebx
push ebp
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x42fbbf
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x42fbbf
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call fcn.00457f3f
add esp, 8
test eax, eax
je 0x42fbbf
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x42fbbf
push 0x5c
push ebp
call fcn.00457e22
add esp, 8
test eax, eax
je 0x42fbbf
sub eax, ebp
cmp eax, 0xffffffff
jne 0x42fa50
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [esp + 0x18]
jmp 0x42fbc3
mov esi, dword [esp + 0x14]
mov eax, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x42fbe2
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42fbe2
push esi
call fcn.00457c3f
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [0x4800dc]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x42fc06
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42fc06
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800dc]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x42fc25
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x42fc25
push esi
call fcn.00457c3f
add esp, 4
mov esi, dword [esp + 0x24]
mov eax, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x42fc48
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42fc48
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800dc]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x42fc68
add ebp, 0xfffffff4
push ebp
call edi
test eax, eax
jg 0x42fc68
push ebp
call fcn.00457c3f
add esp, 4
mov esi, dword [esp + 0x20]
mov eax, dword [0x4800dc]
lea ecx, [esi - 0xc]
cmp ecx, eax
pop ebp
je 0x42fc8c
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42fc8c
push esi
call fcn.00457c3f
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret