Function at 0x180140d60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rbx, r8
mov qword [rbp + 0x58], 0
mov r15d, 1
mov rdi, r9
mov r8d, r15d
mov r14, rcx
mov rdx, qword [rbx]
call fcn.180143400
mov r13, rax
test rax, rax
jne 0x180140db5
add rsp, 0x118
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret
movdqa xmm0, xmmword [0x180160bb0]
lea rdx, [rsp + 0x38]
movdqa xmm1, xmmword [0x1801615e0]
lea rcx, [rbp - 0x30]
movabs rax, 0xac376134c6c74723
mov qword [rsp + 0x150], rsi
mov qword [rsp + 0x68], rax
movabs rax, 0xf993f31c159b129a
mov qword [rsp + 0x70], rax
movabs rax, 0x51292933998699a6
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [0x1801605e0]
movdqu xmmword [rsp + 0x48], xmm1
movdqu xmmword [rsp + 0x58], xmm0
call fcn.18000a020
mov rcx, rax
lea r8, [rbp + 0x58]
lea rdx, [rbp - 0x70]
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x70], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm0
movsd xmm1, qword [rax + 0x20]
movsd qword [rbp - 0x50], xmm1
mov eax, dword [rax + 0x28]
mov dword [rbp - 0x48], eax
movzx eax, word [rcx + 0x2c]
mov rcx, r13
mov word [rbp - 0x44], ax
call fcn.180142ef0
mov qword [rsp + 0x30], rax
mov rsi, rax
test rax, rax
je 0x180140f6a
mov r9, qword [rbx + 0x30]
mov rcx, r14
mov r8, qword [rdi]
mov qword [rsp + 0x110], r12
call fcn.180145f80
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x180140f62
mov rcx, qword [rbp + 0x58]
call fcn.180026520
cmp eax, 0x65
je 0x180140f58
cmp eax, 0x64
jne 0x180140f53
mov rbx, qword [rbp + 0x58]
lea edx, [rax - 0x62]
mov rcx, rbx
mov qword [rbp + 0x60], 0
call fcn.1800267e0
xor edx, edx
mov rcx, rbx
lea rsi, [rax + rax*4]
add rsi, rsi
call fcn.180026830
mov edx, 1
mov rcx, rbx
mov rdi, rax
call fcn.180026830
test rax, rax
lea r9, [0x18015f0aa]
lea r8, [0x18015f0aa]
mov rdx, rsi
cmovne r9, rax
mov rcx, r14
lea rax, [rbp + 0x60]
test rdi, rdi
mov qword [rsp + 0x20], rax
cmovne r8, rdi
call fcn.180144330
mov rbx, rax
test rax, rax
je 0x180140f41
mov eax, dword [rbp + 0x60]
mov r9, rbx
mov r8, r12
mov dword [rsp + 0x20], eax
mov rcx, r14
call fcn.180146300
mov rcx, rbx
mov r15d, eax
call fcn.180146f60
test r15d, r15d
je 0x180140f53
mov rcx, qword [rbp + 0x58]
call fcn.180026520
cmp eax, 0x65
jne 0x180140ea3
mov rsi, qword [rsp + 0x30]
mov rcx, r12
call qword [r14 + 0xa8]
mov r12, qword [rsp + 0x110]
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x180140f78
call fcn.180026a10
test rsi, rsi
je 0x180140f85
mov rcx, rsi
call fcn.180022770
mov rax, qword [r14]
mov rcx, r13
call rax
mov rsi, qword [rsp + 0x150]
test eax, eax
jne 0x180141088
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180162630]
lea rdx, [rsp + 0x38]
movdqa xmm1, xmmword [0x1801623f0]
lea rcx, [rbp - 0x70]
mov ebx, eax
movabs rax, 0xa8ce5db91a41f821
mov qword [rsp + 0x78], rax
movabs rax, 0xabe029e0b910e7d8
mov qword [rbp - 0x80], rax
movabs rax, 0x8d683d311751f608
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rbp - 0x78], rax
movdqa xmm0, xmmword [0x180161020]
movdqu xmmword [rsp + 0x48], xmm1
movdqa xmm1, xmmword [0x180160320]
movdqu xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
call fcn.180009d10
mov r9, r13
mov dword [rsp + 0x20], ebx
lea r8, [rbp - 0x30]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x30], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp - 0x10], xmm1
movsd xmm0, qword [rax + 0x30]
movsd qword [rbp], xmm0
movzx eax, word [rax + 0x38]
mov word [rbp + 8], ax
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call fcn.180146f60
mov eax, r15d
add rsp, 0x118
pop r15
pop r14
pop r13
pop rdi
pop rbx
pop rbp
ret