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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a929
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4a3a10]
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 0x435e00
push eax
call fcn.0045318d
add esp, 4
mov dword [ebx + 0x3c], 0
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x435f6c
lea edi, [esi - 1]
lea eax, [ebx + 0x10]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042f9b0
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 0x435f1b
push esi
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042f9b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004530ee
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.0045382c
add esp, 0x18
test eax, eax
je 0x435ec9
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.004530ee
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.0045382c
add esp, 0xc
test eax, eax
jne 0x435fc0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x435f07
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x435efd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436058
push ecx
push edx
call fcn.0044781c
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 0x435f5c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x435f52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436058
push ecx
push edx
call fcn.0044781c
add esp, 8
mov esi, edi
test esi, esi
jne 0x435e0b
mov edi, dword [ebp - 0xe0]
cmp dword [edi + 0x1c], 0
je 0x435f9b
push 1
lea eax, [edi + 0xc]
mov ecx, edi
push eax
call fcn.00435700
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.00447a97
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov ecx, esp
push str.Failed_re_opening_file___was_not_opened_before
call fcn.0040f7a0
lea ecx, [ebp - 0x64]
call fcn.0042e060
push 0x49f970
lea eax, [ebp - 0x64]
push eax
call fcn.00448af9
push 1
lea ecx, [ebx + 0x34]
call fcn.00435cc0
mov dword [ebx + 0x30], 0
call fcn.00450684
mov edi, dword [eax]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00430960
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00430960
push eax
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 3
push str.rotating_file_sink:_failed_renaming
push eax
call fcn.00423920
push str._to
push eax
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 4
push eax
call fcn.004238b0
push esi
push eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 5
push eax
call fcn.00423890
add esp, 0x34
push edi
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.0042de70
push 0x49f970
lea eax, [ebp - 0x64]
push eax
call fcn.00448af9
call fcn.0044c8cf
int3