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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x98]
mov qword [rcx], r12
call fcn.1400788f0
lea rbx, [rsi + 0x10]
lea r15, [rsi + 0x18]
lea rdi, [rsp + 0x50]
mov rcx, r15
mov rdx, rdi
call fcn.140075870
lea r14, [rsp + 0x30]
lea r8, [rsp + 0x70]
mov rcx, r14
mov rdx, rdi
call fcn.1400c9620
movsx rdi, byte [r14 + 0x17]
test rdi, rdi
jns 0x140134f0c
mov rdi, qword [rsp + 0x38]
jns 0x140134f18
mov rcx, qword [rsp + 0x30]
call fcn.1400d2b80
mov rax, qword [rbx]
movsxd rax, dword [rax + 4]
mov r14, qword [rbx + rax + 0x30]
mov qword [rsp + 0x30], r14
lea r13, [0x140207420]
cmp r14, r13
jne 0x14013525b
lea rdx, [0x140208120]
lea rcx, [rsp + 0x30]
call fcn.1400a1080
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x1401e8220]
mov ebp, eax
cmp r14, r13
jne 0x140135265
mov rcx, rbx
mov edx, ebp
call fcn.140110ac0
mov rcx, rbx
call fcn.140110530
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x10], r12
movaps xmm0, xmmword [0x1401c7000]
movaps xmmword [rbx], xmm0
lea r14, [rsp + 0x30]
mov rcx, r15
mov rdx, r14
call fcn.140075870
lea r8, [rsp + 0x70]
mov rcx, rbx
mov rdx, r14
call fcn.1400c9620
mov r8, qword [rsi + 0x118]
mov qword [rsp + 0x20], r14
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, rbx
mov r9, 0xffffffffffffffff
call fcn.1400ca690
mov eax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x88], 0x57
mov al, byte [0x1402081a7]
test al, al
jne 0x1401351d3
cmp byte [rsp + 0x87], 0
jns 0x140135019
mov rcx, qword [rsp + 0x70]
call fcn.1400d2b80
cmp dword [rsi + 8], 3
jne 0x14013502c
cmp byte [0x140208494], 0
je 0x14013513d
mov eax, dword [0x1401f8650]
test al, 2
je 0x140135051
cmp byte [rsp + 0x67], 0
jns 0x140135042
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1401f8650]
test al, 4
jne 0x140135062
test eax, 0xfffffffa
jne 0x1401350a8
cmp dword [rsi + 8], 2
jl 0x1401350a8
lea rbx, [rsp + 0x50]
movsx r14, byte [rbx + 0x17]
test r14, r14
cmovs r14, qword [rbx + 8]
cmovs rbx, qword [rbx]
test r14, r14
je 0x1401350a8
xor r15d, r15d
mov r8d, r14d
sub r8d, r15d
lea rdx, [rbx + r15]
mov ecx, 2
call fcn.1400eea24
test eax, eax
js 0x1401350a2
mov eax, eax
add r15, rax
cmp r15, r14
jb 0x140135080
mov eax, dword [0x1401f8650]
test al, 1
jne 0x1401350f7
cmp dword [rsi + 8], 3
je 0x1401350e5
cmp byte [rsp + 0x67], 0
jns 0x1401350c3
mov rcx, qword [rsp + 0x50]
call fcn.1400d2b80
lea rcx, [rsp + 0x98]
call fcn.1400cc5f0
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [rsp + 0x50]
mov rcx, rsi
mov rdx, rdi
call fcn.140135360
jmp 0x1401350b2
call fcn.1401347f0
test al, al
je 0x1401350ac
lea r9, [rsp + 0x30]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x50]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x140208450]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1401350ac
mov byte [0x140208494], 1
mov eax, dword [0x1402084a0]
mov ecx, dword [0x1402053a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140135219
mov rcx, rsi
mov rdx, r14
call fcn.140135290
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x140135189
mov rax, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rax
test rax, rax
js 0x140135217
sete al
test r14, r14
setne cl
or cl, al
je 0x140135217
mov rcx, qword [0x140208498]
lea rdx, [rsp + 0x70]
call fcn.140008a60
cmp byte [rsp + 0x47], 0
jns 0x1401351c7
mov rcx, qword [rsp + 0x30]
call fcn.1400d2b80
mov byte [0x140208494], 0
jmp 0x14013502c
movzx ecx, al
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x30]
mov qword [r9], rax
lea rax, [rsp + 0x4c]
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], r15
lea rax, str.LogMessage
lea r8, [rsp + 0xa0]
mov qword [r8], rax
lea rdx, [rsp + 0x88]
call fcn.140135990
jmp 0x140135005
ud2
lea rcx, [0x1402084a0]
call fcn.1400d2c50
cmp dword [0x1402084a0], 0xffffffff
jne 0x140135169
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140075c70
mov qword [0x140208498], rax
lea rcx, [0x1402084a0]
call fcn.1400d2be4
jmp 0x140135169
lock inc dword [r14 + 8]
jmp 0x140134f39
mov eax, 0xffffffff
lock xadd dword [r14 + 8], eax
test eax, eax
jne 0x140134f6a
mov rax, qword [r14]
mov rax, qword [rax + 8]
mov rcx, r14
call qword [0x1401e8220]
jmp 0x140134f6a