Function at 0x17788
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x00013100]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor eax, eax
mov rsi, rcx
lea rcx, [r11 - 0x70]
mov r15, r9
mov rdi, r8
mov r13, rdx
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
mov dword [r11 - 0x60], eax
call fcn.000117a4
lea rdx, [rsp + 0x88]
lea rcx, [0x0001a1a0]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
movabs rbx, 0xfffff78000000320
mov rbx, qword [rbx]
lea r8d, [rdx + 0x32]
lea rcx, [rsp + 0x30]
call fcn.000120d0
movzx edx, byte [r13]
xor r8d, r8d
mov eax, 0x83
mov bpl, 1
mov r12d, r8d
cmp edx, eax
mov byte [rsp + 0x30], bpl
mov r14b, r8b
jg 0x17a64
je 0x179e6
mov ecx, edx
sub ecx, 0xc
je 0x1799d
sub ecx, 1
je 0x1795d
sub ecx, 0x73
je 0x17911
sub ecx, 1
je 0x178b2
cmp ecx, 1
jne 0x17a85
lea edx, [rcx + 1]
lea rcx, [r13 + 1]
mov r8, rsi
call fcn.00016360
xor r8d, r8d
cmp byte [rsi + 2], r8b
je 0x17bc9
movzx ecx, word [r13 + 1]
mov eax, ecx
add eax, eax
cmp eax, 0x80
jae 0x17bc9
mov eax, dword [rsi + rcx*2 + 0xd]
lea rdx, [rsp + 0x32]
mov byte [rsp + 0x30], r8b
mov dword [rdx], eax
movzx eax, word [rsi + rcx*2 + 0x11]
lea r12d, [r8 + 6]
mov word [rdx + 4], ax
mov bpl, byte [rsp + 0x30]
mov r14b, 1
jmp 0x17bc9
lea rcx, [r13 + 1]
mov r8, rsi
mov edx, 4
call fcn.00016360
mov r8d, dword [rsi + 0x188]
cmp dword [r13 + 1], r8d
jne 0x17bc9
cmp byte [rsi + 1], 1
jne 0x17bc9
mov al, byte [rsi + 0xc]
xor edx, edx
mov r14b, 1
neg al
mov bpl, dl
mov byte [rsp + 0x30], dl
sbb cl, cl
mov byte [rsp + 0x33], dl
mov byte [rsp + 0x34], 0x20
and cl, 0x20
lea r12d, [rdx + 3]
mov byte [rsi + 2], r14b
add cl, 0x60
mov byte [rsp + 0x32], cl
jmp 0x17bc9
movzx eax, word [r13 + 1]
mov bpl, r8b
mov byte [rsp + 0x30], r8b
mov word [rsi + 4], ax
movzx eax, si
mov word [rsi + 6], 0xa0cb
shr ax, 8
mov byte [rsi + 3], sil
mov byte [rsi + 1], 1
mov byte [rsp + 0x32], 1
mov byte [rsp + 0x33], 1
mov byte [rsp + 0x34], r8b
mov byte [rsp + 0x36], al
mov byte [rsp + 0x35], sil
mov r12d, 5
mov r14b, 1
jmp 0x17bc9
lea rcx, [r13 + 1]
mov r8, rsi
mov edx, 4
call fcn.00016360
mov edx, 4
mov rcx, r15
call fcn.00016360
xor r8d, r8d
cmp byte [rsi + 2], r8b
je 0x17bc9
mov eax, dword [r13 + 1]
mov dword [rsi + 0x97], eax
mov eax, dword [r15]
mov dword [rsi + 0x93], eax
jmp 0x179db
lea rcx, [r13 + 1]
mov r8, rsi
mov edx, 4
call fcn.00016360
mov edx, 4
mov rcx, r15
call fcn.00016360
xor r8d, r8d
cmp byte [rsi + 2], r8b
je 0x17bc9
mov eax, dword [r13 + 1]
mov dword [rsi + 0x93], eax
mov eax, dword [r15]
mov dword [rsi + 0x97], eax
mov rax, rdi
mov dword [rax], r8d
jmp 0x17c56
lea rcx, [r13 + 1]
mov r8, rsi
mov edx, 4
call fcn.00016360
xor r8d, r8d
cmp byte [rsi + 2], r8b
je 0x17bc9
movzx ecx, word [r13 + 1]
mov eax, ecx
add eax, eax
cmp eax, 0x80
jae 0x17bc9
movzx eax, word [r13 + 3]
mov bpl, r8b
mov byte [rsp + 0x30], r8b
mov word [rsi + rcx*2 + 0xd], ax
mov rcx, rsi
mov r14b, r8b
call fcn.000163c8
lea rdx, [rsi + 0xd]
lea rcx, [0x0001a1d0]
mov r8d, eax
mov r9, rsi
call fcn.00011640
xor r8d, r8d
cmp eax, r8d
jne 0x17bc9
mov bpl, r8b
mov byte [rsp + 0x30], r8b
jmp 0x17bc9
mov ecx, edx
sub ecx, 0x87
je 0x17b59
sub ecx, 4
je 0x17b03
sub ecx, 1
je 0x17adc
cmp ecx, 1
je 0x17aa9
lea rcx, [0x0001a1f0]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
movzx ebp, bpl
cmp byte [rsi + 2], dl
mov dword [rdi], edx
cmovne ebp, edx
mov byte [rsp + 0x30], bpl
jmp 0x17bc9
cmp byte [rsi + 2], r8b
je 0x17bc9
mov rax, qword [rsi + 0x93]
lea rdx, [rsp + 0x32]
mov rcx, rsi
mov qword [rsp + 0x32], rax
mov byte [rsp + 0x30], r8b
call fcn.00019a40
mov r12d, 8
jmp 0x178a5
cmp byte [rsi + 2], r8b
je 0x17bc9
lea rdx, [rsp + 0x32]
mov rcx, rsi
mov byte [rsp + 0x30], r8b
call fcn.00019820
mov r12d, 0x1a
jmp 0x178a5
lea rcx, [r13 + 1]
mov r8, rsi
mov edx, 2
call fcn.00016360
xor r8d, r8d
cmp byte [rsi + 2], r8b
je 0x17bc9
cmp word [r13 + 1], 0xd
mov bpl, 4
mov byte [rsp + 0x30], bpl
jne 0x17b40
mov eax, dword [rsi + 8]
mov bpl, r8b
mov byte [rsp + 0x30], r8b
mov dword [rsp + 0x34], eax
cmp word [r13 + 1], 0xc
jne 0x17bc0
mov eax, dword [rsi + 8]
mov bpl, r8b
mov byte [rsp + 0x30], r8b
mov dword [rsp + 0x36], eax
jmp 0x17bc0
lea rcx, [r13 + 1]
mov r8, rsi
mov edx, 4
call fcn.00016360
xor r8d, r8d
cmp byte [rsi + 2], r8b
je 0x17bc9
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov bpl, r8b
mov byte [rsp + 0x30], r8b
call fcn.00019924
mov eax, dword [r13 + 1]
xor r11d, r11d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x2c]
mov dword [rsp + 0x2c], r11d
lea rcx, [rsp + 0x28]
mov r9, rsi
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x28], r11d
call fcn.00011af4
mov ecx, dword [rsp + 0x28]
mov byte [rsp + 0x36], al
mov dword [rsp + 0x32], ecx
mov r14b, 1
mov r12d, 6
xor byte [rsi + 3], bl
cmp bpl, 0x1f
ja 0x17bf6
add byte [rsi + 3], 1
mov cl, byte [r13]
mov bl, byte [rsi + 3]
lea r8, [rsp + 0x30]
and cl, 0x7f
mov dl, 2
mov byte [rsp + 0x31], bl
call fcn.000115a8
test eax, eax
je 0x17bd2
jmp 0x17bfa
mov bl, byte [rsp + 0x31]
lea rcx, [rsp + 0x30]
mov r8, rsi
mov edx, 2
call fcn.00016360
test r14b, r14b
je 0x17c1e
lea rcx, [rsp + 0x32]
mov edx, r12d
call fcn.00016360
test bpl, bpl
jne 0x17c34
and word [rsi + 6], 0xff
movzx eax, bl
shl ax, 8
or word [rsi + 6], ax
mov edx, dword [rdi]
mov eax, r12d
mov rcx, r15
add rax, 2
cmp rax, rdx
cmovb rdx, rax
mov dword [rdi], edx
mov r8d, edx
lea rdx, [rsp + 0x30]
call fcn.00011d80
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.00011d10
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret