Function at 0x140022b70
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, 0x518
movaps xmmword [rsp + 0x500], xmm6
mov rsi, rcx
mov rax, qword [0x140173028]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
lea rax, [0x14014f938]
mov qword [rcx], rax
lea r14, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
movsxd rcx, dword [rax + 4]
mov r12, 0xffffffffffffffff
test byte [rsi + rcx + 0x30], 5
jne 0x140022bf9
mov rcx, qword [r14 + rcx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov dword [rsp + 0x20], 0x10
lea rbx, [rsp + 0xe0]
mov rdx, rbx
xor r8d, r8d
mov r9d, 1
call qword [0x140192010]
mov r12, qword [rbx + 8]
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
add rcx, r14
lea rbp, [rsp + 0xe0]
mov rdx, rbp
call fcn.140042730
lea rdx, [0x14017e948]
mov rcx, rbp
call fcn.1400464a2
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, rdi
call qword [0x140192010]
mov ebx, eax
mov rcx, rbp
call fcn.14004286e
mov rcx, r14
mov edx, ebx
call fcn.1400b0b6e
mov rcx, r14
call fcn.1400afed6
lea r15, [rsi + 0x18]
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x10], r13
movaps xmm6, xmmword [0x14014df90]
movaps xmmword [rbx], xmm6
mov rcx, r15
mov rdx, rbx
call fcn.14003a094
test byte [0x140175590], 0x19
jne 0x140022fa5
mov rax, qword [0x14017f708]
test rax, rax
je 0x140022ccb
mov r9, qword [rsi + 0x118]
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov ecx, dword [rsi + 8]
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x20], rbp
call qword [0x140192010]
test al, al
jne 0x140022da7
mov eax, dword [0x140174ed8]
test al, 2
je 0x140022cfd
cmp byte [rsp + 0x97], 0
jns 0x140022ce9
mov rcx, qword [rsp + 0x80]
jmp 0x140022cf1
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140174ed8]
test al, 4
jne 0x140022d0c
cmp dword [rsi + 8], 2
jl 0x140022d52
cmp eax, 1
ja 0x140022d52
lea rdi, [rsp + 0x80]
movzx ebx, byte [rdi + 0x17]
test bl, bl
cmovs rbx, qword [rdi + 8]
cmovs rdi, qword [rdi]
test rbx, rbx
je 0x140022d52
xor ebp, ebp
mov r8d, ebx
sub r8d, ebp
lea rdx, [rdi + rbp]
mov ecx, 2
call fcn.140098024
test eax, eax
js 0x140022d4c
mov eax, eax
add rbp, rax
cmp rbx, rbp
ja 0x140022d2a
mov eax, dword [0x140174ed8]
test al, 1
je 0x140022d9d
call fcn.1400224b0
test al, al
je 0x140022d9d
lea r9, [rsp + 0xe0]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x80]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x14017f720]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
je 0x140022e43
cmp byte [rsp + 0x97], 0
jns 0x140022dbe
mov rcx, qword [rsp + 0x80]
call fcn.140082794
lea rcx, [rsi + 0x12c]
call fcn.140053930
lea rbx, [rsi + 0x80]
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, str._5_v_
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x14014f800]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140022dff
mov rcx, qword [r14 + 0x48]
call fcn.140082794
mov rcx, r15
call fcn.1400398a6
mov rcx, r15
call fcn.1400398c0
mov rcx, rbx
call fcn.1400398a0
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
call fcn.140083c00
movaps xmm6, xmmword [rsp + 0x500]
add rsp, 0x518
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x14017f810]
test rcx, rcx
je 0x140022e7b
lea rax, [rsp + 0x80]
movzx ebp, byte [rax + 0x17]
test bpl, bpl
mov rbx, qword [rax]
cmovns rbx, rax
lea rdx, [rsp + 0x70]
mov qword [rdx], rbx
cmovs rbp, qword [rax + 8]
mov qword [rdx + 8], rbp
call fcn.1400dad50
lea rbx, [rsp + 0xe0]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.140085d30
cmp byte [rsp + 0x97], 0
jns 0x140022ea7
mov rdx, qword [rsp + 0x80]
jmp 0x140022eaf
lea rdx, [rsp + 0x80]
mov r8d, 0x400
mov rcx, rbx
call fcn.140052250
mov rcx, rbx
call fcn.1400398c0
call fcn.1400d0830
mov rcx, qword [rax + 0x10]
cmp rcx, qword [rax + 0x18]
je 0x14002336e
mov qword [rsp + 0xc8], r13
call fcn.1400d0830
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x18]
test rdx, rdx
cmove rdx, rcx
dec rdx
cmp rcx, rdx
jb 0x140023371
shl rdx, 3
add rdx, qword [rax]
lea rdi, [rsp + 0xc8]
mov rcx, rdi
call fcn.140020f90
mov rbx, qword [rdi]
test rbx, rbx
je 0x140022f93
cmp byte [rsp + 0x97], 0
jns 0x140022f33
mov rdi, qword [rsp + 0x80]
jmp 0x140022f3b
lea rdi, [rsp + 0x80]
mov rcx, rdi
add rcx, r12
mov qword [rsp + 0x60], rcx
je 0x140022f4f
call fcn.14009d330
jmp 0x140022f51
xor eax, eax
lea rcx, [rsp + 0x60]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r12, rax
add rdi, rax
lea r9, [rsp + 0x50]
mov qword [r9], rdi
mov qword [r9 + 8], r12
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [0x140192010]
lea rcx, [rsp + 0xc8]
call fcn.140049020
jmp 0x140022da7
lea rdi, [rsp + 0xb0]
mov qword [rdi + 0x10], r13
movaps xmmword [rdi], xmm6
mov rax, qword [0x140156918]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140175590]
lea r9, str.LogMessage
mov rcx, rdi
mov dl, 0x49
call fcn.140054040
mov rbp, qword [rdi]
test rbp, rbp
jne 0x140023000
lea rcx, [rsp + 0xb0]
call fcn.140054020
jmp 0x140022c8c
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
lea rdi, [rsp + 0x98]
mov rcx, rdi
xor edx, edx
call fcn.14003bb6c
mov qword [rdi + 8], rbp
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x10], rax
lea rbp, [rsp + 0xc8]
mov rcx, rbp
mov rdx, rdi
call fcn.14003bb90
movups xmm0, xmmword [rdi + 8]
movups xmmword [rbp + 8], xmm0
mov rcx, qword [rbp + 8]
mov edx, 0x15
call fcn.14003b93e
mov rdi, rax
movsxd rax, dword [rsi + 0x128]
mov rcx, qword [rsi + 0x120]
lea rdx, [rsp + 0xe0]
mov qword [rdx], 0
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rax
mov rcx, rbp
mov qword [rsp + 0x48], rdx
call fcn.14004cc10
mov rbp, rax
mov qword [rsp + 0x38], rdi
cmp qword [rdi + 0x10], 0
jne 0x140023326
lea rax, [rsp + 0x4e8]
mov qword [rax], r13
mov qword [rax + 7], r13
mov byte [rax], 8
lea rcx, [rsp + 0x4e9]
cmp rbp, 0x80
jae 0x140023256
mov rdi, rax
mov byte [rcx], bpl
sub rdi, rax
add rdi, 2
mov rax, qword [rsp + 0x38]
mov rbp, qword [rax]
mov r8d, edi
mov rcx, qword [rbp + 0x18]
lea rax, [rcx + r8]
mov qword [rsp + 0x40], rax
cmp rax, qword [rbp + 0x10]
ja 0x140023344
cmp edi, 2
jne 0x1400232da
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
add dword [rax + 0x20], edi
movzx eax, byte [rsp + 0x97]
mov rbp, rax
test al, al
jns 0x14002312f
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsi + 0x118]
sub rbp, rdi
jb 0x140023374
test al, al
jns 0x14002314b
mov rbx, qword [rsp + 0x80]
cmp rbp, 0xfffffffffffffff0
jae 0x140023377
cmp rbp, 0x17
jae 0x14002329c
mov byte [rsp + 0xf7], bpl
test rbp, rbp
je 0x14002317f
add rbx, rdi
mov rcx, qword [rsp + 0x48]
mov rdx, rbx
mov r8, rbp
call fcn.140085680
mov rax, qword [rsp + 0x48]
mov byte [rax + rbp], 0
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0xe0]
call fcn.1400d0c00
mov rbx, rax
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x10], 0
jne 0x140023335
lea rax, [rsp + 0x4e8]
mov qword [rax], r13
mov qword [rax + 7], r13
mov byte [rax], 0x10
lea rcx, [rsp + 0x4e9]
cmp rbx, 0x80
jae 0x140023279
mov rdi, rax
mov byte [rcx], bl
sub rdi, rax
add rdi, 2
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax]
mov r8d, edi
mov rcx, qword [rbx + 0x18]
lea rbp, [rcx + r8]
cmp rbp, qword [rbx + 0x10]
ja 0x140023359
cmp edi, 2
jne 0x1400232ee
movzx eax, word [rsp + 0x4e8]
mov word [rcx], ax
mov qword [rbx + 0x18], rbp
mov rax, qword [rsp + 0x38]
add dword [rax + 0x20], edi
cmp byte [rsp + 0xf7], 0
jns 0x140023237
mov rcx, qword [rsp + 0xe0]
call fcn.140082794
lea rcx, [rsp + 0xc8]
call fcn.14003c818
lea rcx, [rsp + 0x98]
call fcn.14003c818
jmp 0x140022fee
mov rdi, rbp
mov edx, edi
or dl, 0x80
mov byte [rcx], dl
shr rbp, 7
inc rcx
cmp rdi, 0x3fff
ja 0x140023256
lea rdi, [rcx - 1]
jmp 0x1400230c7
mov rbp, rbx
mov edx, ebp
or dl, 0x80
mov byte [rcx], dl
shr rbx, 7
inc rcx
cmp rbp, 0x3fff
ja 0x140023279
lea rdi, [rcx - 1]
jmp 0x1400231da
lea rcx, [rbp + 0x10]
and rcx, 0xfffffffffffffff0
mov qword [rsp + 0x40], rcx
call fcn.140082758
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x40]
bts rax, 0x3f
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe8], rbp
jmp 0x14002316c
cmp edi, 3
jne 0x140023302
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x1400230fc
cmp edi, 3
jne 0x140023314
mov al, byte [rsp + 0x4ea]
mov byte [rcx + 2], al
jmp 0x140023209
lea rdx, [rsp + 0x4e8]
call fcn.140085680
jmp 0x140023107
lea rdx, [rsp + 0x4e8]
call fcn.140085680
jmp 0x140023214
mov rcx, qword [rsp + 0x38]
call fcn.14003b710
jmp 0x14002309d
mov rcx, qword [rsp + 0x38]
call fcn.14003b710
jmp 0x1400231b0
lea rdx, [rsp + 0x4e8]
mov rcx, rbp
call fcn.14003c0d6
jmp 0x140023110
lea rdx, [rsp + 0x4e8]
mov rcx, rbx
call fcn.14003c0d6
jmp 0x140023218
int3
int3
int3
lea rcx, [rsp + 0xe0]
call fcn.1400cce14
int3