Function at 0x140014ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rsi, rdx
mov r12, rcx
xor r14d, r14d
mov ebx, r14d
mov dword [rsp + 0x30], ebx
call fcn.140014580
nop
cmp dword [r12 + 0xc], r14d
jne 0x140015158
cmp qword [r12 + 0x378], r14
je 0x140015158
lea rcx, [r12 + 0x380]
call fcn.140039650
test eax, eax
je 0x140014ffa
lea rcx, [r12 + 0x380]
call fcn.140039650
add eax, dword [rsi + 0x10]
mov ebx, eax
imul rbx, rbx, 0x54
mov rcx, rbx
call fcn.14008c4a0
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400c2840
mov r8d, dword [rsi + 0x10]
imul r8, r8, 0x54
mov rdx, qword [rsi]
mov rcx, rdi
call fcn.1400c1a10
mov rcx, qword [rsi + 8]
call fcn.14008c4f0
mov qword [rsi + 8], rdi
mov qword [rsi], rdi
lea rcx, [r12 + 0x380]
call fcn.140039050
mov rbx, rax
test rbx, rbx
je 0x140014fed
mov rcx, rbx
call fcn.140038640
test rax, rax
je 0x140014fd8
mov edx, dword [rsi + 0x10]
imul rdx, rdx, 0x54
mov rcx, qword [rsi]
add rcx, rdx
mov rdx, rax
mov r8d, 0x54
call fcn.1400c1a10
add dword [rsi + 0x10], 1
mov rdx, rbx
lea rcx, [r12 + 0x380]
call fcn.140039060
mov rbx, rax
jmp 0x140014fa7
lea rcx, [r12 + 0x380]
call fcn.1400142f0
mov dword [rsp + 0xb8], r14d
mov qword [rsp + 0x38], r14
mov edi, dword [rsi + 0x10]
imul edi, edi, 0x54
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0xb8]
mov r8, qword [rsi]
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.140014080
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14001514a
mov dword [rsp + 0xb0], r14d
xor eax, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x4c], 0xff23ff24
mov dword [rsp + 0x50], 0x30000
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x54], 0x1c
mov esi, dword [rsp + 0xb8]
mov dword [rsp + 0x5c], esi
mov dword [rsp + 0x60], edi
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rdx, [rsp + 0x4c]
or ecx, 0xffffffff
call fcn.1400bae40
mov dword [rsp + 0x48], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r12 + 0x378]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xb0]
mov r8d, 0x1c
lea rdx, [rsp + 0x48]
mov rcx, qword [r12 + 0x378]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14001513d
cmp dword [rsp + 0xb0], 0x1c
jne 0x14001513d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xb0]
mov r8d, esi
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, qword [r12 + 0x378]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x140015134
cmp esi, dword [rsp + 0xb0]
jne 0x140015134
mov ebx, 1
mov dword [rsp + 0x30], ebx
jmp 0x140015142
mov ebx, r14d
mov dword [rsp + 0x30], ebx
jmp 0x140015142
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14008c4f0
mov rcx, qword [r12 + 0x378]
call fcn.140014620
nop
jmp 0x140015166
mov rcx, r12
call fcn.1400145d0
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret