Function at 0x449780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51aab0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x56e754]
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 esi, ecx
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x44]
mov edx, esi
call fcn.00430600
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00423910
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0041b400
test bl, bl
je 0x449a41
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4497f3
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x449855
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x44985c
cmp eax, 3
je 0x44985c
cmp eax, 0x20
je 0x449828
cmp eax, 5
je 0x44985c
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0043a5b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x449841
mov eax, dword [eax]
mov edx, eax
mov ecx, str.Skipping_log_file_because_it_was_in_use__file:__s_
call fcn.0042e8e0
lea ecx, [ebp - 0x28]
jmp 0x449a3c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x449866
mov ecx, dword [esi]
call fcn.00427920
mov edi, eax
mov ecx, edi
or ecx, edx
jne 0x4498ed
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0043a5b0
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x44988c
mov eax, dword [eax]
mov edx, eax
mov ecx, str.Deleting_log_file_because_it_was_empty__file:__s_
call fcn.0042e8e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0041b400
cmp byte [esi + 0x18], 0
je 0x449a41
mov ecx, esi
call fcn.00423de0
test al, al
jne 0x449a41
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0043a5b0
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4498d9
mov eax, dword [eax]
mov edx, eax
mov ecx, str.Couldnt_delete_empty_log_file__file:__s_
call fcn.0042e8e0
lea ecx, [ebp - 0x28]
jmp 0x449a3c
test edx, edx
jne 0x449900
cmp edi, 0x200000
ja 0x449900
mov al, 1
jmp 0x449a43
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0043a5b0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x449919
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, str.Deleting_log_file_because_size_is_too_big__file:__s__size:__u_
call fcn.0042e970
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041b400
cmp byte [esi + 0x18], 0
je 0x449a41
mov ecx, esi
call fcn.00423de0
test al, al
je 0x449a14
push 0x13
push str.LargeLogFileDeleted
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041b7e0
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x40]
push 6
push str.Logger
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0041b7e0
push 1
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00433510
mov edx, dword [ebp - 0x2c]
add esp, 4
cmp edx, 0x10
jb 0x4499e2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4499d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449a5f
push edx
push ecx
call fcn.004ca782
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x449a41
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x449a08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449a64
push edx
push ecx
call fcn.004ca782
add esp, 8
jmp 0x449a41
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.0043a5b0
mov dword [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x449a2d
mov eax, dword [eax]
mov edx, eax
mov ecx, 0x548498
call fcn.0042e8e0
lea ecx, [ebp - 0x40]
call fcn.0041b400
xor al, al
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.004ca771
mov esp, ebp
pop ebp
ret
call fcn.004eefc0
call fcn.004eefc0
int3