Function at 0x42d900
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee72a
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x49c], edi
mov dword [ebp - 0x494], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42d97e
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x42d977
cmp dword [ebp + 0x1c], 8
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.00407890
mov dword [edi + 4], 2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x42dcdf
mov eax, 0x5c
mov dword [ebp - 0x30], 0
mov word [ebp - 0x34], ax
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov eax, 0x7ffffffe
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 2
jb 0x42dd8b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 2
cmovae eax, dword [ebp + 8]
push 0x52fac0
push ecx
push eax
push ecx
push dword [ebp - 0x4a0]
lea ecx, [ebp - 0x28]
call fcn.004044f0
mov edi, 1
mov dword [ebp - 0x494], edi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x48c]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042a520
mov byte [ebp - 4], 1
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42da4f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42da45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dd90
push edx
push ecx
call fcn.0045b5e1
add esp, 8
test esi, esi
je 0x42dc61
mov ecx, dword [ebp - 0x2c]
nop word [eax + eax]
xor edx, edx
test ecx, ecx
je 0x42da9e
mov eax, dword [ebp - 0x48c]
shr eax, 4
and eax, 1
je 0x42da9e
cmp word [ebp - 0x460], 0x2e
jne 0x42da9e
mov ax, word [ebp - 0x45e]
test ax, ax
je 0x42da99
cmp ax, 0x2e
jne 0x42da9e
cmp word [ebp - 0x45c], dx
jne 0x42da9e
mov edx, 1
test edx, edx
jne 0x42dc3b
mov byte [ebp - 4], 3
call fcn.00407ca0
mov ecx, eax
test ecx, ecx
je 0x42dd95
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
or edi, 2
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x494], edi
lea esi, [eax + 0x10]
mov dword [ebp - 0x498], esi
je 0x42daf0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x498]
call fcn.00418430
mov esi, dword [ebp - 0x498]
mov ecx, dword [ebp + 0x18]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x42dd8b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 1
cmovae eax, dword [ebp + 8]
push 0x52bac0
push ecx
push eax
push ecx
push dword [ebp - 0x4a4]
lea ecx, [ebp - 0x28]
call fcn.004044f0
or edi, 4
mov dword [ebp - 0x494], edi
mov ecx, esi
mov byte [ebp - 4], 4
sub esp, 0x18
mov dword [ebp - 0x4a0], esp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42db41
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404090
mov ecx, dword [ebp - 0x4a0]
or edi, 8
mov dword [ebp - 0x494], edi
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x49c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.0042d900
test eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
sete byte [ebp - 0x48d]
cmp edx, 8
jb 0x42dbf2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42dbe8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dd90
push edx
push ecx
call fcn.0045b5e1
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
and edi, 0xfffffffd
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
add esi, 0xfffffff0
mov dword [ebp - 0x494], edi
or eax, 0xffffffff
mov byte [ebp - 4], 1
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42dc2b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x48d], 0
jne 0x42dcba
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x42dc61
test ecx, ecx
je 0x42dc61
lea ecx, [ebp - 0x48c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x42da60
xor esi, esi
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42dcbe
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, dword [ebp - 0x49c]
lea eax, [ebp + 8]
lea ecx, [edi + 8]
cmp ecx, eax
je 0x42dcaf
cmp dword [ebp + 0x1c], 8
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.00407890
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x42dcc3
xor esi, esi
jmp 0x42dcc3
mov esi, 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x42dd36
cmp eax, 0xffffffff
je 0x42dd36
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42dd36
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x42dd36
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
jne 0x42dd36
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x42dd2d
cmp dword [ebp + 0x1c], 8
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.00407890
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x42dd6c
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42dd62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dd9f
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret 0x18
call fcn.00407690
call fcn.004c1e0f
push 0x80004005
call fcn.00407a00
call fcn.004c1e0f
int3