Function at 0x14005c350
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14014ee68]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbp, rcx
cmp qword [rcx + 0x70], 0
je 0x14005c7a2
cmp byte [rcx + 0x79], 0
je 0x14005c7a2
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 0xffffffff
jne 0x14005c3ad
xor al, al
jmp 0x14005c7a4
mov edx, send
mov qword [rsp + 0x60], rdx
mov byte [rsp + 0x48], 0
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x58], 8
lea rax, [rsp + 0x48]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r13d, r13d
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
nop dword [rax]
cmp r9, 0x10
jb 0x14005c400
mov rdi, r8
test r8, r8
je 0x14005c431
jmp 0x14005c405
lea rdi, [rsp + 0x48]
lea rax, [rsp + 0x48]
cmp r9, 0x10
cmovae rax, r8
cmp rax, rdi
ja 0x14005c431
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rcx, rax
cmp rdi, rcx
jbe 0x14005c440
call fcn.14001efc4
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
cmp rax, 0xfffffffffffffffc
je 0x14005c474
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rcx, rax
cmp rdi, rcx
jb 0x14005c474
call fcn.14001efc4
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
cmp r9, 0x10
jb 0x14005c489
mov rbx, r8
test r8, r8
je 0x14005c4ba
jmp 0x14005c48e
lea rbx, [rsp + 0x48]
lea rax, [rsp + 0x48]
cmp r9, 0x10
cmovae rax, r8
cmp rax, rbx
ja 0x14005c4ba
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rcx, rax
cmp rbx, rcx
jbe 0x14005c4c9
call fcn.14001efc4
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
cmp rax, 0xfffffffffffffffc
je 0x14005c4f3
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rcx, rax
cmp rbx, rcx
jb 0x14005c4f3
call fcn.14001efc4
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx]
lea r9, [rdi + rsi]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r8, rbx
lea rdx, [rbp + 0x7c]
call qword [rax + 0x30]
test eax, eax
je 0x14005c521
sub eax, 1
jne 0x14005c749
jmp 0x14005c525
mov byte [rbp + 0x79], r13b
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x60]
cmp r9, 0x10
jb 0x14005c53f
mov rbx, r8
test r8, r8
je 0x14005c570
jmp 0x14005c544
lea rbx, [rsp + 0x48]
lea rax, [rsp + 0x48]
cmp r9, 0x10
cmovae rax, r8
cmp rax, rbx
ja 0x14005c570
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rcx, rax
cmp rbx, rcx
jbe 0x14005c57f
call fcn.14001efc4
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
cmp rax, 0xfffffffffffffffc
je 0x14005c5b3
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rcx, rax
cmp rbx, rcx
jb 0x14005c5b3
call fcn.14001efc4
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x30]
sub rdi, rbx
je 0x14005c665
cmp r9, 0x10
jb 0x14005c5d1
mov rbx, r8
test r8, r8
je 0x14005c602
jmp 0x14005c5d6
lea rbx, [rsp + 0x48]
lea rax, [rsp + 0x48]
cmp r9, 0x10
cmovae rax, r8
cmp rax, rbx
ja 0x14005c602
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rcx, rax
cmp rbx, rcx
jbe 0x14005c611
call fcn.14001efc4
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
cmp rax, 0xfffffffffffffffc
je 0x14005c63b
lea rdx, [rsp + 0x48]
cmp r9, 0x10
cmovae rdx, r8
mov rax, qword [rsp + 0x58]
add rdx, rax
cmp rbx, rdx
jb 0x14005c63b
call fcn.14001efc4
mov r9, qword [rbp + 0x88]
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.1400acdf8
cmp rdi, rax
jne 0x14005c77a
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
cmp byte [rbp + 0x79], r13b
je 0x14005c790
test rdi, rdi
jne 0x14005c3f0
or rax, 0xffffffffffffffff
sub rax, qword [rsp + 0x58]
cmp rax, 8
ja 0x14005c696
call fcn.14008c4b8
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rbx, 8
cmp rbx, 0xfffffffffffffffe
jbe 0x14005c6b4
call fcn.14008c4b8
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
cmp r9, rbx
jae 0x14005c6d7
mov r8, qword [rsp + 0x58]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400027f0
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
jmp 0x14005c700
test rbx, rbx
jne 0x14005c700
mov qword [rsp + 0x58], r13
lea rax, [rsp + 0x48]
cmp r9, 0x10
cmovae rax, r8
mov byte [rax], r13b
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
jmp 0x14005c3f0
test rbx, rbx
je 0x14005c3f0
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
xor edx, edx
mov qword [rax + rcx], rdx
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [rbx + rax], dl
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
jmp 0x14005c3f0
sub eax, 2
je 0x14005c764
cmp qword [rsp + 0x60], 0x10
jb 0x14005c760
mov rcx, qword [rsp + 0x48]
call fcn.14000fdf8
xor al, al
jmp 0x14005c7a4
cmp qword [rsp + 0x60], 0x10
jb 0x14005c776
mov rcx, qword [rsp + 0x48]
call fcn.14000fdf8
mov al, 1
jmp 0x14005c7a4
cmp qword [rsp + 0x60], 0x10
jb 0x14005c78c
mov rcx, qword [rsp + 0x48]
call fcn.14000fdf8
xor al, al
jmp 0x14005c7a4
cmp r9, 0x10
jb 0x14005c79e
mov rcx, r8
call fcn.14000fdf8
mov al, 1
jmp 0x14005c7a4
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001e7c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret