Function at 0x42c4f0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59aa46
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x601018]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, esp
push eax
lea eax, [esp + 0x880]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov ebx, 0xf
xor edi, edi
mov eax, 0x5bc564
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], vtable.FileFind.0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.00402fe0
xor eax, eax
mov dword [esp + 0x888], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x3c], al
mov eax, 0x5bc564
lea esi, [esp + 0x3c]
mov dword [esp + 0x50], ebx
call fcn.00402fe0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 0xffffffff
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x64]
push ecx
mov ebx, 1
push 0x5cac84
mov edx, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x890], ebx
mov dword [esp + 0x18], edi
call fcn.0050a5e0
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x42c7b1
mov edx, esi
lea eax, [esp + 0x474]
sub edx, eax
mov dword [esp + 0x18], edx
cmp esi, edi
jne 0x42c5e6
call dword [sym.imp.MSVCR100.dll_abort]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x474]
lea ecx, [ecx]
mov cl, byte [edx + eax]
test cl, cl
je 0x42c606
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0x873]
cmp eax, ecx
jb 0x42c5f0
mov byte [eax], 0
lea eax, [esp + 0x474]
cmp byte [eax], 0
je 0x42c624
add eax, ebx
lea edx, [esp + 0x873]
cmp eax, edx
jb 0x42c610
jmp 0x42c64c
lea ecx, [esp + 0x873]
cmp eax, ecx
jae 0x42c64c
mov edx, 0x5cc7f4
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x42c64c
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0x873]
cmp eax, ecx
jb 0x42c636
mov byte [eax], 0
lea eax, [esp + 0x474]
cmp byte [eax], 0
je 0x42c66a
add eax, ebx
lea edx, [esp + 0x873]
cmp eax, edx
jb 0x42c656
jmp 0x42c696
lea ecx, [esp + 0x873]
cmp eax, ecx
jae 0x42c696
lea edx, [esp + 0x64]
sub edx, eax
jmp 0x42c680
mov cl, byte [edx + eax]
test cl, cl
je 0x42c696
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0x873]
cmp eax, ecx
jb 0x42c680
mov byte [eax], 0
mov ecx, 0x5cb680
lea eax, [esp + 0x64]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42c6c2
test dl, dl
je 0x42c6be
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42c6c2
add eax, 2
add ecx, 2
test dl, dl
jne 0x42c6a2
xor eax, eax
jmp 0x42c6c7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x42c737
mov ecx, 0x5cb684
lea eax, [esp + 0x64]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42c6f4
test dl, dl
je 0x42c6f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42c6f4
add eax, 2
add ecx, 2
test dl, dl
jne 0x42c6d4
xor eax, eax
jmp 0x42c6f9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x42c737
cmp byte [esp + 0x46c], bl
jne 0x42c720
lea edx, [esp + 0x474]
push edx
call fcn.0042c4f0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
jne 0x42c760
jmp 0x42c737
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
js 0x42c756
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x68]
lea ecx, [esp + 0x20]
call fcn.0050a8d0
test al, al
je 0x42c760
mov edx, dword [esp + 0x18]
jmp 0x42c5d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42c770
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
mov ecx, 0x10
mov dword [esp + 0x30], edi
cmp dword [esp + 0x34], ecx
jae 0x42c787
lea eax, [esp + 0x20]
mov byte [eax], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], edi
cmp dword [esp + 0x50], ecx
jae 0x42c79c
lea eax, [esp + 0x3c]
mov byte [eax], 0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x10], edi
jne 0x42c7df
cmp esi, edi
je 0x42c7cc
cmp byte [esi], 0
je 0x42c7cc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, edi
jge 0x42c7df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp eax, 2
jne 0x42c7df
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x1c]
call fcn.0050a540
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.00596083
mov esp, ebp
pop ebp
ret