Function at 0x100015e0
Capabilities:
Delete file
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x26c8
call fcn.1000c280
mov eax, dword [0x10017058]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x26b4], ecx
mov eax, dword [ebp - 0x26b4]
mov ecx, dword [ebp + 0x10]
and ecx, dword [eax + 0x20c]
je 0x10001619
mov edx, dword [ebp - 0x26b4]
cmp dword [edx], 0xffffffff
jne 0x1000161e
jmp 0x10001a75
push 0
mov eax, dword [ebp - 0x26b4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x1400000
jb 0x100016aa
mov ecx, dword [ebp - 0x26b4]
call fcn.100015b0
mov edx, dword [ebp - 0x26b4]
mov eax, dword [edx + 0x20c]
and eax, 1
je 0x1000166b
push 1
mov ecx, dword [ebp - 0x26b4]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x26b4]
call fcn.10001290
jmp 0x1000167b
mov edx, dword [ebp - 0x26b4]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x26b4]
mov ecx, dword [eax + 0x210]
push ecx
mov edx, dword [ebp - 0x26b4]
mov eax, dword [edx + 0x20c]
push eax
mov ecx, dword [ebp - 0x26b4]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x26b4]
call fcn.100013b0
mov dx, word [0x10014c14]
mov word [ebp - 0x1808], dx
push 0xffe
push 0
lea eax, [ebp - 0x1806]
push eax
call fcn.100090d0
add esp, 0xc
mov dword [ebp - 0x180c], 0xffffffff
mov cx, word [0x10014c14]
mov word [ebp - 0x808], cx
push 0x7fe
push 0
lea edx, [ebp - 0x806]
push edx
call fcn.100090d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x1860], ax
xor ecx, ecx
mov dword [ebp - 0x185e], ecx
mov dword [ebp - 0x185a], ecx
mov dword [ebp - 0x1856], ecx
mov word [ebp - 0x1852], cx
lea edx, [ebp - 0x1860]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1852]
push eax
movzx ecx, word [ebp - 0x1854]
push ecx
movzx edx, word [ebp - 0x1856]
push edx
movzx eax, word [ebp - 0x1858]
push eax
movzx ecx, word [ebp - 0x185a]
push ecx
movzx edx, word [ebp - 0x185e]
push edx
movzx eax, word [ebp - 0x1860]
push eax
push 0x10014c18
lea ecx, [ebp - 0x1808]
push ecx
call fcn.100024b0
add esp, 0x24
mov dx, word [0x10014c14]
mov word [ebp - 0x1850], dx
push 0x3e
push 0
lea eax, [ebp - 0x184e]
push eax
call fcn.100090d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1810], eax
mov ecx, dword [ebp - 0x1810]
push ecx
push 0x10014c64
lea edx, [ebp - 0x1850]
push edx
call fcn.100024e0
add esp, 0xc
lea eax, [ebp - 0x1850]
push eax
lea ecx, [ebp - 0x1808]
push ecx
call fcn.10002510
add esp, 8
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x26b8], edx
mov eax, dword [ebp - 0x26b8]
sub eax, 1
mov dword [ebp - 0x26b8], eax
cmp dword [ebp - 0x26b8], 0x3f
ja case.0x10001809.2
mov ecx, dword [ebp - 0x26b8]
movzx edx, byte [ecx + 0x10001aa8]
jmp dword [edx*4 + 0x10001a88]
push 0x10014c70
lea eax, [ebp - 0x18a0]
push eax
call fcn.10002530
add esp, 8
jmp 0x100018c4
push 0x10014c80
lea ecx, [ebp - 0x18a0]
push ecx
call fcn.10002530
add esp, 8
jmp 0x100018c4
push 0x10014c90
lea edx, [ebp - 0x18a0]
push edx
call fcn.10002530
add esp, 8
jmp 0x100018c4
push 0x10014ca4
lea eax, [ebp - 0x18a0]
push eax
call fcn.10002530
add esp, 8
jmp 0x100018c4
push 0x10014cb4
lea ecx, [ebp - 0x18a0]
push ecx
call fcn.10002530
add esp, 8
jmp 0x100018c4
push 0x10014cc4
lea edx, [ebp - 0x18a0]
push edx
call fcn.10002530
add esp, 8
jmp 0x100018c4
push 0x10014cd4
lea eax, [ebp - 0x18a0]
push eax
call fcn.10002530
add esp, 8
jmp 0x100018c4
push 0x10014ce0
lea ecx, [ebp - 0x18a0]
push ecx
call fcn.10002530
add esp, 8
lea edx, [ebp - 0x18a0]
push edx
lea eax, [ebp - 0x1808]
push eax
call fcn.10002510
add esp, 8
cmp dword [ebp + 0x10], 0x10
jne 0x100018e2
jmp 0x1000192d
cmp dword [ebp + 0x14], 0
jne 0x100018fe
push 0x10014ce8
lea ecx, [ebp - 0x1808]
push ecx
call fcn.10002510
add esp, 8
jmp 0x10001949
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0x3ff
lea ecx, [ebp - 0x808]
push ecx
call fcn.10001050
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x1808]
push eax
call fcn.10002510
add esp, 8
push 0x10014ce8
lea ecx, [ebp - 0x1808]
push ecx
call fcn.10002510
add esp, 8
xor edx, edx
jne 0x100016fc
mov eax, dword [ebp - 0x26b4]
cmp dword [eax], 0xffffffff
je 0x10001a75
lea ecx, [ebp - 0x1808]
mov dword [ebp - 0x26bc], ecx
mov edx, dword [ebp - 0x26bc]
add edx, 2
mov dword [ebp - 0x26c0], edx
mov eax, dword [ebp - 0x26bc]
mov cx, word [eax]
mov word [ebp - 0x26c2], cx
add dword [ebp - 0x26bc], 2
cmp word [ebp - 0x26c2], 0
jne 0x10001973
mov edx, dword [ebp - 0x26bc]
sub edx, dword [ebp - 0x26c0]
sar edx, 1
mov dword [ebp - 0x26c8], edx
je 0x10001a75
mov byte [ebp - 0x24a8], 0
push 0xbff
push 0
lea eax, [ebp - 0x24a7]
push eax
call fcn.100090d0
add esp, 0xc
push 0
push 0
push 0xbff
lea ecx, [ebp - 0x24a8]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x1808]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18a4], eax
cmp dword [ebp - 0x18a4], 0
jle 0x10001a75
push 0
lea eax, [ebp - 0x24ac]
push eax
mov ecx, dword [ebp - 0x18a4]
sub ecx, 1
push ecx
lea edx, [ebp - 0x24a8]
push edx
mov eax, dword [ebp - 0x26b4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24b0], eax
cmp dword [ebp - 0x24b0], 0
jne 0x10001a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_failed__GLE:__d_r_n
lea edx, [ebp - 0x26b0]
push edx
call fcn.10002550
add esp, 0xc
lea eax, [ebp - 0x26b0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x10], 8
jne 0x10001a75
mov ecx, dword [ebp - 0x26b4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000261e
mov esp, ebp
pop ebp
ret 0x14