Function at 0x140028da0
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 r12, rcx
mov rax, qword [0x1400e3028]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [0x1400cf800]
mov qword [rcx], rax
lea rsi, [rcx + 0x10]
lea r14, [rcx + 0x18]
lea rdi, [rsp + 0x90]
mov rcx, r14
mov rdx, rdi
call fcn.14001ab60
movzx eax, byte [rdi + 0x17]
mov r13d, eax
and r13d, 0x7f
test al, al
jns 0x140028e04
mov r13, qword [rsp + 0x98]
jns 0x140028e13
mov rcx, qword [rsp + 0x90]
call fcn.140060988
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
lea r15, [rsp + 0x90]
mov rdx, r15
call fcn.140042a30
lea rdx, [0x1400f41e8]
mov rcx, r15
call fcn.140042cc0
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, rdi
call qword [0x140103008]
mov ebx, eax
mov rcx, r15
call fcn.140042b40
mov rcx, rsi
mov edx, ebx
call fcn.14001a8c0
mov rcx, rsi
call fcn.140019c70
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rbp
movaps xmm0, xmmword [0x1400cfa30]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.14001ab60
test byte [0x1400e54c0], 0x19
jne 0x140029004
cmp dword [r12 + 8], 3
je 0x140029024
mov rax, qword [0x1400f4fd0]
test rax, rax
je 0x140028ee6
mov r9, qword [r12 + 0x118]
mov r8d, dword [r12 + 0x128]
mov rdx, qword [r12 + 0x120]
mov ecx, dword [r12 + 8]
mov qword [rsp + 0x20], rbx
call qword [0x140103008]
test al, al
jne 0x140028f21
mov eax, dword [0x1400e4f68]
test al, 2
jne 0x1400290c7
test al, 4
jne 0x140028fb3
cmp dword [r12 + 8], 2
jl 0x140028f0d
cmp eax, 1
jbe 0x140028fb3
test al, 1
jne 0x1400290e7
cmp dword [r12 + 8], 3
je 0x140029139
cmp byte [rsp + 0x77], 0
jns 0x140028f32
mov rcx, qword [rsp + 0x60]
call fcn.140060988
lea rcx, [r12 + 0x12c]
call fcn.140048b70
mov rax, qword [r12 + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x1400cf688]
mov qword [r12 + rax + 0x10], rcx
lea rax, [0x1400cf690]
mov qword [r12 + 0x18], rax
cmp byte [r12 + 0x6f], 0
jns 0x140028f72
mov rcx, qword [r12 + 0x58]
call fcn.140060988
sub r12, 0xffffffffffffff80
mov rcx, r14
call fcn.14003f720
mov rcx, r14
call fcn.14003fc70
mov rcx, r12
call fcn.14003f710
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140061c90
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x60]
movzx ecx, byte [rdi + 0x17]
mov ebx, ecx
and ebx, 0x7f
test cl, cl
cmovs rbx, qword [rdi + 8]
cmovs rdi, qword [rdi]
test rbx, rbx
je 0x140028f0d
xor esi, esi
mov r8d, ebx
sub r8d, esi
lea rdx, [rdi + rsi]
mov ecx, 2
call fcn.1400768b4
test eax, eax
js 0x140028ff9
mov eax, eax
add rsi, rax
cmp rbx, rsi
ja 0x140028fd7
mov eax, dword [0x1400e4f68]
jmp 0x140028f0d
lea rdx, [rsp + 0x90]
mov qword [rdx], r12
mov qword [rdx + 8], rbx
lea rcx, str.LogMessage
call fcn.1400a7570
jmp 0x140028ea2
cmp byte [0x1400f501c], 0
jne 0x140028eae
mov byte [0x1400f501c], 1
mov eax, dword [0x1400f5028]
mov ecx, dword [0x1400f2494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002928d
mov rcx, r12
mov rdx, r15
call fcn.1400a7750
movzx eax, byte [rsp + 0xa7]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs r15, qword [rsp + 0x90]
cmovs rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0x80]
mov qword [rdx], r15
mov qword [rdx + 8], rcx
mov rcx, qword [0x1400f5020]
call fcn.140049450
cmp byte [rsp + 0xa7], 0
jns 0x1400290bb
mov rcx, qword [rsp + 0x90]
call fcn.140060988
mov byte [0x1400f501c], 0
jmp 0x140028eae
cmp byte [rsp + 0x77], 0
jns 0x1400290d3
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400e4f68]
jmp 0x140028ef4
call fcn.1400a7280
test al, al
je 0x140028f15
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 [0x1400f4fe8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140028f15
mov rcx, qword [0x1400f5048]
test rcx, rcx
je 0x140029172
lea rax, [rsp + 0x60]
movzx edx, byte [rax + 0x17]
mov ebx, edx
and ebx, 0x7f
test dl, dl
mov rdi, qword [rax]
cmovns rdi, rax
lea rdx, [rsp + 0x50]
mov qword [rdx], rdi
cmovs rbx, qword [rax + 8]
mov qword [rdx + 8], rbx
call fcn.1400aadd0
lea rdi, [rsp + 0x90]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.140063db0
cmp byte [rsp + 0x77], 0
jns 0x140029198
mov rdx, qword [rsp + 0x60]
jmp 0x14002919d
lea rdx, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rdi
call fcn.1400480e0
mov rcx, rdi
call fcn.14003fc70
call fcn.1400a7500
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x1400292cf
mov qword [rsp + 0x80], rbp
call fcn.1400a7500
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x1400292d2
shl rdx, 3
add rdx, qword [rax]
lea rsi, [rsp + 0x80]
mov rcx, rsi
call fcn.140048a90
mov rdi, qword [rsi]
test rdi, rdi
je 0x14002927b
cmp byte [rsp + 0x77], 0
jns 0x14002921b
mov rsi, qword [rsp + 0x60]
jmp 0x140029220
lea rsi, [rsp + 0x60]
mov rcx, rsi
add rcx, r13
mov qword [rsp + 0x40], rcx
je 0x1400292d5
call fcn.14007a410
lea rcx, [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [r12 + 0x118]
sub r13, rax
add rsi, rax
lea r9, [rsp + 0x30]
mov qword [r9], rsi
mov qword [r9 + 8], r13
mov r8d, dword [r12 + 0x128]
mov rdx, qword [r12 + 0x120]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [0x140103008]
lea rcx, [rsp + 0x80]
call fcn.140048a70
jmp 0x140028f21
lea rcx, [0x1400f5028]
call fcn.140060aa0
cmp dword [0x1400f5028], 0xffffffff
jne 0x14002905d
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.14002bce0
mov qword [0x1400f5020], rax
lea rcx, [0x1400f5028]
call fcn.140060b38
jmp 0x14002905d
int3
int3
int3