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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee926
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x535b70]
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 0x43d919
cmp dword [edi + 0xfc], 0
je 0x43d8e9
mov ecx, dword [edi + 0xfc]
mov dword [ebp - 0xbc], eax
test ecx, ecx
je 0x43dab0
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 0x43d8ec
lea esi, [edi + 0x6c]
push eax
call fcn.004c92b7
add esp, 4
mov dword [edi + 0x68], 0
cmp dword [edi + 0x124], 0
je 0x43d919
mov ecx, dword [edi + 0x124]
test ecx, ecx
je 0x43dab5
mov eax, dword [ecx]
push esi
call dword [eax + 8]
mov esi, dword [edi + 0x58]
test esi, esi
je 0x43da7c
lea ebx, [esi - 1]
lea eax, [edi + 0x3c]
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00435960
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 0x43da34
push esi
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00435960
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004cf0c9
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.004cf142
add esp, 0x18
test eax, eax
je 0x43d9e2
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.004cf0c9
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.004cf142
add esp, 0xc
test eax, eax
jne 0x43daba
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x43da20
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43da16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43db3f
push edx
push ecx
call fcn.004a5a88
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x43da75
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43da6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43db3f
push edx
push ecx
call fcn.004a5a88
add esp, 8
mov esi, ebx
jmp 0x43d91c
cmp dword [edi + 0x7c], 0
lea ecx, [edi + 0x60]
je 0x43db44
push 1
lea eax, [ecx + 0xc]
push eax
call fcn.0043cc80
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.004a55ed
mov esp, ebp
pop ebp
ret
call fcn.004a3828
call fcn.004a3828
push 1
lea ecx, [edi + 0x60]
call fcn.0043d850
lea eax, [ebp - 0x28]
mov dword [edi + 0x5c], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00436d00
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00436d00
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push str.rotating_file_sink:_failed_renaming
push eax
call fcn.0041d550
push str._to
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push eax
call fcn.00408a10
push esi
push eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 5
push eax
call fcn.0041d530
add esp, 0x34
mov esi, eax
mov byte [ebp - 4], 6
call fcn.004ce60a
push dword [eax]
push esi
call fcn.0043e920
call fcn.004c687a
sub esp, 0x18
mov ecx, esp
push str.Failed_re_opening_file___was_not_opened_before
call fcn.00405ca0
call fcn.0043e950
int3