Function at 0x1000f780
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100678d8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1007a200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x58], eax
xor ecx, ecx
push ebx
mov eax, 0x1006dc30
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], cx
call fcn.10002d50
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
xor edx, edx
push eax
mov ecx, edi
mov word [ebp - 0x20], dx
mov dword [ebp - 0x54], ebx
call fcn.1000fd00
xor esi, esi
movzx ecx, byte [ebp + esi - 0x4c]
push ecx
lea edx, [ebp - 0x20]
push str._02X
push edx
mov edx, 6
call fcn.10011720
lea eax, [ebp - 0x20]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x1000f830
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000f830
sub eax, edx
lea ecx, [ebp - 0x20]
sar eax, 1
push ecx
lea edx, [ebp - 0x3c]
call fcn.100095e0
inc esi
cmp esi, 0x10
jl 0x1000f806
mov esi, dword [ebp - 0x58]
mov ebx, dword [esi + 0x3c]
mov edi, dword [esi + 0x24]
lea edx, [ebp - 0x3c]
add esi, 0x24
push edx
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x58], esi
call fcn.10010570
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x1000f879
cmp eax, edi
je 0x1000f87e
call fcn.10048865
cmp dword [esi + 4], ebx
je 0x1000f89c
cmp dword [ebp - 0x24], 8
jb 0x1000f895
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10047382
add esp, 4
mov al, 1
jmp 0x1000fa07
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
push 0x80
push 4
push 0
push 1
push 0x10000000
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x13
mov ebx, 0xf
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], 0
push str.EVPDataHistory.dat
mov byte [ecx + 4], 0
call fcn.10002be0
lea esi, [ebp - 0x94]
call fcn.1001f330
mov edi, 0x10
add esp, 0x1c
cmp dword [eax + 0x18], edi
jb 0x1000f8fc
mov eax, dword [eax + 4]
jmp 0x1000f8ff
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0x7c], edi
jb 0x1000f91c
mov eax, dword [ebp - 0x90]
push eax
call fcn.10047382
add esp, 4
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp esi, 0xffffffff
jne 0x1000f94b
cmp dword [ebp - 0x24], 8
jb 0x1000f944
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10047382
add esp, 4
xor al, al
jmp 0x1000fa07
lea edx, [ebp - 0x6c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x6c]
push 0
push 0x18
push edi
push ebx
call fcn.100627d0
or eax, edx
jne 0x1000f990
test edi, edi
jg 0x1000f990
jl 0x1000f979
cmp ebx, 0x200000
ja 0x1000f990
push 0
lea eax, [ebp - 0x64]
push eax
push edi
push ebx
push esi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x1000f9c0
xor ecx, ecx
push ecx
lea edx, [ebp - 0x64]
push edx
xor eax, eax
push ecx
push eax
push esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp dword [ebp - 0x68], 0
jg 0x1000f9c0
jl 0x1000f9b9
cmp dword [ebp - 0x6c], 0x200000
jae 0x1000f9c0
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 0x78]
push eax
push 0x18
lea ecx, [ebp - 0x54]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
push esi
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x3c]
push edx
push eax
call fcn.10010450
mov dword [eax], 1
cmp dword [ebp - 0x24], 8
jb 0x1000fa05
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10047382
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 4