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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f20be
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x54006c]
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 edi, ecx
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 0x435458
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x435451
push 0xffffffffffffffff
push 0
push eax
call fcn.004159f0
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 0x435657
mov eax, 0x5c
mov dword [ebp - 0x34], 0
mov word [ebp - 0x38], ax
mov dword [ebp - 0x30], 0
push 0x532024
lea edx, [ebp + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00433cd0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4354ac
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x490]
call fcn.00434cc0
mov byte [ebp - 4], 1
mov esi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4354d3
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00418d80
test esi, esi
je 0x4355e7
mov ecx, dword [ebp - 0x30]
nop
xor edx, edx
test ecx, ecx
je 0x43551e
mov eax, dword [ebp - 0x490]
shr eax, 4
and eax, 1
je 0x43551e
cmp word [ebp - 0x464], 0x2e
jne 0x43551e
mov ax, word [ebp - 0x462]
test ax, ax
je 0x435519
cmp ax, 0x2e
jne 0x43551e
cmp word [ebp - 0x460], dx
jne 0x43551e
mov edx, 1
test edx, edx
jne 0x4355c1
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x490]
call fcn.00434c10
mov esi, eax
push 0x52e704
lea edx, [ebp + 8]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00433cd0
sub esp, 0x14
mov byte [ebp - 4], 4
mov ecx, esp
mov edx, eax
push dword [esi]
call fcn.00434ac0
add esp, 4
mov ecx, edi
call fcn.004353f0
test eax, eax
mov eax, dword [ebp - 0x14]
sete bl
cmp eax, 8
jb 0x435584
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00418d80
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x494]
mov word [ebp - 0x28], ax
add edx, 0xfffffff0
mov dword [ebp - 0x14], 7
or eax, 0xffffffff
mov dword [ebp - 0x18], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4355ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x435632
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4355e7
test ecx, ecx
je 0x4355e7
lea ecx, [ebp - 0x490]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x4354e0
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 0x435636
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]
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x435627
push 0xffffffffffffffff
push esi
push eax
call fcn.004159f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x43563b
xor esi, esi
jmp 0x43563b
mov esi, 1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x4356a6
cmp eax, 0xffffffff
je 0x4356a6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4356a6
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 0x4356a6
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 0x4356a6
lea ecx, [edi + 8]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x43569d
push 0xffffffffffffffff
push esi
push eax
call fcn.004159f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x4356bb
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00418d80
mov eax, esi
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.00465694
mov esp, ebp
pop ebp
ret 0x18