Function at 0x180054ef0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800f07a0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x180055152
cmp byte [rcx + 0x71], 0
je 0x180055152
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp eax, 0xffffffff
jne 0x180054f4e
xor al, al
jmp 0x180055154
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov r15d, recv
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp r15, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x180054fd2
sub eax, 1
jne 0x1800550c6
jmp 0x180054fd6
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x180055024
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call fcn.18007c948
cmp rbx, rax
jne 0x1800550cb
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x71], 0
je 0x1800550e9
test rbx, rbx
jne 0x180054f90
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x20]
sub rax, r8
cmp rax, 8
jbe 0x1800550dc
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x1800550cf
cmp r9, rbx
jae 0x180055071
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.18000f650
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
jmp 0x18005508d
test rbx, rbx
jne 0x180055096
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], bl
jmp 0x180054f88
test rbx, rbx
je 0x180054f90
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x20]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rbx], dl
jmp 0x180054f88
cmp eax, 2
je 0x1800550e9
xor bl, bl
jmp 0x1800550eb
lea rcx, str.string_too_long
call fcn.18006cc20
int3
lea rcx, str.string_too_long
call fcn.18006cc20
int3
mov bl, 1
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x180055141
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, 0x1000
jb 0x18005513c
test cl, 0x1f
je 0x18005510f
call fcn.180071868
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18005511e
call fcn.180071868
int3
sub rcx, rax
cmp rcx, 8
jae 0x18005512d
call fcn.180071868
int3
cmp rcx, 0x27
jbe 0x180055139
call fcn.180071868
int3
mov rcx, rax
call fcn.18006a5cc
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], 0
movzx eax, bl
jmp 0x180055154
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18006ab60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret