Function at 0x1000fa30
Capabilities:
Clear file content
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10067898
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x10000000
sub esp, 0x1c
mov ebx, ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x13
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], 0
push str.EVPDataHistory.dat
mov byte [ecx + 4], 0
call fcn.10002be0
lea esi, [esp + 0x70]
call fcn.1001f330
add esp, 0x1c
cmp dword [eax + 0x18], 0x10
jb 0x1000fabd
mov eax, dword [eax + 4]
jmp 0x1000fac0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [esp + 0x54], 0x10
mov esi, eax
mov dword [esp + 0x10], esi
jb 0x1000fae1
mov eax, dword [esp + 0x40]
push eax
call fcn.10047382
add esp, 4
mov dword [esp + 0x54], edi
xor edi, edi
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
cmp esi, 0xffffffff
je 0x1000fb6d
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push edi
push 0x18
push eax
push esi
call fcn.100627d0
or eax, edx
je 0x1000fb74
mov eax, dword [0x1007e134]
cmp eax, edi
je 0x1000fb5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x1006e218
push 0xf0
push str.CTaskLog::LoadHistory
push str..TaskLog.cc
push 4
push eax
call edx
add esp, 0x18
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1000fcd7
push esi
call fcn.10048f20
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, edi
jne 0x1000fb99
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1000fcd7
mov edx, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x3c]
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000fcc1
xor eax, eax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov word [esp + 0x7e], ax
mov eax, 0xaaaaaaab
mul dword [esp + 0x1c]
xor ecx, ecx
shr edx, 4
mov word [esp + 0x74], cx
mov dword [esp + 0x14], edi
test edx, edx
jbe 0x1000fcc1
add ebx, 0x24
mov dword [esp + 0x28], ebx
lea edi, [esi + 8]
lea esp, [esp]
xor ebx, ebx
xor edx, edx
push ebx
mov eax, 0x1006dc30
lea esi, [esp + 0x5c]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
call fcn.10002d50
mov dword [esp + 0x90], ebx
xor esi, esi
lea ecx, [ecx]
movzx eax, byte [edi + esi]
push eax
lea ecx, [esp + 0x78]
push str._02X
push ecx
mov edx, 6
call fcn.10011740
lea eax, [esp + 0x80]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000fc46
sub eax, edx
lea edx, [esp + 0x74]
push edx
sar eax, 1
lea edx, [esp + 0x5c]
call fcn.100095e0
inc esi
cmp esi, 0x10
jl 0x1000fc20
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.10010450
mov dword [eax], 1
add edi, 0x18
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x70], 8
jb 0x1000fca0
mov edx, dword [esp + 0x5c]
push edx
call fcn.10047382
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, 0xaaaaaaab
mul dword [esp + 0x1c]
inc ecx
shr edx, 4
mov dword [esp + 0x14], ecx
cmp ecx, edx
jb 0x1000fbf0
mov esi, dword [esp + 0x18]
push esi
call fcn.10048cb3
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret