Function at 0x180139110
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rbx, r8
mov qword [rbp + 0x118], 0
mov r15d, 1
mov rsi, r9
mov r8d, r15d
mov rdi, rcx
mov rdx, qword [rbx]
call fcn.180143400
mov r13, rax
test rax, rax
jne 0x180139169
add rsp, 0x1d8
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
movdqa xmm0, xmmword [0x180160cd0]
lea rdx, [rsp + 0x38]
movdqa xmm1, xmmword [0x180162160]
lea rcx, [rbp - 0x10]
movabs rax, 0xa8ce5db91a41f821
mov qword [rsp + 0x1d0], r14
mov qword [rsp + 0x78], rax
movabs rax, 0xa7d2b16832bd51e4
mov qword [rbp - 0x80], rax
movabs rax, 0x22b66fa51822a948
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rbp - 0x78], rax
movdqa xmm0, xmmword [0x180160ac0]
movdqu xmmword [rsp + 0x48], xmm1
movdqa xmm1, xmmword [0x1801611c0]
movdqu xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
call fcn.1800119c0
lea r8, [rbp + 0x118]
mov rcx, r13
lea rdx, [rbp + 0x38]
movups xmm2, xmmword [rax]
movups xmmword [rbp + 0x38], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp + 0x58], xmm1
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rbp + 0x68], xmm0
movzx eax, byte [rax + 0x40]
mov byte [rbp + 0x78], al
call fcn.180142ef0
mov qword [rbp + 0x120], rax
mov r14, rax
test rax, rax
je 0x180139464
mov r9, qword [rbx + 0x28]
mov rcx, rdi
mov r8, qword [rsi]
mov qword [rsp + 0x210], r12
call fcn.180145f80
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x18013945c
mov rcx, qword [rbp + 0x118]
call fcn.180026520
cmp eax, 0x65
je 0x180139453
cmp eax, 0x64
jne 0x18013944c
mov rbx, qword [rbp + 0x118]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x30], 0
call fcn.180026830
test rax, rax
lea rsi, [0x18015f0aa]
mov edx, 1
mov rcx, rbx
cmovne rsi, rax
call fcn.180026830
test rax, rax
lea r14, [0x18015f0aa]
mov edx, 3
mov rcx, rbx
cmovne r14, rax
call fcn.1800267e0
test rax, rax
jne 0x1801392c9
xor edx, edx
jmp 0x1801392dd
movabs rcx, 0x295e9648864000
add rax, rcx
lea rdx, [rax + rax*4]
add rdx, rdx
lea rax, [rsp + 0x30]
mov r9, r14
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.180144330
mov rbx, rax
test rax, rax
je 0x180139323
mov eax, dword [rsp + 0x30]
mov r9, rbx
mov r8, r12
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.180146300
mov rcx, rbx
mov r15d, eax
call fcn.180146f60
test r15d, r15d
je 0x18013933d
mov rcx, qword [rbp + 0x118]
call fcn.180026520
cmp eax, 0x65
jne 0x180139267
jmp 0x18013944c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180160bc0]
lea rdx, [rbp - 0x70]
movdqa xmm1, xmmword [0x180161b00]
lea rcx, [rsp + 0x38]
mov ebx, eax
mov dword [rbp - 0x30], 0x93089315
xor eax, eax
mov byte [rbp - 0x2c], 0x16
mov word [rbp - 0x2b], ax
mov byte [rbp - 0x29], al
movabs rax, 0xa8ce5db91a41f821
mov qword [rbp - 0x28], rax
movabs rax, 0xa7d2b16832bd51e4
mov qword [rbp - 0x20], rax
movabs rax, 0x22b66fa51822a948
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x18], rax
movdqa xmm0, xmmword [0x1801612d0]
movdqu xmmword [rbp - 0x60], xmm1
movdqa xmm1, xmmword [0x1801610e0]
movdqu xmmword [rbp - 0x50], xmm0
movdqu xmmword [rbp - 0x40], xmm1
call fcn.180011c90
mov r9d, ebx
lea r8, [rbp + 0x80]
mov edx, 0x100000
movups xmm2, xmmword [rax]
movups xmmword [rbp + 0x80], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp + 0xa0], xmm1
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rbp + 0xb0], xmm0
mov ecx, dword [rax + 0x40]
mov dword [rbp + 0xc0], ecx
lea rcx, [0x18017bd90]
movzx eax, word [rax + 0x44]
mov word [rbp + 0xc4], 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 r14, qword [rbp + 0x120]
mov rcx, r12
call qword [rdi + 0xa8]
mov r12, qword [rsp + 0x210]
mov rcx, qword [rbp + 0x118]
test rcx, rcx
je 0x180139475
call fcn.180026a10
test r14, r14
je 0x180139482
mov rcx, r14
call fcn.180022770
mov rax, qword [rdi]
mov rcx, r13
call rax
mov r14, qword [rsp + 0x1d0]
test eax, eax
jne 0x180139585
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x1801625d0]
lea rdx, [rsp + 0x38]
movdqa xmm1, xmmword [0x180161970]
lea rcx, [rbp + 0x38]
mov ebx, eax
movabs rax, 0x5c86a03627c64527
mov qword [rsp + 0x78], rax
movabs rax, 0x6bb3cf1ef34a0030
mov qword [rbp - 0x80], rax
movabs rax, 0xdbff2c404dd8d258
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rbp - 0x78], rax
movdqa xmm0, xmmword [0x180161e50]
movdqu xmmword [rsp + 0x48], xmm1
movdqa xmm1, xmmword [0x180160370]
movdqu xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
call fcn.180009d10
mov r9, r13
mov dword [rsp + 0x20], ebx
lea r8, [rbp - 0x10]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x10], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbp + 0x10], xmm1
movsd xmm0, qword [rax + 0x30]
movsd qword [rbp + 0x20], xmm0
movzx eax, word [rax + 0x38]
mov word [rbp + 0x28], 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, 0x1d8
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret