Function at 0x18003771f
Capabilities:
Write file on windows

Disassembly:
jmp 0x18008fd3c
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
mov r14d, r8d
movsxd r12, ecx
mov rdi, rdx
test r8d, r8d
je 0x180090005
test rdx, rdx
jne 0x18008fd8b
call fcn.180036e1e
mov dword [rax], ebx
call fcn.18003615d
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.180035479
or eax, 0xffffffff
jmp 0x180090007
mov rax, r12
lea rcx, [0x1800ce570]
and eax, 0x3f
mov r13, r12
sar r13, 6
lea r15, [rax + rax*8]
mov rcx, qword [rcx + r13*8]
movsx esi, byte [rcx + r15*8 + 0x39]
lea eax, [rsi - 1]
cmp al, 1
ja 0x18008fdbd
mov eax, r14d
not eax
test al, 1
je 0x18008fd6c
test byte [rcx + r15*8 + 0x38], 0x20
je 0x18008fdd3
xor edx, edx
mov ecx, r12d
lea r8d, [rdx + 2]
call fcn.18003577b
mov ecx, r12d
mov qword [rbp - 0x20], rbx
call fcn.1800380c5
test eax, eax
je 0x18008fef2
lea rax, [0x1800ce570]
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x38], bl
jge 0x18008fef2
call fcn.180035a3c
mov rcx, qword [rax + 0x90]
cmp qword [rcx + 0x138], rbx
jne 0x18008fe28
lea rax, [0x1800ce570]
mov rax, qword [rax + r13*8]
cmp byte [rax + r15*8 + 0x39], bl
je 0x18008fef2
lea rax, [0x1800ce570]
mov rcx, qword [rax + r13*8]
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r15*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x18008fef2
test sil, sil
je 0x18008fed4
dec sil
cmp sil, 1
ja 0x18008ff8e
lea r12, [rdi + r14]
mov qword [rbp - 0x30], rbx
mov r14, rdi
cmp rdi, r12
jae 0x18008ff84
mov esi, dword [rbp - 0x2c]
movzx eax, word [r14]
movzx ecx, ax
mov word [rbp - 0x10], ax
call fcn.180035014
movzx ecx, word [rbp - 0x10]
cmp ax, cx
jne 0x18008fec6
add esi, 2
mov dword [rbp - 0x2c], esi
cmp cx, 0xa
jne 0x18008feb7
mov ecx, SafeArrayDestroy
call fcn.180035014
mov ecx, SafeArrayDestroy
cmp ax, cx
jne 0x18008fec6
inc esi
mov dword [rbp - 0x2c], esi
inc ebx
add r14, 2
cmp r14, r12
jae 0x18008ff84
jmp 0x18008fe77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
jmp 0x18008ff84
mov r9d, r14d
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r12d
call fcn.18008eff8
movsd xmm0, qword [rax]
mov ebx, dword [rax + 8]
jmp 0x18008ff89
lea rax, [0x1800ce570]
mov rcx, qword [rax + r13*8]
cmp byte [rcx + r15*8 + 0x38], bl
jge 0x18008ff51
mov ecx, esi
test sil, sil
je 0x18008ff3d
sub ecx, 1
je 0x18008ff29
cmp ecx, 1
jne 0x18008ff8e
mov r9d, r14d
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r12d
call fcn.18008f8d4
jmp 0x18008fee6
mov r9d, r14d
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r12d
call fcn.18008fa34
jmp 0x18008fee6
mov r9d, r14d
lea rcx, [rbp - 0x30]
mov r8, rdi
mov edx, r12d
call fcn.18008f790
jmp 0x18008fee6
mov rcx, qword [rcx + r15*8 + 0x28]
lea r9, [rbp - 0x2c]
xor eax, eax
mov r8d, r14d
and qword [rsp + 0x20], rax
mov rdx, rdi
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18008ff81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
mov rax, qword [rbp - 0x20]
shr rax, 0x20
test eax, eax
jne 0x18008fffe
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x18008ffce
cmp eax, 5
jne 0x18008ffc1
call fcn.18003615d
mov dword [rax], 9
call fcn.180036e1e
mov dword [rax], 5
jmp 0x18008fd83
mov ecx, dword [rbp - 0x20]
call fcn.180035ded
jmp 0x18008fd83
lea rax, [0x1800ce570]
mov rax, qword [rax + r13*8]
test byte [rax + r15*8 + 0x38], 0x40
je 0x18008ffe6
cmp byte [rdi], 0x1a
je 0x180090005
call fcn.18003615d
mov dword [rax], 0x1c
call fcn.180036e1e
and dword [rax], 0
jmp 0x18008fd83
mov eax, dword [rbp - 0x1c]
sub eax, ebx
jmp 0x180090007
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret