Function at 0x1400e3a40
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, 0x498
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [0x1403a6020]
mov qword [rcx], rax
lea rbx, [rcx + 0x10]
lea rdi, [rcx + 0x18]
lea r14, [rsp + 0x90]
mov rcx, rdi
mov rdx, r14
call fcn.1401c6fb0
movzx eax, byte [r14 + 0x17]
mov r15d, eax
and r15d, 0x7f
test al, al
jns 0x1400e3aa5
mov r15, qword [rsp + 0x98]
jns 0x1400e3ab4
mov rcx, qword [rsp + 0x90]
call fcn.140240d14
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
lea r14, [rsp + 0x90]
mov rdx, r14
call fcn.1401da4d0
lea rdx, [0x14042bf38]
mov rcx, r14
call fcn.1401db1f0
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [case.0x1402bbc90.0]
mov ebp, eax
mov rcx, r14
call fcn.1401da5e0
mov rcx, rbx
mov edx, ebp
call fcn.140099810
mov rcx, rbx
call fcn.140098500
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], r12
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [rbx], xmm0
mov rcx, rdi
mov rdx, rbx
call fcn.1401c6fb0
test byte [0x14041a810], 0x19
jne 0x1400e3c97
cmp dword [rsi + 8], 3
je 0x1400e3cb7
mov rax, qword [0x14042cd60]
test rax, rax
je 0x1400e3b80
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 [case.0x1402bbc90.0]
test al, al
jne 0x1400e3bb7
mov eax, dword [0x14041a268]
test al, 2
jne 0x1400e3d5a
test al, 4
jne 0x1400e3c43
cmp dword [rsi + 8], 2
jl 0x1400e3ba5
cmp eax, 1
jbe 0x1400e3c43
test al, 1
jne 0x1400e3d7a
cmp dword [rsi + 8], 3
je 0x1400e3dcc
cmp byte [rsp + 0x77], 0
jns 0x1400e3bc8
mov rcx, qword [rsp + 0x60]
call fcn.140240d14
lea rcx, [rsi + 0x12c]
call fcn.140205290
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1403a5950]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x1403a5960]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x1400e3c02
mov rcx, qword [rsi + 0x58]
call fcn.140240d14
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.1401c6eb0
mov rcx, rdi
call fcn.1401c6fa0
mov rcx, rsi
call fcn.1401c6ea0
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140242430
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x60]
movzx ecx, byte [rbx + 0x17]
mov r14d, ecx
and r14d, 0x7f
test cl, cl
cmovs r14, qword [rbx + 8]
cmovs rbx, qword [rbx]
test r14, r14
je 0x1400e3ba5
xor r13d, r13d
mov r8d, r14d
sub r8d, r13d
lea rdx, [rbx + r13]
mov ecx, 2
call fcn.14025f42c
test eax, eax
js 0x1400e3c8c
mov eax, eax
add r13, rax
cmp r14, r13
ja 0x1400e3c6a
mov eax, dword [0x14041a268]
jmp 0x1400e3ba5
lea rdx, [rsp + 0x90]
mov qword [rdx], rsi
mov qword [rdx + 8], rbx
lea rcx, str.LogMessage
call fcn.1402b34d0
jmp 0x1400e3b43
cmp byte [0x14042cdac], 0
jne 0x1400e3b4d
mov byte [0x14042cdac], 1
mov eax, dword [0x14042cdb8]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e3f1f
mov rcx, rsi
mov rdx, r14
call fcn.1402b3710
movzx eax, byte [rsp + 0xa7]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs r14, qword [rsp + 0x90]
cmovs rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0x80]
mov qword [rdx], r14
mov qword [rdx + 8], rcx
mov rcx, qword [0x14042cdb0]
call fcn.1402052b0
cmp byte [rsp + 0xa7], 0
jns 0x1400e3d4e
mov rcx, qword [rsp + 0x90]
call fcn.140240d14
mov byte [0x14042cdac], 0
jmp 0x1400e3b4d
cmp byte [rsp + 0x77], 0
jns 0x1400e3d66
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14041a268]
jmp 0x1400e3b8e
call fcn.1402b31c0
test al, al
je 0x1400e3bad
lea r9, [rsp + 0x90]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x60]
movzx eax, byte [rdx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x14042cd78]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400e3bad
mov rcx, qword [0x14042cd20]
test rcx, rcx
je 0x1400e3e07
lea rax, [rsp + 0x60]
movzx edx, byte [rax + 0x17]
mov r8d, edx
and r8d, 0x7f
test dl, dl
mov r9, qword [rax]
cmovns r9, rax
lea rdx, [rsp + 0x50]
mov qword [rdx], r9
cmovs r8, qword [rax + 8]
mov qword [rdx + 8], r8
call fcn.1402b1ac0
lea rbx, [rsp + 0x90]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.140244560
cmp byte [rsp + 0x77], 0
jns 0x1400e3e2d
mov rdx, qword [rsp + 0x60]
jmp 0x1400e3e32
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rbx
call fcn.1401e8660
mov rcx, rbx
call fcn.1401c6fa0
call fcn.1402b3460
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x1400e3f61
mov qword [rsp + 0x80], r12
call fcn.1402b3460
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x1400e3f64
shl rdx, 3
add rdx, qword [rax]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.1401de710
cmp qword [rbx], 0
jne 0x1400e3eb2
lea rcx, [rsp + 0x80]
call fcn.1401de6f0
jmp 0x1400e3bb7
cmp byte [rsp + 0x77], 0
jns 0x1400e3ec0
mov rbx, qword [rsp + 0x60]
jmp 0x1400e3ec5
lea rbx, [rsp + 0x60]
mov rcx, rbx
add rcx, r15
mov qword [rsp + 0x40], rcx
je 0x1400e3f67
call fcn.140268870
lea rcx, [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r15, rax
add rbx, rax
lea r9, [rsp + 0x30]
mov qword [r9], rbx
mov qword [r9 + 8], r15
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x80]
call fcn.1402b36a0
jmp 0x1400e3ea0
lea rcx, [0x14042cdb8]
call fcn.140240e30
cmp dword [0x14042cdb8], 0xffffffff
jne 0x1400e3cf0
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140138280
mov qword [0x14042cdb0], rax
lea rcx, [0x14042cdb8]
call fcn.140240ec8
jmp 0x1400e3cf0
int3
int3
int3