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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x580], rbx
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov r14, r9
mov r12, r8
mov r15, rdx
mov rsi, rcx
lea rdi, [rcx + 0x278]
xor r13d, r13d
mov ebx, r13d
mov qword [rsp + 0x60], rbx
test rdi, rdi
je 0x18002ae01
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, rdi
mov qword [rsp + 0x60], rbx
cmp qword [rsi + 0x270], 0xffffffffffffffff
je 0x18002ae15
mov edi, 0x80070057
jmp 0x18002b112
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp]
call fcn.1800abaa0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov word [rbp - 0x10], ax
lea edx, [rax + 0x21]
lea rcx, [rbp - 0x50]
lea rax, [rbp - 0x50]
mov r8, r12
sub r8, rax
lea rax, [rdx + 0x7fffffdd]
test rax, rax
je 0x18002ae97
movzx eax, word [r8 + rcx]
test ax, ax
je 0x18002ae97
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x18002ae74
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r13w
test r14, r14
je 0x18002af51
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov word [rbp - 0x60], ax
lea edx, [rax + 0x11]
lea rcx, [rbp - 0x80]
lea rax, [rbp - 0x80]
mov r8, r14
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffffed]
test rax, rax
je 0x18002af03
movzx eax, word [r8 + rcx]
test ax, ax
je 0x18002af03
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x18002aee0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r13w
movzx eax, word [rsp + 0x76]
movzx ecx, word [rsp + 0x72]
movzx edx, word [rsp + 0x70]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
lea r8, str._s._s._4.4d__2.2d__2.2d.log
mov edx, 0x104
lea rcx, [rbp]
call fcn.18002d2f0
jmp 0x18002af85
movzx eax, word [rsp + 0x76]
movzx ecx, word [rsp + 0x72]
movzx edx, word [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r9, [rbp - 0x50]
lea r8, str._s._4.4d__2.2d__2.2d.log
mov edx, 0x104
lea rcx, [rbp]
call fcn.18002d2f0
mov edi, eax
test eax, eax
js 0x18002b112
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x210]
call fcn.1800abaa0
lea r8, [rbp]
mov rdx, r15
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rax, rax
je 0x18002b044
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x58], r13d
xor r9d, r9d
lea r8, [rsp + 0x50]
lea edx, [rax + 1]
lea rcx, str.D:_A_OICI_GAFA___BU__A_OICI_GAFA___LS__A_OICI_GAFA___SY_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
lea r9, [rsp + 0x48]
test eax, eax
cmove r9, r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 4
mov edx, 0x40000000
mov r8d, 1
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18002b03e
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rdi, 0xffffffffffffffff
jne 0x18002b062
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x18002b112
movzx edi, ax
or edi, 0x80070000
jmp 0x18002b112
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x18002b0a1
mov eax, 0xfeff
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsi + 0x270], rdi
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x2a0], xmm0
mov r8, r15
mov edx, 0x208
mov rcx, rsi
call fcn.18002d5b0
lea rcx, [rsi + 0x208]
mov r8, r12
mov edx, 0x42
call fcn.18002d5b0
test r14, r14
je 0x18002b107
lea rcx, [rsi + 0x24a]
mov r8, r14
mov edx, 0x22
call fcn.18002d5b0
jmp 0x18002b10f
mov word [rsi + 0x24a], r13w
mov edi, r13d
test rbx, rbx
je 0x18002b120
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.18008f850
mov rbx, qword [rsp + 0x580]
add rsp, 0x530
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret