Function at 0x140016a20
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x488
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [0x140091028]
xor rax, rbp
mov qword [rbp + 0x400], rax
lea rdi, [rcx + 8]
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140016f60
mov r14, qword [rbp - 0x18]
add r14, qword [rbp - 0x20]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
mov rax, qword [rsi + rax + 0x48]
mov rcx, qword [rax + 8]
mov qword [rbp - 0x18], rcx
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rbp - 0x20]
call fcn.140015790
mov rbx, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [rbx + 0x40]
mov ebx, eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140016ab6
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140016ab6
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rcx, rdi
mov edx, ebx
call fcn.140017fc0
mov rcx, rdi
call fcn.140004df0
lea r15, [rsi + 0x10]
lea rbx, [rbp + 0x3e0]
mov rcx, r15
mov rdx, rbx
call fcn.140017dc0
mov rax, qword [0x140091e28]
test rax, rax
je 0x140016b5a
mov r9, qword [rsi + 0xf0]
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
mov ecx, dword [rsi]
mov qword [rsp + 0x20], rbx
call rax
test al, al
je 0x140016b5a
mov rax, qword [rbp + 0x3f8]
cmp rax, 0x10
jb 0x140016e81
mov rcx, qword [rbp + 0x3e0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140016b50
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140016f4a
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.140051fb0
jmp 0x140016e81
test byte [section..data], 2
jne 0x140016b90
cmp dword [rsi], 2
jl 0x140016bfe
mov ecx, 2
call fcn.140057660
mov rdx, qword [rbp + 0x3f0]
cmp qword [rbp + 0x3f8], 0xf
jbe 0x140016bd7
mov rcx, qword [rbp + 0x3e0]
jmp 0x140016bde
cmp qword [rbp + 0x3f8], 0xf
mov rcx, rbx
jbe 0x140016ba4
mov rcx, qword [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call fcn.140057660
mov rdx, qword [rbp + 0x3f0]
cmp qword [rbp + 0x3f8], 0xf
jbe 0x140016bcc
mov rbx, qword [rbp + 0x3e0]
mov r8d, 1
mov rcx, rbx
jmp 0x140016be4
lea rcx, [rbp + 0x3e0]
mov r8d, 1
mov r9, rax
call fcn.14005f3f0
mov ecx, 2
call fcn.140057660
mov rcx, rax
call fcn.14005e2a0
test byte [section..data], 1
je 0x140016c4b
call fcn.140016090
test al, al
je 0x140016c4b
mov r8d, dword [rbp + 0x3f0]
cmp qword [rbp + 0x3f8], 0xf
jbe 0x140016c2a
mov rdx, qword [rbp + 0x3e0]
jmp 0x140016c31
lea rdx, [rbp + 0x3e0]
mov rcx, qword [0x140091e68]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi], 3
jne 0x140016e31
mov rcx, qword [0x1400920c8]
test rcx, rcx
je 0x140016c92
mov rax, qword [rbp + 0x3f0]
cmp qword [rbp + 0x3f8], 0xf
jbe 0x140016c7a
mov rdx, qword [rbp + 0x3e0]
jmp 0x140016c81
lea rdx, [rbp + 0x3e0]
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
call fcn.14002b350
cmp qword [rbp + 0x3f8], 0xf
jbe 0x140016ca5
mov rdx, qword [rbp + 0x3e0]
jmp 0x140016cac
lea rdx, [rbp + 0x3e0]
lea rbx, [rbp - 0x20]
mov r8d, 0x400
mov rcx, rbx
call fcn.140025120
mov rcx, rbx
call fcn.14000b290
mov rax, qword [0x140091e40]
test rax, rax
je 0x140016f3c
mov rbx, qword [0x140091e40]
cmp rbx, 1
ja 0x140016d29
lea rcx, [0x140091e40]
call fcn.14002ab60
test al, al
je 0x140016d22
xorps xmm0, xmm0
movups xmmword [0x140091e58], xmm0
movups xmmword [0x140091e48], xmm0
lea rbx, [0x140091e48]
lea rcx, [0x140091e40]
xor r8d, r8d
mov rdx, rbx
mov r9, rcx
call fcn.14002ac10
jmp 0x140016d29
mov rbx, qword [0x140091e40]
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x18]
je 0x140016f3c
mov rbx, qword [0x140091e40]
cmp rbx, 1
ja 0x140016d8a
lea rcx, [0x140091e40]
call fcn.14002ab60
test al, al
je 0x140016d83
xorps xmm0, xmm0
movups xmmword [0x140091e58], xmm0
movups xmmword [0x140091e48], xmm0
lea rbx, [0x140091e48]
lea rcx, [0x140091e40]
xor r8d, r8d
mov rdx, rbx
mov r9, rcx
call fcn.14002ac10
jmp 0x140016d8a
mov rbx, qword [0x140091e40]
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
cmove rdx, rax
add rdx, 0xffffffffffffffff
cmp rax, rdx
jb 0x140016f43
shl rdx, 3
add rdx, qword [rbx]
lea rcx, [rbp - 0x38]
call fcn.140024390
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x140016e28
cmp qword [rbp + 0x3f8], 0xf
jbe 0x140016dd2
mov rdi, qword [rbp + 0x3e0]
jmp 0x140016dd9
lea rdi, [rbp + 0x3e0]
mov rcx, rdi
add rcx, r14
mov qword [rbp - 0x48], rcx
je 0x140016dec
call fcn.140062e60
jmp 0x140016dee
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword [rsi + 0xf0]
sub r14, rax
add rdi, rax
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
mov r8d, dword [rsi + 0x100]
mov rdx, qword [rsi + 0xf8]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x58]
mov rcx, rbx
call qword [rbx + 8]
lea rcx, [rbp - 0x38]
call fcn.140024370
mov rax, qword [rbp + 0x3f8]
cmp rax, 0x10
jb 0x140016e76
mov rcx, qword [rbp + 0x3e0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140016e71
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140016f4a
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.140051fb0
mov qword [rbp + 0x3f8], 0xf
mov ecx, dword [rsi + 0x104]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea rcx, [0x140076de0]
mov qword [rsi + rax + 8], rcx
mov rax, qword [rsi + 8]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsi + rax + 4], ecx
lea rax, [0x140076df0]
mov qword [rsi + 0x10], rax
mov rcx, r15
call fcn.1400175a0
lea rax, [0x140076e70]
mov qword [rsi + 0x10], rax
mov rdi, qword [rsi + 0x70]
lea rsi, [rsi + 0x90]
test rdi, rdi
je 0x140016f0a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140016f02
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140016f02
mov rbx, qword [rax]
mov edx, 1
mov rcx, rax
call qword [rbx]
mov rcx, rdi
call fcn.140051fa0
lea rax, [0x140076ee8]
mov qword [rsi], rax
mov rcx, rsi
call fcn.140053270
mov rcx, qword [rbp + 0x400]
xor rcx, rbp
call fcn.140051fd0
nop
add rsp, 0x488
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
int3
int3
call fcn.14005ca40
ud2