Function at 0x1800b16b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rdi, rcx
xor ecx, ecx
mov esi, 1
movzx r13d, byte [rdi + 0x40]
mov r8, qword [rdi]
mov dword [rsp + 0x48], ecx
movzx r12d, cx
movzx r15d, cx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x60], r13d
cmp r13d, esi
jg 0x1800b1703
mov ebx, esi
jmp 0x1800b1714
mov ebx, 0xa
mov eax, 5
cmp r13d, 2
cmove ebx, eax
mov rax, qword [rdi + 0x10]
mov dword [rsp + 0x4c], ebx
test rax, rax
je 0x1800b172e
test dx, dx
je 0x1800b172e
mov ebp, dword [rax]
mov dword [rsp + 0x64], ebp
jmp 0x1800b1734
mov ebp, ecx
mov dword [rsp + 0x64], ecx
lea eax, [r13 + 4]
imul eax, ebx
lea ecx, [rbp + rax*8]
add ecx, ecx
movsxd rdx, ecx
mov rcx, qword [r8]
call fcn.18000b790
mov r14, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x1800b1765
lea eax, [r14 + 7]
jmp 0x1800b211c
xor ecx, ecx
mov r9, rax
mov qword [rsp + 0x58], rax
movsxd rax, ebx
shl rax, 5
lea r11, [rax + r14]
mov qword [rsp + 0x68], r11
mov qword [r11], rcx
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rcx
mov qword [r11 + 0x18], rcx
lea rcx, [rax + r11]
lea eax, [rbx + rbx]
test eax, eax
jle 0x1800b17c0
mov r8, r13
lea rdx, [r14 + 0x18]
shl r8, 3
nop word [rax + rax]
mov qword [rdx], rcx
dec eax
add rdx, 0x20
add rcx, r8
test eax, eax
jg 0x1800b17b0
test ebp, ebp
je 0x1800b17de
movsxd r8, ebp
xor edx, edx
mov qword [rsp + 0x78], rcx
add r8, r8
call fcn.18012da30
mov r11, qword [rsp + 0x68]
mov r9, r14
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0xd8]
movsx ecx, ax
cmp ax, 0x30
jl 0x1800b17f8
mov ecx, 0x30
mov word [r11 + 0x10], cx
mov ecx, esi
test ebp, ebp
je 0x1800b1814
or edx, 0xffffffff
movzx eax, bpl
test r13d, r13d
cmovg eax, edx
mov byte [r11 + 0x16], al
xor r10d, r10d
mov dword [rsp + 0x100], r10d
test r13d, r13d
jle 0x1800b1dec
lea rbp, str._n_n_t_t_b_b_a_a_a
nop
xor r8d, r8d
mov dword [rsp + 0x108], r8d
test ecx, ecx
jle 0x1800b1cba
lea r14, [r11 + 0x10]
mov eax, ecx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x90], rax
nop word [rax + rax]
mov r11, qword [rdi + 0x58]
mov qword [rsp + 0x50], r11
test r11, r11
je 0x1800b1c96
mov r13, qword [r14 - 0x10]
mov rax, r13
not rax
test qword [r11], rax
jne 0x1800b1c74
mov r10, qword [r11 + 8]
test r10, r13
jne 0x1800b1c6c
test dword [r11 + 0x38], 0x4000
je 0x1800b18a7
cmp word [r14], 3
jl 0x1800b1c6c
movzx r9d, word [r14]
movzx edx, word [r11 + 0x14]
movzx ebx, word [r11 + 0x12]
add dx, r9w
cmp bx, dx
jl 0x1800b18ee
movsx ecx, dx
movsx r8d, bx
lea eax, [rcx + 0x31]
cmp r8d, eax
jg 0x1800b1921
lea eax, [rcx + 0x1f]
cmp r8d, eax
jle 0x1800b18da
inc bx
jmp 0x1800b1921
movsx rcx, bx
movsx rax, dx
sub rcx, rax
movzx eax, byte [rcx + rbp]
add bx, ax
jmp 0x1800b1921
movsx ecx, bx
movsx r8d, dx
lea eax, [rcx + 0x31]
cmp r8d, eax
jle 0x1800b1902
movzx ebx, dx
jmp 0x1800b1921
lea eax, [rcx + 0x1f]
cmp r8d, eax
jle 0x1800b190f
lea ebx, [rdx + 1]
jmp 0x1800b1921
movsx rax, bx
movsx rcx, dx
sub rcx, rax
movzx ebx, byte [rcx + rbp]
add bx, dx
movzx edx, word [r14 + 4]
cmp bx, dx
jl 0x1800b195b
movsx ecx, dx
movsx r8d, bx
lea eax, [rcx + 0x31]
cmp r8d, eax
jg 0x1800b198e
lea eax, [rcx + 0x1f]
cmp r8d, eax
jle 0x1800b1947
inc bx
jmp 0x1800b198e
movsx rax, dx
movsx rcx, bx
sub rcx, rax
movzx eax, byte [rcx + rbp]
add bx, ax
jmp 0x1800b198e
movsx ecx, bx
movsx r8d, dx
lea eax, [rcx + 0x31]
cmp r8d, eax
jle 0x1800b196f
movzx ebx, dx
jmp 0x1800b198e
lea eax, [rcx + 0x1f]
cmp r8d, eax
jle 0x1800b197c
lea ebx, [rdx + 1]
jmp 0x1800b198e
movsx rax, bx
movsx rcx, dx
sub rcx, rax
movzx ebx, byte [rcx + rbp]
add bx, dx
movzx ebp, word [r11 + 0x16]
movzx esi, byte [r14 + 6]
or r13, r10
add bp, r9w
test sil, sil
jns 0x1800b19f8
lea rax, [rsp + 0x88]
lea r8, [r14 - 0x10]
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x100]
mov qword [rsp + 0x28], r11
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0xf0]
movzx r9d, word [rax + 0x3c]
mov rdx, qword [rax + 0x10]
mov rcx, rax
call fcn.1800b0ba0
mov r14, qword [rsp + 0x88]
movzx esi, al
jmp 0x1800b19fc
mov r14, qword [r14 - 8]
test sil, sil
js 0x1800b1ade
mov eax, dword [rsp + 0x64]
movsx r9d, sil
cmp r9d, eax
jge 0x1800b1ade
mov rcx, qword [rsp + 0x78]
movsx rdi, sil
movzx edx, word [rcx + rdi*2]
test dx, dx
jne 0x1800b1a4c
movzx edx, word [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
mov r8d, eax
call fcn.1800b15d0
movzx edx, ax
mov rax, qword [rsp + 0x78]
mov word [rax + rdi*2], dx
cmp bx, dx
jl 0x1800b1a9c
movsx eax, dx
movsx r8d, bx
lea ecx, [rax + 0x31]
cmp r8d, ecx
jle 0x1800b1a6c
movzx edx, bx
add dx, 3
jmp 0x1800b1ae5
add eax, 0x1f
cmp r8d, eax
jle 0x1800b1a7d
lea edx, [rbx + 1]
add dx, 3
jmp 0x1800b1ae5
movsx rax, dx
movsx rcx, bx
sub rcx, rax
lea rax, str._n_n_t_t_b_b_a_a_a
movzx edx, byte [rcx + rax]
add dx, bx
add dx, 3
jmp 0x1800b1ae5
movsx ecx, bx
movsx r8d, dx
lea eax, [rcx + 0x31]
cmp r8d, eax
jg 0x1800b1ad8
lea eax, [rcx + 0x1f]
cmp r8d, eax
jle 0x1800b1abc
inc dx
add dx, 3
jmp 0x1800b1ae5
movsx rcx, dx
movsx rax, bx
sub rcx, rax
lea rax, str._n_n_t_t_b_b_a_a_a
movzx eax, byte [rcx + rax]
add ax, dx
movzx edx, ax
add dx, 3
jmp 0x1800b1ae5
movzx edx, bx
add bx, 0xfffe
movsxd r10, dword [rsp + 0x100]
mov r11, qword [rsp + 0x50]
test r10d, r10d
jne 0x1800b1b10
test dword [r11 + 0x38], 0x2000000
je 0x1800b1b10
cmp dword [rsp + 0x60], 1
jle 0x1800b1b10
add dx, 0xfff6
add bp, 0xffe2
mov r8d, dword [rsp + 0x108]
mov r9, qword [rsp + 0x58]
xor ecx, ecx
mov rdi, r9
test r8d, r8d
jle 0x1800b1b40
cmp qword [rdi], r13
jne 0x1800b1b35
movzx eax, byte [rdi + 0x16]
xor al, sil
jns 0x1800b1b5b
inc ecx
add rdi, 0x20
cmp ecx, r8d
jl 0x1800b1b27
cmp r8d, dword [rsp + 0x4c]
jl 0x1800b1b92
cmp dx, r12w
jg 0x1800b1b7c
jne 0x1800b1b55
cmp bx, r15w
jge 0x1800b1b7c
mov eax, dword [rsp + 0x48]
jmp 0x1800b1ba0
cmp ecx, r8d
jge 0x1800b1b40
movzx eax, word [rdi + 0x12]
cmp ax, dx
jl 0x1800b1b7c
jne 0x1800b1baa
movzx eax, word [rdi + 0x10]
cmp ax, bp
jl 0x1800b1b7c
jne 0x1800b1baa
cmp word [rdi + 0x14], bx
jg 0x1800b1baa
mov r14, qword [rsp + 0x40]
mov esi, 1
lea rbp, str._n_n_t_t_b_b_a_a_a
jmp 0x1800b1c74
mov eax, r8d
inc r8d
mov dword [rsp + 0x108], r8d
movsxd rdi, eax
shl rdi, 5
add rdi, r9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x18]
mov rax, qword [rax - 0x10]
or rax, qword [r11 + 8]
mov qword [rdi + 8], r14
mov r14, qword [rsp + 0x40]
mov word [rdi + 0x14], bx
lea rbx, [r10*8]
mov qword [rdi], rax
mov word [rdi + 0x10], bp
mov word [rdi + 0x12], dx
mov byte [rdi + 0x16], sil
mov rdx, qword [r14 + 8]
mov r8, rbx
call fcn.180127c70
mov r11, qword [rdi + 0x18]
mov rax, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x108]
mov r9, qword [rsp + 0x58]
mov qword [rbx + r11], rax
mov ebx, dword [rsp + 0x4c]
mov esi, 1
cmp r8d, ebx
jl 0x1800b1d3b
movzx r12d, word [r9 + 0x12]
movzx r15d, word [r9 + 0x10]
mov edx, esi
mov dword [rsp + 0x48], 0
cmp ebx, edx
jle 0x1800b1d3b
lea rax, [r9 + 0x32]
movzx ecx, word [rax]
cmp cx, r12w
jg 0x1800b1c49
jne 0x1800b1c56
cmp word [rax + 2], r15w
jle 0x1800b1c56
movzx r15d, word [rax + 2]
movzx r12d, cx
mov dword [rsp + 0x48], edx
inc edx
add rax, 0x20
cmp edx, ebx
jl 0x1800b1c37
mov r11, qword [rsp + 0x50]
lea rbp, str._n_n_t_t_b_b_a_a_a
mov r10d, dword [rsp + 0x100]
mov r11, qword [r11 + 0x50]
mov qword [rsp + 0x50], r11
test r11, r11
jne 0x1800b1872
mov rdi, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x90]
add r14, 0x20
dec rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x40], r14
jne 0x1800b1860
mov r13d, dword [rsp + 0x60]
mov r11, qword [rsp + 0x68]
mov rax, r9
inc r10d
mov qword [rsp + 0x58], r11
mov r9, r11
mov ecx, r8d
mov r11, rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x100], r10d
cmp r10d, r13d
jl 0x1800b1830
test r8d, r8d
jne 0x1800b1de4
mov rbx, qword [rsp + 0x70]
lea rdx, str.no_query_solution
mov rcx, rbx
call fcn.18000f0b0
mov rcx, qword [rbx]
mov rbx, qword [rsp + 0x80]
test rcx, rcx
je 0x1800b1d7d
cmp rbx, qword [rcx + 0x208]
jae 0x1800b1d64
cmp rbx, qword [rcx + 0x1f8]
jb 0x1800b1d43
mov rax, qword [rcx + 0x1f0]
mov qword [rbx], rax
mov qword [rcx + 0x1f0], rbx
mov eax, esi
jmp 0x1800b211c
mov r11, rax
jmp 0x1800b1c65
cmp rbx, qword [rcx + 0x200]
jb 0x1800b1d64
mov rax, qword [rcx + 0x1e0]
mov qword [rbx], rax
mov qword [rcx + 0x1e0], rbx
mov eax, esi
jmp 0x1800b211c
cmp qword [rcx + 0x320], 0
je 0x1800b1d7d
mov rdx, rbx
call fcn.18000b2d0
mov eax, esi
jmp 0x1800b211c
cmp dword [0x180171920], 0
je 0x1800b1dd4
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1800b1d98
call qword [0x1801719a0]
mov rcx, rbx
call qword [0x180171958]
dec qword [0x180181138]
movsxd rcx, eax
sub qword [0x1801810f0], rcx
mov rcx, rbx
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1800b1ddd
call qword [0x1801719b0]
mov eax, esi
jmp 0x1800b211c
mov rcx, rbx
call qword [0x180171948]
mov eax, esi
jmp 0x1800b211c
mov r14, qword [rsp + 0x80]
movsxd rdx, ecx
mov rbx, r11
cmp rdx, 1
jle 0x1800b1e1e
lea rcx, [r11 + 0x32]
dec rdx
nop
movzx eax, word [rcx]
cmp word [rbx + 0x12], ax
jle 0x1800b1e13
movsxd rbx, esi
shl rbx, 5
add rbx, r11
inc esi
add rcx, 0x20
dec rdx
jne 0x1800b1e00
test r13d, r13d
jle 0x1800b1e65
xor r8d, r8d
lea rdx, [rdi + 0x3a0]
mov r9d, r13d
mov rax, qword [rbx + 0x18]
add rdx, 0x70
add r8, 8
mov rcx, qword [r8 + rax - 8]
mov qword [rdx - 0x50], rcx
movzx eax, byte [rcx + 0x10]
mov byte [rdx - 0x70], al
mov ecx, eax
mov rax, qword [rdi + 8]
imul rcx, rcx, 0x68
dec r9
mov ecx, dword [rcx + rax + 0x4c]
mov dword [rdx - 0xac], ecx
jne 0x1800b1e30
movzx eax, word [rdi + 0x3c]
mov ecx, 0x100
test cx, ax
je 0x1800b1ed3
test al, al
js 0x1800b1ed3
cmp byte [rdi + 0x43], 0
jne 0x1800b1ed3
cmp word [rsp + 0xf8], 0
je 0x1800b1ed3
mov rax, qword [rbx + 0x18]
movsxd rcx, r13d
lea r8, [rsp + 0xf0]
mov rax, qword [rax + rcx*8 - 8]
mov qword [rsp + 0x30], r8
lea edx, [r13 - 1]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], dx
mov rdx, qword [rdi + 0x18]
mov r9d, 0x80
mov r8, rbx
mov rcx, rdi
call fcn.1800b0ba0
movsx ecx, al
mov rax, qword [rdi + 0x18]
cmp ecx, dword [rax]
jne 0x1800b1ed3
mov byte [rdi + 0x43], 2
and dword [rdi + 0x44], 0xfffffffb
mov rdx, qword [rdi + 0x10]
mov ecx, dword [rdi + 0x44]
test rdx, rdx
je 0x1800b2052
movzx r8d, word [rdi + 0x3c]
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0x41], al
test r8b, r8b
jns 0x1800b1f2c
movsx eax, byte [rbx + 0x16]
cmp eax, dword [rdx]
jne 0x1800b1f04
mov byte [rdi + 0x43], 2
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x48]
test rcx, rcx
je 0x1800b1fdd
movsx eax, byte [rdi + 0x41]
cmp eax, dword [rcx]
jle 0x1800b1fdd
movzx eax, byte [rcx]
mov byte [rdi + 0x41], al
jmp 0x1800b1fdd
mov rax, qword [rbx + 8]
mov qword [rdi + 0x68], rax
movzx eax, byte [rdi + 0x41]
test al, al
jg 0x1800b1fc8
mov byte [rdi + 0x41], 0
test r13d, r13d
jle 0x1800b1fdd
mov rax, qword [rbx + 0x18]
movsxd rcx, r13d
mov r8, qword [rax + rcx*8 - 8]
mov eax, dword [r8 + 0x38]
bt eax, 0xc
jb 0x1800b1fdd
and eax, 0x104
cmp eax, 0x104
je 0x1800b1fdd
lea rcx, [rsp + 0xf0]
lea eax, [r13 - 1]
mov r9d, 0x800
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r8
mov r8, rbx
mov rcx, rdi
mov qword [rsp + 0xf0], 0
mov word [rsp + 0x20], ax
call fcn.1800b0ba0
mov rdx, qword [rdi + 0x10]
movsx ecx, al
cmp ecx, dword [rdx]
jne 0x1800b1fdd
mov rax, qword [rsp + 0xf0]
or dword [rdi + 0x44], 4
mov qword [rdi + 0x68], rax
jmp 0x1800b1fdd
test r13d, r13d
je 0x1800b1fdd
cmp al, 1
jne 0x1800b1fdd
test r8b, 3
je 0x1800b1fdd
or ecx, 4
mov dword [rdi + 0x44], ecx
mov eax, 0x200
test word [rdi + 0x3c], ax
je 0x1800b2052
movsx eax, byte [rdi + 0x41]
cmp eax, dword [rdx]
jne 0x1800b2052
test r13d, r13d
jle 0x1800b2052
mov rax, qword [rbx + 0x18]
movsxd rcx, r13d
lea r8, [rsp + 0xf0]
mov rax, qword [rax + rcx*8 - 8]
mov qword [rsp + 0x30], r8
dec r13w
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8, rbx
mov rcx, rdi
mov qword [rsp + 0xf0], 0
mov word [rsp + 0x20], r13w
call fcn.1800b0ba0
movsx ecx, al
mov rax, qword [rdi + 0x10]
cmp ecx, dword [rax]
jne 0x1800b2052
mov rax, qword [rsp + 0xf0]
or dword [rdi + 0x44], 8
mov qword [rdi + 0x68], rax
movzx eax, word [rbx + 0x10]
mov word [rdi + 0x48], ax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800b20bf
cmp r14, qword [rcx + 0x208]
jae 0x1800b20ab
cmp r14, qword [rcx + 0x1f8]
jb 0x1800b208f
mov rax, qword [rcx + 0x1f0]
mov qword [r14], rax
mov qword [rcx + 0x1f0], r14
jmp 0x1800b211a
cmp r14, qword [rcx + 0x200]
jb 0x1800b20ab
mov rax, qword [rcx + 0x1e0]
mov qword [r14], rax
mov qword [rcx + 0x1e0], r14
jmp 0x1800b211a
cmp qword [rcx + 0x320], 0
je 0x1800b20bf
mov rdx, r14
call fcn.18000b2d0
jmp 0x1800b211a
cmp dword [0x180171920], 0
je 0x1800b2111
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1800b20da
call qword [0x1801719a0]
mov rcx, r14
call qword [0x180171958]
dec qword [0x180181138]
movsxd rcx, eax
sub qword [0x1801810f0], rcx
mov rcx, r14
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1800b211a
call qword [0x1801719b0]
jmp 0x1800b211a
mov rcx, r14
call qword [0x180171948]
xor eax, eax
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret