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

Disassembly:
mov eax, 0x50e0
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x50dc], eax
push esi
push 0
push 0x4bb4b8
push 0x4bade8
mov esi, ecx
call fcn.0045ba60
test eax, eax
jne 0x49375c
cmp byte [0x4f61e9], al
je 0x493ad6
cmp byte [0x4d70a0], 0
je 0x493ad6
mov ecx, dword [esp + 0x50ec]
lea eax, [esp + 0x50f0]
push eax
push ecx
lea edx, [esp + 0x18e8]
push 0xc00
push edx
call fcn.004a83cc
add esp, 0x10
push 0x1000000
lea ecx, [esp + 0xce4]
push ecx
lea edx, [esp + 0x18e8]
xor eax, eax
push edx
mov word [esp + 0x30ea], ax
call fcn.00473250
push 0x1000000
lea eax, [esp + 0xe4]
push eax
push esi
call fcn.0046a8a0
push eax
call fcn.00473250
push 0x400
lea ecx, [esp + 0xe4]
push ecx
mov edx, ecx
push edx
call fcn.00452c80
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.004a4bc2
add esp, 0x10
xor eax, eax
jmp 0x493850
movzx ecx, word [eax + 0x4e9b90]
mov word [esp + eax + 0x4e0], cx
add eax, 2
test cx, cx
jne 0x493850
cmp byte [0x4f61e9], cl
je 0x4938a6
push 0x4f61e9
call fcn.00451b50
push 0x1000000
cmp eax, 0x4f61e9
jne 0x493894
lea edx, [esp + 0x4e4]
push edx
call fcn.00451bd0
jmp 0x49389b
lea eax, [esp + 0x4e4]
push eax
push 0x4f61e9
call fcn.00473290
push 0
push 0x4be48c
lea ecx, [esp + 0x4e8]
push ecx
call fcn.00432010
mov esi, eax
test esi, esi
jne 0x49390a
push eax
push 0x4be2f4
lea edx, [esp + 0x4e8]
push edx
call fcn.00432010
mov esi, eax
test esi, esi
jne 0x49390a
lea eax, [esp + 0x4e0]
push eax
push 0x1f5
call fcn.004612e0
push eax
call fcn.00493500
add esp, 8
pop esi
mov ecx, dword [esp + 0x50dc]
xor ecx, esp
call fcn.004a4bb3
add esp, 0x50e0
ret
push 2
push 0
push esi
call fcn.004a6b7e
add esp, 0xc
mov ecx, 0x5146e8
lea eax, [esp + 0xe0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x493943
test dl, dl
je 0x49393f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x493943
add eax, 2
add ecx, 2
test dl, dl
jne 0x493923
xor eax, eax
jmp 0x493948
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x49397c
cmp byte [esp + 0xe0], 0
je 0x49397c
lea ecx, [esp + 0xe0]
push ecx
push 0x6b
call fcn.00461210
push eax
lea edx, [esp + 0x84]
push edx
push str._r_n_r_n___________s___s__s_r_n
push esi
call fcn.004a89c9
add esp, 0x14
cmp byte [esp + 0x50e8], 0
jne 0x4939a2
xor eax, eax
jmp 0x493990
mov cl, byte [esp + eax + 0xe0]
mov byte [eax + 0x5146e8], cl
inc eax
test cl, cl
jne 0x493990
lea eax, [esp + 0x7c]
push eax
push str._r_n_s
push esi
call fcn.004a89c9
lea ecx, [esp + 0xcec]
push ecx
push 0x4c147c
push esi
call fcn.004a89c9
add esp, 0x18
push 0
push str.LimitLog
push 0x4bade8
call fcn.0045ba60
test eax, eax
je 0x493acd
push edi
push 0x3e8
push str.LogSize
push 0x4bade8
call fcn.0045ba60
mov edi, eax
push esi
shl edi, 0xa
call fcn.004a6a88
sub eax, edi
add esp, 4
test eax, eax
jle 0x493acc
push ebx
push ebp
push 0
add eax, 0x2710
push eax
push esi
call fcn.004a6b7e
push esi
lea edx, [esp + 0x30fc]
push 0x2000
push edx
call fcn.004a8d7d
push esi
call fcn.004a6a88
push esi
push 0x2000
mov ebp, eax
lea eax, [esp + 0x3110]
push 1
push eax
xor ebx, ebx
call fcn.004a68d2
mov edi, eax
add esp, 0x2c
test edi, edi
je 0x493aa5
lea esp, [esp]
push 0
push ebx
push esi
call fcn.004a6b7e
push esi
push edi
lea ecx, [esp + 0x3100]
push 1
push ecx
call fcn.004a6ea4
push 0
add ebp, edi
push ebp
push esi
add ebx, edi
call fcn.004a6b7e
push esi
push 0x2000
lea edx, [esp + 0x311c]
push 1
push edx
call fcn.004a68d2
mov edi, eax
add esp, 0x38
test edi, edi
jne 0x493a60
push esi
call fcn.004a85a6
push 0
push ebx
push esi
call fcn.004a6b7e
push esi
call fcn.004aef26
push eax
call fcn.004a78a0
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop ebp
pop ebx
pop edi
push esi
call fcn.004a6c75
add esp, 4
mov ecx, dword [esp + 0x50e0]
pop esi
xor ecx, esp
call fcn.004a4bb3
add esp, 0x50e0
ret