Function at 0x48c920
Capabilities:
Clear file content
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x30e0
call fcn.0049e650
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x30dc], eax
push esi
push 0
push 0x4b2038
push str.General
mov esi, ecx
call fcn.00456400
test eax, eax
jne 0x48c95c
cmp byte [0x4e5349], al
je 0x48ccc6
cmp byte [0x4c8d50], 0
je 0x48ccc6
mov ecx, dword [esp + 0x30e8]
lea eax, [esp + 0x30ec]
push eax
push ecx
lea edx, [esp + 0x8e8]
push 0x800
push edx
call fcn.004a9083
add esp, 0x10
mov byte [esp + 0x10df], 0
mov ecx, 0x4b1914
test esi, esi
je 0x48c9a1
mov ecx, esi
lea edx, [esp + 0xe0]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48c9a8
cmp byte [esp + 0xe0], al
je 0x48c9d0
lea eax, [esp + 0xe0]
cmp byte [eax], 0x2f
jne 0x48c9ca
mov byte [eax], 0x5c
inc eax
cmp byte [eax], 0
jne 0x48c9c2
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x32
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0x32
lea eax, [esp + 0x4c]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x84]
push str._s__s
push ecx
call fcn.0049e0d5
add esp, 0x10
xor eax, eax
mov cl, byte [eax + 0x4db848]
mov byte [esp + eax + 0x4e0], cl
inc eax
test cl, cl
jne 0x48ca32
cmp byte [0x4e5349], cl
je 0x48caa2
push 0x4e5349
call fcn.0044d530
cmp eax, 0x4e5349
jne 0x48ca82
push 0x4e5349
call fcn.0044d530
lea edx, [esp + 0x4e0]
push edx
mov esi, eax
call fcn.0044d530
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x48ca76
jmp 0x48caa2
xor eax, eax
jmp 0x48ca90
mov cl, byte [eax + 0x4e5349]
mov byte [esp + eax + 0x4e0], cl
inc eax
test cl, cl
jne 0x48ca90
lea eax, [esp + 0x4e0]
push 0x4b3bf4
push eax
call fcn.0049f968
mov esi, eax
add esp, 8
test esi, esi
jne 0x48cb09
lea ecx, [esp + 0x4e0]
push 0x4b3afc
push ecx
call fcn.0049f968
mov esi, eax
add esp, 8
test esi, esi
jne 0x48cb09
lea edx, [esp + 0x4e0]
push edx
push 0x1f5
call fcn.0045b8f0
push eax
call fcn.0048c7e0
add esp, 8
pop esi
mov ecx, dword [esp + 0x30dc]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x30e0
ret
push 2
push 0
push esi
call fcn.0049fec5
add esp, 0xc
mov ecx, 0x4f90f8
lea eax, [esp + 0xe0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x48cb42
test dl, dl
je 0x48cb3e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x48cb42
add eax, 2
add ecx, 2
test dl, dl
jne 0x48cb22
xor eax, eax
jmp 0x48cb47
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48cb7b
cmp byte [esp + 0xe0], 0
je 0x48cb7b
lea eax, [esp + 0xe0]
push eax
push 0x6b
call fcn.0045b8f0
push eax
lea ecx, [esp + 0x84]
push ecx
push str._r_n_r_n___________s___s__s_r_n
push esi
call fcn.004a16b1
add esp, 0x14
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0xe0]
mov byte [eax + 0x4f90f8], cl
inc eax
test cl, cl
jne 0x48cb80
lea edx, [esp + 0x7c]
push edx
push str._r_n_s
push esi
call fcn.004a16b1
lea eax, [esp + 0x8ec]
push eax
push 0x4b1908
push esi
call fcn.004a16b1
add esp, 0x18
push 0
push str.LimitLog
push str.General
call fcn.00456400
test eax, eax
je 0x48ccbd
push edi
push 0x3e8
push str.LogSize
push str.General
call fcn.00456400
mov edi, eax
push esi
shl edi, 0xa
call fcn.0049fdcf
sub eax, edi
add esp, 4
test eax, eax
jle 0x48ccbc
push ebx
push ebp
push 0
add eax, 0x2710
push eax
push esi
call fcn.0049fec5
push esi
lea ecx, [esp + 0x10fc]
push 0x2000
push ecx
call fcn.004a1dc5
push esi
call fcn.0049fdcf
push esi
push 0x2000
lea edx, [esp + 0x1110]
push 1
push edx
mov ebp, eax
xor ebx, ebx
call fcn.0049fc19
mov edi, eax
add esp, 0x2c
test edi, edi
je 0x48cc95
lea esp, [esp]
push 0
push ebx
push esi
call fcn.0049fec5
push esi
push edi
lea eax, [esp + 0x1100]
push 1
push eax
call fcn.0049f822
push 0
add ebp, edi
push ebp
push esi
add ebx, edi
call fcn.0049fec5
push esi
push 0x2000
lea ecx, [esp + 0x111c]
push 1
push ecx
call fcn.0049fc19
mov edi, eax
add esp, 0x38
test edi, edi
jne 0x48cc50
push esi
call fcn.004a1655
push 0
push ebx
push esi
call fcn.0049fec5
push esi
call fcn.004a7047
push eax
call fcn.004a0ab3
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop ebp
pop ebx
pop edi
push esi
call fcn.0049f646
add esp, 4
mov ecx, dword [esp + 0x30e0]
pop esi
xor ecx, esp
call fcn.0049e0c6
add esp, 0x30e0
ret