Function at 0x14009d540
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 0x14009d5a6
mov ebx, r15d
jmp 0x14009d5b6
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 0x14009d5d2
test di, di
je 0x14009d5d2
mov r14d, dword [rax]
mov dword [rsp + 0x50], r14d
jmp 0x14009d5d9
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.140006e60
mov qword [rsp + 0x68], rax
mov rdx, rax
test rax, rax
jne 0x14009d607
mov eax, 7
jmp 0x14009df5f
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 0x14009d641
test r14d, r14d
je 0x14009d678
movsxd r8, r14d
xor edx, edx
add r8, r8
mov qword [rsp + 0x88], rcx
call fcn.1400f4290
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 0x14009d6b7
movzx eax, r14b
mov edx, 0xffffffff
mov r14d, dword [rsp + 0x40]
test r14b, r14b
cmovne eax, edx
mov byte [r9 + 0x16], al
jmp 0x14009d6bc
mov r14d, dword [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x5c], r8d
test r14b, r14b
je 0x14009dc6a
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 0x14009da5f
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 0x14009da32
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 0x14009da1d
test qword [r15 + 8], rcx
jne 0x14009da1d
test dword [r15 + 0x28], r13d
je 0x14009d758
cmp word [r9], 0xa
jl 0x14009da1d
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 0x14009d797
lea eax, [rdx + 0x31]
cmp ecx, eax
jg 0x14009d7be
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x14009d789
inc di
jmp 0x14009d7be
sub ecx, edx
movsxd rax, ecx
movzx ecx, byte [rax + rbx]
add di, cx
jmp 0x14009d7be
lea eax, [rdi + 0x31]
cmp edx, eax
jle 0x14009d7a4
movzx edi, r8w
jmp 0x14009d7be
lea eax, [rdi + 0x1f]
cmp edx, eax
jle 0x14009d7b1
lea edi, [r8 + 1]
jmp 0x14009d7be
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 0x14009d7f2
lea eax, [r8 + 0x31]
cmp ecx, eax
jg 0x14009d819
lea eax, [r8 + 0x1f]
cmp ecx, eax
jle 0x14009d7e4
inc di
jmp 0x14009d819
sub ecx, edx
movsxd rax, ecx
movzx ecx, byte [rax + rbx]
add di, cx
jmp 0x14009d819
lea eax, [rcx + 0x31]
cmp edx, eax
jle 0x14009d7ff
movzx edi, r8w
jmp 0x14009d819
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x14009d80c
lea edi, [r8 + 1]
jmp 0x14009d819
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 0x14009d8ca
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.14009cd20
mov r11, qword [rsp + 0x78]
movzx r14d, al
test al, al
jns 0x14009d8da
movzx r8d, di
mov r10, qword [rsp + 0x70]
xor ecx, ecx
mov edx, dword [rsp + 0x118]
mov rbx, r10
test edx, edx
jle 0x14009d8a1
cmp qword [rbx], rsi
jne 0x14009d897
movzx eax, r14b
xor al, byte [rbx + 0x16]
jge 0x14009d9dc
inc ecx
add rbx, 0x20
cmp ecx, edx
jl 0x14009d885
cmp edx, dword [rsp + 0x54]
jl 0x14009dae0
cmp r8w, bp
jg 0x14009d9fc
jne 0x14009d8c1
cmp di, r12w
jge 0x14009d9fc
mov eax, dword [rsp + 0x58]
jmp 0x14009daeb
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 0x14009d86c
mov r8, qword [rsp + 0x88]
lea r10, [r8 + rcx*2]
movzx r8d, word [r8 + rcx*2]
test r8w, r8w
jne 0x14009d966
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.14000aee0
movzx r8d, ax
mov eax, 0x4000
test word [rbx], ax
movzx ebx, r9w
je 0x14009d93e
mov rax, qword [rsp + 0x100]
cmp word [rax + 0x20], bx
cmovl r9w, word [rax + 0x20]
cmp r9w, 0xa
jg 0x14009d94a
movzx eax, bx
jmp 0x14009d959
movsx rcx, r9w
call fcn.14000aee0
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 0x14009d9a8
lea eax, [rdx + 0x31]
cmp ecx, eax
jg 0x14009d86c
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x14009d98e
lea r8d, [rdi + 1]
jmp 0x14009d870
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 0x14009d870
lea eax, [rcx + 0x31]
cmp edx, eax
jg 0x14009d870
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x14009d9c3
inc r8w
jmp 0x14009d870
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 0x14009d870
cmp ecx, edx
jge 0x14009d8a1
cmp word [rbx + 0x12], r8w
jl 0x14009d9fc
jne 0x14009daf5
cmp word [rbx + 0x10], r13w
jg 0x14009daf5
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 0x14009d720
mov rax, qword [rsp + 0x90]
add r9, 0x20
sub rax, 1
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x90], rax
jne 0x14009d710
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 0x14009d6e3
test edx, edx
jne 0x14009dc4c
mov rcx, qword [rsp + 0x98]
lea rdx, str.no_query_solution
call fcn.140009d30
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14009dbda
cmp qword [rcx + 0x298], 0
je 0x14009dba2
mov rdx, qword [rsp + 0x68]
call fcn.140006a00
mov eax, 1
jmp 0x14009df5f
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.1400f3b10
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 0x14009da03
movzx ebp, word [r10 + 0x12]
mov edx, 1
movzx r12d, word [r10 + 0x10]
mov dword [rsp + 0x58], esi
cmp ebx, edx
jbe 0x14009db96
lea rax, [r10 + 0x34]
nop dword [rax]
movzx ecx, word [rax - 2]
cmp cx, bp
jg 0x14009db81
jne 0x14009db8c
cmp word [rax], r12w
jle 0x14009db8c
movzx r12d, word [rax]
movzx ebp, cx
mov dword [rsp + 0x58], edx
inc edx
add rax, 0x20
cmp edx, ebx
jl 0x14009db70
mov edx, dword [rsp + 0x118]
jmp 0x14009da03
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [rcx + 0x180]
jb 0x14009dbdf
cmp rbx, qword [rcx + 0x188]
jae 0x14009dbdf
mov rax, qword [rcx + 0x178]
mov qword [rbx], rax
mov eax, 1
dec dword [rcx + 0x160]
mov qword [rcx + 0x178], rbx
jmp 0x14009df5f
mov rbx, qword [rsp + 0x68]
cmp dword [0x140126d50], 0
je 0x14009dc39
mov rcx, qword [0x14012acd8]
test rcx, rcx
je 0x14009dbfa
call qword [0x140126dd8]
mov rcx, rbx
call qword [0x140126d90]
dec qword [0x14012aa88]
movsxd rcx, eax
sub qword [0x14012aa40], rcx
mov rcx, rbx
call qword [0x140126d80]
mov rcx, qword [0x14012acd8]
test rcx, rcx
je 0x14009dc42
call qword [0x140126de8]
mov eax, 1
jmp 0x14009df5f
mov rcx, rbx
call qword [0x140126d80]
mov eax, 1
jmp 0x14009df5f
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 0x14009dca0
lea rcx, [r9 + 0x32]
dec rdx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rbx + 0x12], ax
jle 0x14009dc93
movsxd rbx, r15d
shl rbx, 5
add rbx, r9
inc r15d
add rcx, 0x20
sub rdx, 1
jne 0x14009dc80
test r14b, r14b
je 0x14009dce3
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 0x14009dcb2
movzx eax, word [rsi + 0x38]
mov ecx, 0x180
and ax, cx
mov ecx, pe_nt_image_headers64
cmp ax, cx
jne 0x14009dd50
cmp byte [rsi + 0x3f], 0
jne 0x14009dd50
test di, di
je 0x14009dd50
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.14009cd20
movsx ecx, al
mov rax, qword [rsi + 0x18]
cmp ecx, dword [rax]
jne 0x14009dd50
mov byte [rsi + 0x3f], 2
mov r10, qword [rsi + 0x10]
test r10, r10
je 0x14009dea3
test byte [rsi + 0x38], 0x80
movsx ecx, byte [rbx + 0x16]
je 0x14009dd78
cmp ecx, dword [r10]
jne 0x14009dd70
mov byte [rsi + 0x3f], 2
mov rdx, r10
jmp 0x14009de29
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 0x14009de2d
mov byte [rsi + 0x3b], 0
lea r9, [rsi + 0x3b]
test r14b, r14b
je 0x14009de2d
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 0x14009de2d
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.14009cd20
mov rdx, qword [rsi + 0x10]
lea r9, [rsi + 0x3b]
movsx ecx, al
cmp ecx, dword [rdx]
jne 0x14009de2d
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 0x14009dea3
movsx eax, byte [r9]
cmp eax, dword [rdx]
jne 0x14009dea3
test r14b, r14b
je 0x14009dea3
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.14009cd20
movsx ecx, al
mov rax, qword [rsi + 0x10]
cmp ecx, dword [rax]
jne 0x14009dea3
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 0x14009defd
cmp qword [r13 + 0x298], 0
je 0x14009decc
mov rdx, qword [rsp + 0x68]
mov rcx, r13
call fcn.140006a00
jmp 0x14009df5d
mov rbx, qword [rsp + 0x68]
cmp rbx, qword [r13 + 0x180]
jb 0x14009df02
cmp rbx, qword [r13 + 0x188]
jae 0x14009df02
mov rax, qword [r13 + 0x178]
mov qword [rbx], rax
dec dword [r13 + 0x160]
mov qword [r13 + 0x178], rbx
jmp 0x14009df5d
mov rbx, qword [rsp + 0x68]
cmp dword [0x140126d50], 0
je 0x14009df54
mov rcx, qword [0x14012acd8]
test rcx, rcx
je 0x14009df1d
call qword [0x140126dd8]
mov rcx, rbx
call qword [0x140126d90]
dec qword [0x14012aa88]
movsxd rcx, eax
sub qword [0x14012aa40], rcx
mov rcx, rbx
call qword [0x140126d80]
mov rcx, qword [0x14012acd8]
test rcx, rcx
je 0x14009df5d
call qword [0x140126de8]
jmp 0x14009df5d
mov rcx, rbx
call qword [0x140126d80]
xor eax, eax
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret