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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079a4b
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x1009e034]
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 byte [ebp - 0x279], cl
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x1007d0cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10003de0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 0x18]
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x10057dea
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp + 8]
call fcn.1000be10
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x10057dd6
cmp dword [ebp + 0x1c], 8
jb 0x10057db9
push dword [ebp + 8]
call edi
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.10001c40
cmp dword [ebp - 0x284], 8
jb 0x10057dea
push dword [ebp - 0x298]
call edi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.10001f80
push 2
push 0x1008b700
lea ecx, [ebp - 0x28]
call fcn.10008160
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x280], ebx
cmp ebx, 0xffffffff
jne 0x10057e36
xor bl, bl
jmp 0x10058078
push 0x1007d9c8
lea edx, [ebp + 8]
lea ecx, [ebp - 0x298]
call fcn.1002bb20
mov esi, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, esi
je 0x10057e80
cmp dword [ebp - 0x14], 8
jb 0x10057e63
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10001c40
cmp dword [ebp - 0x284], 8
jb 0x10057e94
push dword [ebp - 0x298]
call edi
add esp, 4
lea edx, [ebp - 0x278]
mov ecx, ebx
call fcn.10054bf0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10057f96
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x10057ec0
mov ecx, 0x1007d7bc
lea eax, [ebp - 0x24c]
jmp 0x10057ed0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10057ef6
test dx, dx
je 0x10057ef2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10057ef6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10057ed0
xor eax, eax
jmp 0x10057efb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10057f71
mov ecx, 0x1007d7c0
lea eax, [ebp - 0x24c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10057f36
test dx, dx
je 0x10057f32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10057f36
add eax, 4
add ecx, 4
test dx, dx
jne 0x10057f10
xor eax, eax
jmp 0x10057f3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10057f71
test byte [ebp - 0x278], 0x10
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x28]
je 0x10057fdb
sub esp, 0x18
mov ecx, esp
push eax
call fcn.1002bb20
mov cl, byte [ebp - 0x279]
add esp, 4
call fcn.10057d10
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x280]
lea edx, [ebp - 0x278]
call fcn.10054bf0
test eax, eax
jne 0x10057ec0
mov ebx, dword [ebp - 0x280]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x279], 0
lea eax, [ebp + 8]
je 0x10058067
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10058076
cmp dword [ebp + 0x1c], 8
push 1
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
call esi
jmp 0x10058076
push eax
lea ecx, [ebp - 0x298]
call fcn.1002bb20
add esp, 4
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x10057ff4
mov esi, dword [esi]
cmp byte [ebp - 0x279], 0
je 0x10058031
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10058040
push 0x80
push esi
call ebx
push 0x80
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10058040
push 4
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
jmp 0x10058046
push 0x80
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x284], 8
jb 0x10057f77
push dword [ebp - 0x298]
call edi
add esp, 4
jmp 0x10057f77
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
cmp dword [ebp - 0x14], 8
jb 0x10058086
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x100580a8
push dword [ebp + 8]
call edi
add esp, 4
mov al, bl
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.1006e4e6
mov esp, ebp
pop ebp
ret