Function at 0x5aef22
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x210], eax
call fcn.00477950
test al, al
je 0x5aef6a
push edx
push esp
pop esp
push edx
push eax
push eax
push ebx
push edi
push ecx
push ecx
pop esp
pop edx
pop ebx
push ebx
pop ecx
pop eax
pop eax
pop eax
push ebx
pop ebx
pop esi
push esi
push edx
pop ebp
push esi
pop ebx
pop ebx
pop esp
pop edx
pop edx
pop eax
push ebp
call fcn.004775f0
test al, al
je 0x5aef8f
pop esi
push esp
pop ebx
push edx
push eax
pop edi
pop ecx
push ecx
push esi
push ecx
pop ebp
push esi
push ebx
push ecx
push ecx
pop esi
pop esp
pop edi
pop edx
push edi
push edx
pop esp
pop eax
push edx
pop esi
pop ecx
push ebp
pop ebx
push str..fcb
push dword [ebp - 0x210]
call fcn.005bdcd4
pop ecx
pop ecx
test eax, eax
je 0x5af015
call fcn.00477590
test al, al
je 0x5aefbe
push esi
pop edx
push ecx
push ecx
pop ebx
push ebp
pop esp
push ebx
push ecx
pop ecx
push edx
pop eax
pop esp
push esi
push eax
push ebx
call fcn.00477bf0
test al, al
je 0x5aefde
push ebx
pop esp
push edx
pop esi
push esi
pop ebx
pop eax
push eax
push edi
push esi
push ebp
push ebp
pop ebp
push edx
push eax
pop esp
push edx
push ebp
pop esp
pop ecx
push ebx
push edi
pop ebx
call fcn.00477ad0
test al, al
je 0x5af006
push esp
push edx
pop esi
pop edx
push ecx
push ecx
push esi
pop ecx
pop edi
pop edi
pop ebp
push edx
pop esp
pop ecx
push ebp
push ebx
push edi
pop esi
push eax
push ecx
pop ebp
pop eax
pop esp
push edi
push esp
push ebx
pop edi
push eax
push ecx
push ebp
pop ebx
push 5
push 0
push dword [ebp - 0x210]
jmp 0x5af23f
and dword [ebp - 0x214], 0
call fcn.00477770
test al, al
je 0x5af038
pop esi
push ebx
pop ecx
pop esi
pop ebx
pop edi
pop esi
push esp
push edx
push edx
pop ebp
push eax
push ebx
pop ecx
pop esp
pop ebx
pop esp
pop esp
push esp
call fcn.004776b0
test al, al
je 0x5af05c
push edx
push esi
pop ecx
pop esp
pop edx
pop ecx
push edx
push eax
push ebp
pop esi
pop edi
push ebx
pop esp
pop ecx
pop ecx
pop ecx
pop edi
push esp
pop edi
pop ebp
pop ecx
push ecx
pop eax
push edx
pop eax
pop ebx
push ebx
call fcn.00477650
test al, al
je 0x5af07e
pop ebx
pop edx
pop edi
push ebx
pop ecx
pop edx
pop ebx
push ebp
push ecx
pop ebx
push ebp
pop ebx
push edx
push esi
push ecx
push ecx
push ecx
push eax
pop esi
push esp
pop edx
pop edx
pop edi
push ecx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], 1
push 0
push eax
call fcn.005be3a0
add esp, 0xc
cmp dword [ebp - 0x214], 0
jne 0x5af12c
call fcn.00477b30
test al, al
je 0x5af0c8
push ebp
push eax
pop ecx
push edx
pop ecx
pop ebx
pop ecx
pop ebp
push esp
push edi
pop ebx
pop esi
pop ebp
pop edx
push esp
push ebp
push edx
pop edi
pop eax
push esi
call fcn.00477ef0
test al, al
je 0x5af0ed
pop edi
push edi
pop esp
pop edi
push ebp
push edi
push ebx
pop esi
pop esi
pop edi
pop ebp
push ecx
push edx
pop ebx
pop ebx
pop eax
push ebp
pop esi
push edx
pop esi
pop edi
push esi
push ebp
pop ebp
push eax
pop edi
pop edx
push edi
call fcn.00477770
test al, al
je 0x5af10b
push esp
pop edx
push edi
pop ebp
pop eax
push ebp
push ecx
pop esi
push esp
pop edi
pop ecx
pop edx
push edx
pop ecx
push esp
push ebx
pop edx
pop edi
push edx
push edi
push ebp
push str..fcb
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x687ed4
push eax
call fcn.00409310
add esp, 0x10
jmp 0x5af179
call fcn.00477bf0
test al, al
je 0x5af154
push edi
pop esi
push ebp
pop eax
pop ebp
pop edx
pop edi
push ebx
push ebx
pop esi
pop eax
push esi
push esp
pop edx
push esi
push eax
pop ecx
pop ebx
pop esi
pop ebp
pop ecx
pop eax
push esp
pop eax
push edi
pop edx
pop ebp
pop edi
pop edx
pop ebx
pop ebx
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push str..fcb
push dword [ebp - 0x210]
push str._s_s_d
push eax
call fcn.00409310
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5af1ba
call fcn.00477890
test al, al
je 0x5af1a7
pop ebp
push esp
pop ecx
pop ebx
push ebp
pop ebp
push eax
pop edx
push edx
pop edi
pop edi
pop ebp
pop ebp
push esp
pop esp
push eax
pop eax
pop ebx
push esp
pop ebp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x218], eax
call fcn.00477950
test al, al
je 0x5af1dc
pop esp
push ecx
pop ebx
push ecx
pop ecx
pop edi
pop ecx
pop esi
push ebx
pop esp
pop ecx
push esi
push edx
push edx
push ebx
push edi
push ebx
push esi
pop esp
pop edx
push ebp
pop eax
push ebx
push edx
push ebp
cmp dword [ebp - 0x218], 0
jne 0x5af1fc
mov eax, dword [ebp - 0x214]
cmp eax, 0xa
jge 0x5af245
inc eax
mov dword [ebp - 0x214], eax
jmp 0x5af07e
call fcn.00477770
test al, al
je 0x5af220
pop edx
push ecx
pop edi
push esi
pop ebp
push ebp
push esp
pop ebp
push ebx
push ecx
push ecx
pop esi
push ebp
push ebp
pop esp
push eax
pop edi
push esp
push ebx
push ebp
push eax
pop ecx
pop ebx
pop edi
pop esp
pop esi
pop ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.005d6309
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret