Function at 0x100013b0
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x20c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x210], eax
cmp dword [ebp + 8], 0
je 0x100015a3
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x38], 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push 1
push str.S:_ML__NW___LW_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10001474
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x3c]
push eax
push 1
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.10001290
push 0
push 0x80
push 4
lea eax, [ebp - 0x38]
push eax
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x4c]
mov dword [edx], eax
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0xffffffff
je 0x10001549
mov dword [ebp - 4], 1
push 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x100014f5
mov byte [ebp - 0x48], 0xef
mov byte [ebp - 0x47], 0xbb
mov byte [ebp - 0x46], 0xbf
push 0
lea eax, [ebp - 0x44]
push eax
push 3
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10001547
cmp dword [ebp - 0x40], 0x1400000
jb 0x10001535
mov ecx, dword [ebp - 0x4c]
call fcn.100015b0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x20c]
and edx, 1
je 0x10001524
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.10001290
jmp 0x1000152e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10001482
push 2
push 0
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10001550
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x10001560
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], str._r_n_r_n
push 4
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.10001fe0
push 0
push str.logger_is_started.
push 2
push 0x91
push str.CAppLog::Create
mov ecx, dword [ebp - 0x4c]
call fcn.100015e0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 4
push ecx
call fcn.10002490
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc