Function at 0x180012ca0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xe8
mov rax, qword [0x18025ed68]
xor rax, rsp
mov qword [rbp - 9], rax
mov r12d, r9d
mov r15, r8
mov r14, rdx
lea r8, [rcx + 0x20]
mov r10, qword [rcx + 0x10]
mov r11, qword [r8 + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, r10
cmp rax, r11
jb 0x1800130c6
mov r9, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x180012cff
mov r9, qword [rcx]
cmp qword [r8 + 0x18], 0x10
jb 0x180012d09
mov r8, qword [r8]
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r10
mov r8, rcx
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x29]
call fcn.1800065a0
nop
mov rcx, qword [rbp - 0x19]
mov rdx, qword [rbp - 0x11]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x180012d75
lea rax, [rcx + 0xb]
mov qword [rbp - 0x19], rax
lea rbx, [rbp - 0x29]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x29]
add rbx, rcx
mov r8d, recv
lea rdx, [0x1801b8c20]
mov rcx, rbx
call fcn.18017b690
mov byte [rbx + 0xb], 0
lea rax, [rbp - 0x29]
jmp 0x180012d95
mov qword [rsp + 0x20], recv
lea r9, [0x1801b8c20]
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rbp - 0x29]
call fcn.180005920
xor r13d, r13d
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x49], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x39], xmm1
mov qword [rax + 0x10], r13
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rax + 0x18], rbx
mov byte [rax], r13b
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x31]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180012df4
lea rax, [rcx + 1]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x49]
mov word [rax + rcx], 0x5c
lea rax, [rbp - 0x49]
jmp 0x180012e14
mov qword [rsp + 0x20], 1
lea r9, [0x1801b7274]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x49]
call fcn.180005920
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], rbx
mov byte [rax], 0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm1
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x180012e69
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180012e64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800130cc
call fcn.18015ce94
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], rbx
mov byte [rbp - 0x49], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x180012eb0
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180012eab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800130d2
call fcn.18015ce94
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], rbx
mov byte [rbp - 0x29], 0
mov qword [rbp - 0x79], r13
mov qword [rbp - 0x71], r13
mov rdi, qword [rbp - 0x59]
lea rsi, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae rsi, qword [rbp - 0x69]
cmp rdi, 0x10
jae 0x180012ee6
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x50], xmm0
jmp 0x180012f5d
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x180012f3a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800130d8
mov rcx, rax
call fcn.18015ce58
mov rcx, rax
test rax, rax
je 0x1800130de
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180012f49
test rcx, rcx
je 0x180012f46
call fcn.18015ce58
jmp 0x180012f49
mov rax, r13
mov qword [rsp + 0x50], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call fcn.18017b690
mov qword [rbp - 0x79], rdi
mov qword [rbp - 0x71], rbx
lea rcx, [rsp + 0x50]
call fcn.180021130
mov r9, r14
cmp qword [r14 + 0x18], 0x10
jb 0x180012f7c
mov r9, qword [r14]
mov rdi, qword [r14 + 0x10]
mov rcx, qword [rbp - 0x59]
mov rdx, qword [rbp - 0x51]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x180012fbf
lea rax, [rcx + rdi]
mov qword [rbp - 0x59], rax
lea rbx, [rbp - 0x69]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x69]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call fcn.18017b690
mov byte [rbx + rdi], 0
jmp 0x180012fd3
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x69]
call fcn.180005920
lea rbx, [rbp - 0x69]
cmp qword [rbp - 0x51], 0x10
cmovae rbx, qword [rbp - 0x69]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x7f]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x77]
mov r8d, r12d
xor edx, edx
mov rcx, r15
call fcn.180020840
mov rdi, rax
test rax, rax
jne 0x18001300f
xor bl, bl
jmp 0x180013066
lea r8, [0x1801b72ac]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.18018817c
mov rbx, qword [rsp + 0x48]
test eax, eax
cmovne rbx, r13
mov qword [rsp + 0x48], rbx
mov rcx, rdi
test rbx, rbx
jne 0x180013042
call fcn.180180634
jmp 0x180013066
movsxd r8, dword [rsp + 0x44]
mov r9, rbx
mov edx, 1
call fcn.180183510
mov rcx, rbx
call fcn.18018268c
mov rcx, rdi
call fcn.180180634
mov bl, 1
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x18001309d
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180013098
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800130c0
call fcn.18015ce94
movzx eax, bl
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.18015d5d0
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18018023c
int3
call fcn.180008ba0
nop
call fcn.18018023c
nop
call fcn.18018023c
int3
call fcn.180008ab0
int3
call fcn.18018023c
int3