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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x1000eee9
xor eax, eax
jmp 0x1000f1ae
mov eax, dword [ebp + 8]
cmp eax, dword [0x10038bc4]
jbe 0x1000eefb
xor eax, eax
jmp 0x1000f1ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov cl, byte [0x100273cc]
mov byte [ebp - 0x20c], cl
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x224], 0x100273cc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
sub eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 4
ja case.default.0x1000ef64
mov ecx, dword [ebp - 0x234]
jmp dword [ecx*4 + 0x1000f1b5]
mov dword [ebp - 0x224], 0x1002a2c4
jmp case.default.0x1000ef64
mov dword [ebp - 0x224], 0x1002a2c0
jmp case.default.0x1000ef64
mov dword [ebp - 0x224], 0x1002a2bc
jmp case.default.0x1000ef64
mov dword [ebp - 0x224], 0x1002a2b8
jmp case.default.0x1000ef64
mov dword [ebp - 0x224], 0x1002a2b4
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x212]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x214]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x216]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x218]
and edx, 0xffff
push edx
push str._r_n__2d:_2d_:__2d:_3d___s___30s_
lea eax, [ebp - 0x20c]
push eax
call fcn.1001e7d5
add esp, 0x20
mov dword [ebp - 0x210], eax
lea ecx, [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x210]
lea edx, [ebp + ecx - 0x20c]
push edx
call fcn.1001f445
add esp, 0xc
mov ecx, dword [ebp - 0x210]
add ecx, eax
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0xc], 0
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push 0x10038abc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x1000f080
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x1000f1ae
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
jne 0x1000f0c4
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x1000f1ae
cmp dword [ebp - 0x22c], 0
jne 0x1000f0ee
cmp dword [ebp - 0x22c], 0
jne 0x1000f0e2
cmp dword [ebp - 0x230], 0x7fffffff
jae 0x1000f0ee
mov dword [ebp - 0x238], 0
jmp 0x1000f0fa
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x238], ecx
push 0
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000f13a
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x1000f1ae
push 0
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.1001e830
add esp, 4
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000f192
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
jmp 0x1000f1ae
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret