Function at 0x14009d460
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, 0xb8
mov rax, qword [rcx]
movzx edi, dx
xor edx, edx
mov qword [rsp + 0x98], rax
mov rsi, rcx
mov dword [rsp + 0x58], edx
movzx ecx, byte [rcx + 0x3a]
mov r15d, 1
mov r13, qword [rax]
movzx ebp, dx
mov qword [rsp + 0xa0], r13
movzx r12d, dx
mov qword [rsp + 0x88], rdx
mov dword [rsp + 0x40], ecx
cmp ecx, r15d
ja 0x14009d4c6
mov ebx, r15d
jmp 0x14009d4d6
cmp ecx, 2
mov ebx, 0xa
mov eax, 5
cmove ebx, eax
mov rax, qword [rsi + 0x10]
mov dword [rsp + 0x54], ebx
test rax, rax
je 0x14009d4f2
test di, di
je 0x14009d4f2
mov r14d, dword [rax]
mov dword [rsp + 0x50], r14d
jmp 0x14009d4f9
mov r14d, edx
mov dword [rsp + 0x50], edx
lea eax, [rcx + 4]
imul eax, ebx
lea ecx, [r14 + rax*8]
add ecx, ecx
movsxd rdx, ecx
mov rcx, r13
call fcn.140006d80
mov qword [rsp + 0x68], rax
mov rdx, rax
test rax, rax
jne 0x14009d527
mov eax, 7
jmp 0x14009de7f
movsxd r8, dword [rsp + 0x40]
xorps xmm0, xmm0
mov eax, ebx
mov r10, rdx
shl rax, 5
lea r9, [rax + rdx]
shl r8, 3
movups xmmword [r9], xmm0
mov qword [rsp + 0x70], rdx
add rdx, 0x18
lea rcx, [rax + r9]
mov qword [rsp + 0x80], r9
movups xmmword [r9 + 0x10], xmm0
lea eax, [rbx + rbx]
mov qword [rdx], rcx
lea rdx, [rdx + 0x20]
add rcx, r8
dec eax
test eax, eax
jg 0x14009d561
test r14d, r14d
je 0x14009d598
movsxd r8, r14d
xor edx, edx
add r8, r8
mov qword [rsp + 0x88], rcx
call fcn.1400f43c0
mov r10, qword [rsp + 0x70]
mov r9, qword [rsp + 0x80]
mov rax, qword [rsp + 0x98]
mov ecx, 0x30
mov eax, dword [rax + 0xb4]
cmp eax, ecx
cmovb ecx, eax
mov word [r9 + 0x10], cx
mov ecx, r15d
test r14d, r14d
je 0x14009d5d7
movzx eax, r14b
mov edx, 0xffffffff
mov r14d, dword [rsp + 0x40]
test r14b, r14b
cmovne eax, edx
mov byte [r9 + 0x16], al
jmp 0x14009d5dc
mov r14d, dword [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x5c], r8d
test r14b, r14b
je 0x14009db8a
xor esi, esi
lea rbx, str._n_n_t_t_b_b_a_a_a
mov edi, esi
mov qword [rsp + 0x60], rsi
mov r13d, 0x4000
mov edx, esi
mov dword [rsp + 0x118], edx
test ecx, ecx
jle 0x14009d97f
mov r11, qword [rsp + 0x100]
add r9, 0x10
mov eax, ecx
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x90], rax
nop
mov r15, qword [r11 + 0x48]
test r15, r15
je 0x14009d952
nop dword [rax]
mov rcx, qword [r9 - 0x10]
movzx r14d, byte [r9 + 6]
mov rax, rcx
not rax
mov qword [rsp + 0x78], rsi
test qword [r15], rax
jne 0x14009d93d
test qword [r15 + 8], rcx
jne 0x14009d93d
test dword [r15 + 0x28], r13d
je 0x14009d678
cmp word [r9], 0xa
jl 0x14009d93d
movsx edi, word [r15 + 0x12]
movzx r13d, word [r9]
mov ecx, edi
movzx r8d, r13w
add r8w, word [r15 + 0x14]
movsx edx, r8w
cmp di, r8w
jl 0x14009d6b7
lea eax, [rdx + 0x31]
cmp ecx, eax
jg 0x14009d6de
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x14009d6a9
inc di
jmp 0x14009d6de
sub ecx, edx
movsxd rax, ecx
movzx ecx, byte [rax + rbx]
add di, cx
jmp 0x14009d6de
lea eax, [rdi + 0x31]
cmp edx, eax
jle 0x14009d6c4
movzx edi, r8w
jmp 0x14009d6de
lea eax, [rdi + 0x1f]
cmp edx, eax
jle 0x14009d6d1
lea edi, [r8 + 1]
jmp 0x14009d6de
sub edx, ecx
movsxd rax, edx
movzx edi, byte [rax + rbx]
add di, r8w
movsx r8d, word [r9 + 4]
movsx ecx, di
mov edx, r8d
cmp di, r8w
jl 0x14009d712
lea eax, [r8 + 0x31]
cmp ecx, eax
jg 0x14009d739
lea eax, [r8 + 0x1f]
cmp ecx, eax
jle 0x14009d704
inc di
jmp 0x14009d739
sub ecx, edx
movsxd rax, ecx
movzx ecx, byte [rax + rbx]
add di, cx
jmp 0x14009d739
lea eax, [rcx + 0x31]
cmp edx, eax
jle 0x14009d71f
movzx edi, r8w
jmp 0x14009d739
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x14009d72c
lea edi, [r8 + 1]
jmp 0x14009d739
sub edx, ecx
movsxd rax, edx
movzx edi, byte [rax + rbx]
add di, r8w
mov rsi, qword [r9 - 0x10]
or rsi, qword [r15 + 8]
add r13w, word [r15 + 0x16]
test r14b, r14b
jns 0x14009d7ea
mov rdx, qword [r11 + 0x10]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rbx, [r11 + 0x38]
mov eax, dword [rsp + 0x5c]
lea r8, [r9 - 0x10]
movzx r9d, word [rbx]
mov rcx, r11
mov qword [rsp + 0x28], r15
mov word [rsp + 0x20], ax
call fcn.14009cc40
mov r11, qword [rsp + 0x78]
movzx r14d, al
test al, al
jns 0x14009d7fa
movzx r8d, di
mov r10, qword [rsp + 0x70]
xor ecx, ecx
mov edx, dword [rsp + 0x118]
mov rbx, r10
test edx, edx
jle 0x14009d7c1
cmp qword [rbx], rsi
jne 0x14009d7b7
movzx eax, r14b
xor al, byte [rbx + 0x16]
jge 0x14009d8fc
inc ecx
add rbx, 0x20
cmp ecx, edx
jl 0x14009d7a5
cmp edx, dword [rsp + 0x54]
jl 0x14009da00
cmp r8w, bp
jg 0x14009d91c
jne 0x14009d7e1
cmp di, r12w
jge 0x14009d91c
mov eax, dword [rsp + 0x58]
jmp 0x14009da0b
mov rbx, qword [rsp + 0x100]
mov r11, qword [r9 - 8]
add rbx, 0x38
mov edx, dword [rsp + 0x50]
movzx ecx, r14b
cmp ecx, edx
jge 0x14009d78c
mov r8, qword [rsp + 0x88]
lea r10, [r8 + rcx*2]
movzx r8d, word [r8 + rcx*2]
test r8w, r8w
jne 0x14009d886
movzx r9d, word [rsp + 0x108]
mov eax, edx
sub eax, ecx
imul eax, eax, 0x64
cdq
idiv dword [rsp + 0x50]
movsxd rcx, eax
call fcn.14000ae00
movzx r8d, ax
mov eax, 0x4000
test word [rbx], ax
movzx ebx, r9w
je 0x14009d85e
mov rax, qword [rsp + 0x100]
cmp word [rax + 0x20], bx
cmovl r9w, word [rax + 0x20]
cmp r9w, 0xa
jg 0x14009d86a
movzx eax, bx
jmp 0x14009d879
movsx rcx, r9w
call fcn.14000ae00
lea ecx, [rbx - 0x21]
add ax, cx
sub r8w, 0x32
add r8w, ax
mov word [r10], r8w
movsx ecx, di
movsx edx, r8w
cmp di, r8w
jl 0x14009d8c8
lea eax, [rdx + 0x31]
cmp ecx, eax
jg 0x14009d78c
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x14009d8ae
lea r8d, [rdi + 1]
jmp 0x14009d790
sub ecx, edx
movsxd rax, ecx
lea rcx, str._n_n_t_t_b_b_a_a_a
movzx r8d, byte [rax + rcx]
add r8w, di
jmp 0x14009d790
lea eax, [rcx + 0x31]
cmp edx, eax
jg 0x14009d790
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x14009d8e3
inc r8w
jmp 0x14009d790
sub edx, ecx
lea rcx, str._n_n_t_t_b_b_a_a_a
movsxd rax, edx
movzx ecx, byte [rax + rcx]
add r8w, cx
jmp 0x14009d790
cmp ecx, edx
jge 0x14009d7c1
cmp word [rbx + 0x12], r8w
jl 0x14009d91c
jne 0x14009da15
cmp word [rbx + 0x10], r13w
jg 0x14009da15
mov rdi, qword [rsp + 0x60]
xor esi, esi
mov r9, qword [rsp + 0x48]
lea rbx, str._n_n_t_t_b_b_a_a_a
mov r11, qword [rsp + 0x100]
mov r13d, 0x4000
mov r15, qword [r15 + 0x40]
test r15, r15
jne 0x14009d640
mov rax, qword [rsp + 0x90]
add r9, 0x20
sub rax, 1
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x90], rax
jne 0x14009d630
mov r8d, dword [rsp + 0x5c]
mov r14d, dword [rsp + 0x40]
mov r9, qword [rsp + 0x80]
mov rax, r10
mov qword [rsp + 0x70], r9
inc r8d
mov qword [rsp + 0x80], rax
add rdi, 8
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x60], rdi
mov r10, r9
mov r9, rax
mov ecx, edx
cmp r8d, r14d
jl 0x14009d603
test edx, edx
jne 0x14009db6c
mov rcx, qword [rsp + 0x98]
lea rdx, str.no_query_solution
call fcn.140009c50
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14009dafa
cmp qword [rcx + 0x298], 0
je 0x14009dac2
mov rdx, qword [rsp + 0x68]
call fcn.140006920
mov eax, 1
jmp 0x14009de7f
mov eax, edx
inc edx
mov dword [rsp + 0x118], edx
movsxd rbx, eax
shl rbx, 5
add rbx, r10
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbx + 0x18]
mov rax, qword [rdx - 0x10]
or rax, qword [r15 + 8]
mov word [rbx + 0x14], di
mov rdi, qword [rsp + 0x60]
mov word [rbx + 0x12], r8w
mov r8, rdi
mov qword [rbx], rax
mov qword [rbx + 8], r11
mov word [rbx + 0x10], r13w
mov byte [rbx + 0x16], r14b
mov rdx, qword [rdx + 8]
call fcn.1400f3c40
mov rax, qword [rbx + 0x18]
xor esi, esi
mov edx, dword [rsp + 0x118]
mov ebx, dword [rsp + 0x54]
mov r10, qword [rsp + 0x70]
mov qword [rdi + rax], r15
cmp edx, ebx
jl 0x14009d923
movzx ebp, word [r10 + 0x12]
mov edx, 1
movzx r12d, word [r10 + 0x10]
mov dword [rsp + 0x58], esi
cmp ebx, edx
jbe 0x14009dab6
lea rax, [r10 + 0x34]
nop dword [rax]
movzx ecx, word [rax - 2]
cmp cx, bp
jg 0x14009daa1
jne 0x14009daac
cmp word [rax], r12w
jle 0x14009daac
movzx r12d, word [rax]
movzx ebp, cx
mov dword [rsp + 0x58], edx
inc edx
add rax, 0x20
cmp edx, ebx
jl 0x14009da90
mov edx, dword [rsp + 0x118]
jmp 0x14009d923
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rcx + 0x180]
jb 0x14009daff
cmp rbx, qword [rcx + 0x188]
jae 0x14009daff
mov rax, qword [rcx + 0x178]
mov qword [rbx], rax
mov eax, 1
dec dword [rcx + 0x160]
mov qword [rcx + 0x178], rbx
jmp 0x14009de7f
mov rbx, qword [rsp + 0x68]
cmp dword [0x140124d50], 0
je 0x14009db59
mov rcx, qword [0x140128b48]
test rcx, rcx
je 0x14009db1a
call qword [0x140124dd8]
mov rcx, rbx
call qword [0x140124d90]
dec qword [0x1401288f8]
movsxd rcx, eax
sub qword [0x1401288b0], rcx
mov rcx, rbx
call qword [0x140124d80]
mov rcx, qword [0x140128b48]
test rcx, rcx
je 0x14009db62
call qword [0x140124de8]
mov eax, 1
jmp 0x14009de7f
mov rcx, rbx
call qword [0x140124d80]
mov eax, 1
jmp 0x14009de7f
mov rsi, qword [rsp + 0x100]
mov r15d, 1
movzx edi, word [rsp + 0x108]
mov r13, qword [rsp + 0xa0]
movsxd rdx, ecx
mov rbx, r9
cmp rdx, 1
jle 0x14009dbc0
lea rcx, [r9 + 0x32]
dec rdx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rbx + 0x12], ax
jle 0x14009dbb3
movsxd rbx, r15d
shl rbx, 5
add rbx, r9
inc r15d
add rcx, 0x20
sub rdx, 1
jne 0x14009dba0
test r14b, r14b
je 0x14009dc03
xor r8d, r8d
mov r9d, r14d
lea rdx, [rsi + 0x3bc]
mov rax, qword [rbx + 0x18]
lea rdx, [rdx + 0x58]
lea r8, [r8 + 8]
mov rcx, qword [r8 + rax - 8]
mov qword [rdx - 0x3c], rcx
movzx eax, byte [rcx + 0x10]
imul rcx, rax, 0x78
mov byte [rdx - 0x58], al
mov rax, qword [rsi + 8]
mov ecx, dword [rcx + rax + 0x50]
mov dword [rdx - 0x80], ecx
sub r9, 1
jne 0x14009dbd2
movzx eax, word [rsi + 0x38]
mov ecx, 0x180
and ax, cx
mov ecx, 0x100
cmp ax, cx
jne 0x14009dc70
cmp byte [rsi + 0x3f], 0
jne 0x14009dc70
test di, di
je 0x14009dc70
mov rax, qword [rbx + 0x18]
lea r8, [rsp + 0x100]
mov qword [rsp + 0x30], r8
lea edx, [r14 - 1]
movzx ecx, r14b
mov r9d, 0x80
mov r8, rbx
mov rax, qword [rax + rcx*8 - 8]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], dx
mov rdx, qword [rsi + 0x18]
call fcn.14009cc40
movsx ecx, al
mov rax, qword [rsi + 0x18]
cmp ecx, dword [rax]
jne 0x14009dc70
mov byte [rsi + 0x3f], 2
mov r10, qword [rsi + 0x10]
test r10, r10
je 0x14009ddc3
test byte [rsi + 0x38], 0x80
movsx ecx, byte [rbx + 0x16]
je 0x14009dc98
cmp ecx, dword [r10]
jne 0x14009dc90
mov byte [rsi + 0x3f], 2
mov rdx, r10
jmp 0x14009dd49
mov byte [rsi + 0x3b], cl
mov rdx, r10
mov rax, qword [rbx + 8]
lea r9, [rsi + 0x3b]
mov qword [rsi + 0x50], rax
test cl, cl
jg 0x14009dd4d
mov byte [rsi + 0x3b], 0
lea r9, [rsi + 0x3b]
test r14b, r14b
je 0x14009dd4d
mov rax, qword [rbx + 0x18]
lea r9, [rsi + 0x3b]
movzx ecx, r14b
mov r11, qword [rax + rcx*8 - 8]
mov eax, dword [r11 + 0x28]
and eax, 0x104
cmp eax, 0x104
setne cl
bt dword [r11 + 0x28], 0xc
setae al
test al, cl
je 0x14009dd4d
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x30], rcx
lea eax, [r14 - 1]
mov qword [rsp + 0x28], r11
mov rcx, rsi
mov r9d, 0x800
mov word [rsp + 0x20], ax
mov r8, rbx
call fcn.14009cc40
mov rdx, qword [rsi + 0x10]
lea r9, [rsi + 0x3b]
movsx ecx, al
cmp ecx, dword [rdx]
jne 0x14009dd4d
mov rax, qword [rsp + 0x100]
mov qword [rsi + 0x50], rax
mov byte [rsi + 0x40], 1
lea r9, [rsi + 0x3b]
mov eax, 0x200
test word [rsi + 0x38], ax
je 0x14009ddc3
movsx eax, byte [r9]
cmp eax, dword [rdx]
jne 0x14009ddc3
test r14b, r14b
je 0x14009ddc3
mov rax, qword [rbx + 0x18]
lea r8, [rsp + 0x100]
mov qword [rsp + 0x30], r8
xor r9d, r9d
movzx ecx, r14b
mov r8, rbx
dec r14w
mov qword [rsp + 0x100], 0
mov rax, qword [rax + rcx*8 - 8]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r14w
call fcn.14009cc40
movsx ecx, al
mov rax, qword [rsi + 0x10]
cmp ecx, dword [rax]
jne 0x14009ddc3
mov rax, qword [rsp + 0x100]
mov qword [rsi + 0x50], rax
mov byte [rsi + 0x3c], 1
movzx eax, word [rbx + 0x10]
mov word [rsi + 0x58], ax
test r13, r13
je 0x14009de1d
cmp qword [r13 + 0x298], 0
je 0x14009ddec
mov rdx, qword [rsp + 0x68]
mov rcx, r13
call fcn.140006920
jmp 0x14009de7d
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [r13 + 0x180]
jb 0x14009de22
cmp rbx, qword [r13 + 0x188]
jae 0x14009de22
mov rax, qword [r13 + 0x178]
mov qword [rbx], rax
dec dword [r13 + 0x160]
mov qword [r13 + 0x178], rbx
jmp 0x14009de7d
mov rbx, qword [rsp + 0x68]
cmp dword [0x140124d50], 0
je 0x14009de74
mov rcx, qword [0x140128b48]
test rcx, rcx
je 0x14009de3d
call qword [0x140124dd8]
mov rcx, rbx
call qword [0x140124d90]
dec qword [0x1401288f8]
movsxd rcx, eax
sub qword [0x1401288b0], rcx
mov rcx, rbx
call qword [0x140124d80]
mov rcx, qword [0x140128b48]
test rcx, rcx
je 0x14009de7d
call qword [0x140124de8]
jmp 0x14009de7d
mov rcx, rbx
call qword [0x140124d80]
xor eax, eax
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret