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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533789
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x599850]
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 + 0x3c]
lea edi, [ebx + 0x34]
mov dword [ebp - 0xe0], edi
test eax, eax
je 0x4619b0
push eax
call fcn.0050d55b
add esp, 4
mov dword [ebx + 0x3c], 0
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x461b1c
lea edi, [esi - 1]
lea eax, [ebx + 0x10]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045b560
add esp, 0xc
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x461acb
push esi
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0045b560
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0050f6c1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0050f745
add esp, 0x18
test eax, eax
je 0x461a79
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0050f6c1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0050f745
add esp, 0xc
test eax, eax
jne 0x461b70
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x461ab7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x461aad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461c08
push ecx
push edx
call fcn.004ff746
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x461b0c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x461b02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461c08
push ecx
push edx
call fcn.004ff746
add esp, 8
mov esi, edi
test esi, esi
jne 0x4619bb
mov edi, dword [ebp - 0xe0]
cmp dword [edi + 0x1c], 0
je 0x461b4b
push 1
lea eax, [edi + 0xc]
mov ecx, edi
push eax
call fcn.004612b0
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.004ff754
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov ecx, esp
push str.Failed_re_opening_file___was_not_opened_before
call fcn.00418d80
lea ecx, [ebp - 0x64]
call fcn.00459c70
push 0x592e68
lea eax, [ebp - 0x64]
push eax
call fcn.0050421d
push 1
lea ecx, [ebx + 0x34]
call fcn.00461870
mov dword [ebx + 0x30], 0
call fcn.0050f6ae
mov edi, dword [eax]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0045c510
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0045c510
push eax
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 3
push str.rotating_file_sink:_failed_renaming
push eax
call fcn.0044f630
push str._to
push eax
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 4
push eax
call fcn.0044f5c0
push esi
push eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 5
push eax
call fcn.0044f5a0
add esp, 0x34
push edi
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00459a80
push 0x592e68
lea eax, [ebp - 0x64]
push eax
call fcn.0050421d
call fcn.00508363
int3