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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4351d4
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4430a4]
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 ebx, ecx
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x429a08
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0x50], 0
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x429b92
lea edi, [esi - 1]
lea eax, [ebx + 0x24]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00420310
add esp, 0xc
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x429a55
mov dword [ebp - 4], 2
jmp 0x429b48
push esi
lea eax, [ebx + 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420310
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 0x18
test eax, eax
je 0x429af3
push 0x64
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 0xc
mov byte [ebp - 4], 3
test eax, eax
jne 0x429bc6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xe
cmp edx, 8
jb 0x429b2d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429b23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429b8c
push edx
push ecx
call fcn.0042d3d2
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xf
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x429b7e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x429b74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429b8c
push edx
push ecx
call fcn.0042d3d2
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov esi, edi
jmp 0x429a0b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [ebx + 0x64], 0
lea ecx, [ebx + 0x48]
je 0x429c5f
push 1
lea eax, [ecx + 0xc]
push eax
call fcn.00428d80
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.0042d3e0
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0x48]
push 1
call fcn.004296b0
mov dword [ebx + 0x44], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00421ad0
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00421ad0
push eax
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 0xa
push str.rotating_file_sink:_failed_renaming
push eax
call fcn.00403670
push str._to
push eax
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 0xb
push eax
call fcn.00403610
push esi
push eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xc
push eax
call fcn.00403590
add esp, 0x34
push edi
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xd
call fcn.0041ab90
push 0x43fcd4
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
sub esp, 0x18
mov ecx, esp
push str.Failed_re_opening_file___was_not_opened_before
call fcn.004192e0
lea ecx, [ebp - 0x64]
call fcn.0041ad20
push 0x43fcd4
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3