Function at 0x420fa0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b946
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x43c51c]
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 eax, dword [edi + 0x68]
test eax, eax
je 0x42103a
cmp dword [edi + 0xfc], 0
je 0x421009
mov ecx, dword [edi + 0xfc]
mov dword [ebp - 0xbc], eax
test ecx, ecx
je 0x4211c3
mov eax, dword [ecx]
lea edx, [ebp - 0xbc]
push edx
lea esi, [edi + 0x6c]
push esi
call dword [eax + 8]
mov eax, dword [edi + 0x68]
jmp 0x42100c
lea esi, [edi + 0x6c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x68], 0
cmp dword [edi + 0x124], 0
je 0x42103a
mov ecx, dword [edi + 0x124]
test ecx, ecx
je 0x4211c8
mov eax, dword [ecx]
push esi
call dword [eax + 8]
mov esi, dword [edi + 0x58]
test esi, esi
je 0x42118f
lea ebx, [esi - 1]
lea eax, [edi + 0x3c]
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00417a80
add esp, 0xc
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42114b
push esi
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00417a80
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call esi
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 0x18
test eax, eax
je 0x421105
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 0xc
test eax, eax
jne 0x4211cd
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x421139
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42112f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421189
push edx
push ecx
call fcn.00427bb7
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x421182
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x421178
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421189
push edx
push ecx
call fcn.00427bb7
add esp, 8
mov esi, ebx
jmp 0x42103d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [edi + 0x7c], 0
lea ecx, [edi + 0x60]
je 0x421253
push 1
lea eax, [ecx + 0xc]
push eax
call fcn.0041fbb0
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.00427b79
mov esp, ebp
pop ebp
ret
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
push 1
lea ecx, [edi + 0x60]
call fcn.00420f70
lea eax, [ebp - 0x28]
mov dword [edi + 0x5c], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004194b0
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004194b0
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push str.rotating_file_sink:_failed_renaming
push eax
call fcn.00404c10
push str._to
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push eax
call fcn.00404ba0
push esi
push eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 5
push eax
call fcn.00404b80
add esp, 0x34
mov esi, eax
mov byte [ebp - 4], 6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
push esi
call fcn.00422500
sub esp, 0x18
mov ecx, esp
push str.Failed_re_opening_file___was_not_opened_before
call fcn.00411710
call fcn.00422530
int3