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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1400e2040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x58]
mov qword [rcx], r12
call fcn.140046940
lea rbx, [rsi + 0x10]
lea r15, [rsi + 0x18]
lea rdi, [rsp + 0x40]
mov rcx, r15
mov rdx, rdi
call fcn.1400199b0
lea r14, [rsp + 0x80]
lea r8, [rsp + 0x28]
mov rcx, r14
mov rdx, rdi
call fcn.14003b920
movsx rdi, byte [r14 + 0x17]
test rdi, rdi
jns 0x1400a098f
mov rdi, qword [rsp + 0x88]
jns 0x1400a099e
mov rcx, qword [rsp + 0x80]
call fcn.140054d8c
mov rax, qword [rsi + 0x10]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0x80]
mov rdx, r14
call fcn.140041040
lea rdx, [0x1400f2560]
mov rcx, r14
call fcn.140041a70
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1400d7fd8]
mov ebp, eax
mov rcx, r14
call fcn.140041170
mov rcx, rbx
mov edx, ebp
call fcn.140085b30
mov rcx, rbx
call fcn.140085710
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x10], r12
movaps xmm0, xmmword [0x1400c8910]
movaps xmmword [rbx], xmm0
lea r14, [rsp + 0x80]
mov rcx, r15
mov rdx, r14
call fcn.1400199b0
lea r8, [rsp + 0x28]
mov rcx, rbx
mov rdx, r14
call fcn.14003b920
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r14
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.140042230
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], 0x57
mov rax, qword [0x1400d07d8]
mov al, byte [rax + 0x57]
test al, al
jne 0x1400a0ca5
cmp byte [rsp + 0x3f], 0
jns 0x1400a0a94
mov rcx, qword [rsp + 0x28]
call fcn.140054d8c
cmp dword [rsi + 8], 3
jne 0x1400a0aaa
mov bpl, byte [0x1400f3184]
test bpl, bpl
je 0x1400a0c00
mov rax, qword [0x1400f3140]
test rax, rax
je 0x1400a0ae1
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x20], rbx
call qword [0x1400d7fd8]
test al, al
jne 0x1400a0b61
mov eax, dword [0x1400e4020]
test al, 2
je 0x1400a0b06
cmp byte [rsp + 0x57], 0
jns 0x1400a0af7
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400e4020]
test al, 4
jne 0x1400a0b17
test eax, 0xfffffffa
jne 0x1400a0b5d
cmp dword [rsi + 8], 2
jl 0x1400a0b5d
lea rbx, [rsp + 0x40]
movsx r14, byte [rbx + 0x17]
test r14, r14
cmovs r14, qword [rbx + 8]
cmovs rbx, qword [rbx]
test r14, r14
je 0x1400a0b5d
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rbx + r15]
mov ecx, 2
call fcn.14006a52c
test eax, eax
js 0x1400a0b57
mov eax, eax
add r15, rax
cmp r15, r14
jb 0x1400a0b35
mov eax, dword [0x1400e4020]
test al, 1
jne 0x1400a0bb7
cmp dword [rsi + 8], 3
je 0x1400a0ba5
cmp byte [rsp + 0x57], 0
jns 0x1400a0b78
mov rcx, qword [rsp + 0x40]
call fcn.140054d8c
lea rcx, [rsp + 0x58]
call fcn.140046980
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140055fa0
nop
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.1400a0e00
jmp 0x1400a0b67
call fcn.1400a0180
test al, al
je 0x1400a0b61
lea r9, [rsp + 0x80]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x40]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x1400f3128]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400a0b61
mov byte [0x1400f3184], 1
mov eax, dword [0x1400f3190]
mov ecx, dword [0x1400f0618]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a0ce5
mov rcx, rsi
mov rdx, r14
call fcn.1400a0d30
movsx rax, byte [rsp + 0x97]
test rax, rax
jns 0x1400a0c55
mov rax, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], rax
test rax, rax
js 0x1400a0ce3
sete al
test r14, r14
setne cl
or cl, al
je 0x1400a0ce3
mov rcx, qword [0x1400f3188]
lea rdx, [rsp + 0x28]
call fcn.14002c950
cmp byte [rsp + 0x97], 0
jns 0x1400a0c99
mov rcx, qword [rsp + 0x80]
call fcn.140054d8c
mov byte [0x1400f3184], bpl
jmp 0x1400a0aaa
movzx ecx, al
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x80]
mov qword [r9], rax
lea rax, [rsp + 0x74]
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], r15
lea rax, str.LogMessage
lea r8, [rsp + 0x78]
mov qword [r8], rax
lea rdx, [rsp + 0x60]
call fcn.1400a13d0
jmp 0x1400a0a83
ud2
lea rcx, [0x1400f3190]
call fcn.140054ddc
cmp dword [0x1400f3190], 0xffffffff
jne 0x1400a0c2c
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.14002c920
mov qword [0x1400f3188], rax
lea rcx, [0x1400f3190]
call fcn.140054e90
jmp 0x1400a0c2c