Function at 0x1000e720
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2274
call fcn.1001eab0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov al, byte [0x100273cc]
mov byte [ebp - 0x1114], al
mov ecx, 0x43f
xor eax, eax
lea edi, [ebp - 0x1113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x100273cc]
mov byte [ebp - 0x2214], cl
mov ecx, 0x43f
xor eax, eax
lea edi, [ebp - 0x2213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x2218], 0
mov dword [ebp - 0x221c], 0x100273cc
cmp dword [ebp + 8], 0
jne 0x1000e79c
xor eax, eax
jmp 0x1000e994
mov edx, dword [ebp + 8]
cmp edx, dword [0x10038ab8]
jbe 0x1000e7ae
xor eax, eax
jmp 0x1000e994
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2230], eax
cmp dword [ebp - 0x2230], 1
je 0x1000e7d4
cmp dword [ebp - 0x2230], 2
je 0x1000e7e0
cmp dword [ebp - 0x2230], 3
je 0x1000e7ec
jmp 0x1000e7f6
mov dword [ebp - 0x221c], str.ERROR
jmp 0x1000e7f6
mov dword [ebp - 0x221c], str.WARNING
jmp 0x1000e7f6
mov dword [ebp - 0x221c], str.TRACE
lea ecx, [ebp - 0x222c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x221c]
push eax
mov ecx, dword [ebp - 0x221e]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x2220]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x2222]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x2224]
and ecx, 0xffff
push ecx
push str._r_n__2d:_2d:_2d:_3d___s___s_
push 0x10ff
lea edx, [ebp - 0x1114]
push edx
call fcn.1000e9a0
add esp, 0x24
mov dword [ebp - 0x2218], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, 0x10ff
sub eax, dword [ebp - 0x2218]
push eax
mov ecx, dword [ebp - 0x2218]
lea edx, [ebp + ecx - 0x1114]
push edx
call fcn.1000e9e0
add esp, 0x10
mov ecx, dword [ebp - 0x2218]
add ecx, eax
mov dword [ebp - 0x2218], ecx
mov dword [ebp - 0x14], 0
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push 0x100389b0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000e8dc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x1000e994
lea eax, [ebp - 0x1114]
push eax
push 0x10ff
lea ecx, [ebp - 0x2214]
push ecx
call fcn.1000ea10
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x1000e97b
cmp dword [ebp - 0xc], 0
jne 0x1000e92f
cmp dword [ebp - 0xc], 0
jne 0x1000e923
cmp dword [ebp - 0x10], 0x7fffffff
jae 0x1000e92f
mov dword [ebp - 0x2234], 0
jmp 0x1000e938
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2234], ecx
push 0
mov edx, dword [ebp - 0x2234]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000e97b
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x2214]
push eax
call fcn.1001e830
add esp, 4
push eax
lea ecx, [ebp - 0x2214]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret