Function at 0x140204970
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 + 0x50], edx
movzx ecx, byte [rcx + 0x40]
mov r15d, 1
mov r8, qword [rax]
movzx ebp, dx
mov qword [rsp + 0xa0], r8
movzx r13d, dx
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x48], ecx
cmp ecx, r15d
ja 0x1402049d6
mov ebx, r15d
jmp 0x1402049e6
cmp ecx, 2
mov ebx, 0xa
mov eax, 5
cmove ebx, eax
mov rax, qword [rsi + 0x10]
mov dword [rsp + 0x4c], ebx
test rax, rax
je 0x140204a02
test di, di
je 0x140204a02
mov r14d, dword [rax]
mov dword [rsp + 0x60], r14d
jmp 0x140204a09
mov r14d, edx
mov dword [rsp + 0x60], edx
lea eax, [rcx + 4]
imul eax, ebx
lea ecx, [r14 + rax*8]
add ecx, ecx
movsxd rdx, ecx
mov rcx, r8
call fcn.1401b03f0
mov qword [rsp + 0x70], rax
mov r12, rax
test rax, rax
jne 0x140204a37
lea eax, [r12 + 7]
jmp 0x14020544b
movsxd r8, dword [rsp + 0x48]
lea rdx, [r12 + 0x18]
xorps xmm0, xmm0
mov eax, ebx
shl rax, 5
mov r10, r12
lea r9, [rax + r12]
mov qword [rsp + 0x68], r12
movups xmmword [r9], xmm0
mov qword [rsp + 0x88], r9
lea rcx, [rax + r9]
shl r8, 3
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 0x140204a72
test r14d, r14d
je 0x140204aa7
movsxd r8, r14d
xor edx, edx
add r8, r8
mov qword [rsp + 0x80], rcx
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rsp + 0x88]
mov r10, r12
mov rax, qword [rsp + 0x98]
mov ecx, 0x30
mov eax, dword [rax + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov word [r9 + 0x10], cx
mov ecx, r15d
test r14d, r14d
je 0x140204ae6
movzx eax, r14b
mov edx, 0xffffffff
mov r14d, dword [rsp + 0x48]
test r14b, r14b
cmovne eax, edx
mov byte [r9 + 0x16], al
jmp 0x140204aeb
mov r14d, dword [rsp + 0x48]
xor r8d, r8d
mov r11d, 0x100
mov dword [rsp + 0x54], r8d
test r14b, r14b
je 0x14020511c
xor esi, esi
lea rbx, str._n_n_t_t_b_b_a_a_a
mov edi, esi
mov qword [rsp + 0x58], rsi
mov r12d, 0x4000
nop dword [rax + rax]
mov edx, esi
mov dword [rsp + 0x118], edx
test ecx, ecx
jle 0x140204ef3
mov r11, qword [rsp + 0x100]
add r9, 0x10
mov eax, ecx
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x90], rax
nop dword [rax]
mov r15, qword [r11 + 0x58]
test r15, r15
je 0x140204ec6
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 0x140204eb1
test qword [r15 + 8], rcx
jne 0x140204eb1
test dword [r15 + 0x28], r12d
je 0x140204b98
cmp word [r9], 3
jl 0x140204eb1
movsx edi, word [r15 + 0x12]
movzx r12d, word [r9]
mov ecx, edi
movzx r8d, r12w
add r8w, word [r15 + 0x14]
movsx edx, r8w
cmp di, r8w
jl 0x140204bd7
lea eax, [rdx + 0x31]
cmp ecx, eax
jg 0x140204bfe
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x140204bc9
inc di
jmp 0x140204bfe
sub ecx, edx
movsxd rax, ecx
movzx ecx, byte [rax + rbx]
add di, cx
jmp 0x140204bfe
lea eax, [rdi + 0x31]
cmp edx, eax
jle 0x140204be4
movzx edi, r8w
jmp 0x140204bfe
lea eax, [rdi + 0x1f]
cmp edx, eax
jle 0x140204bf1
lea edi, [r8 + 1]
jmp 0x140204bfe
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 0x140204c32
lea eax, [r8 + 0x31]
cmp ecx, eax
jg 0x140204c59
lea eax, [r8 + 0x1f]
cmp ecx, eax
jle 0x140204c24
inc di
jmp 0x140204c59
sub ecx, edx
movsxd rax, ecx
movzx eax, byte [rax + rbx]
add di, ax
jmp 0x140204c59
lea eax, [rcx + 0x31]
cmp edx, eax
jle 0x140204c3f
movzx edi, r8w
jmp 0x140204c59
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x140204c4c
lea edi, [r8 + 1]
jmp 0x140204c59
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 r12w, word [r15 + 0x16]
test r14b, r14b
jns 0x140204d15
mov rdx, qword [r11 + 0x10]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rbx, [r11 + 0x3c]
mov eax, dword [rsp + 0x54]
lea r8, [r9 - 0x10]
movzx r9d, word [rbx]
mov rcx, r11
mov qword [rsp + 0x28], r15
mov word [rsp + 0x20], ax
call fcn.140203f40
mov r11, qword [rsp + 0x78]
movzx r14d, al
test al, al
jns 0x140204d25
movzx r8d, di
add di, 0xfffe
mov r10, qword [rsp + 0x68]
xor ecx, ecx
mov edx, dword [rsp + 0x118]
mov rbx, r10
test edx, edx
jle 0x140204cec
nop dword [rax]
cmp qword [rbx], rsi
jne 0x140204ce2
movzx eax, r14b
xor al, byte [rbx + 0x16]
jge 0x140204e64
inc ecx
add rbx, 0x20
cmp ecx, edx
jl 0x140204cd0
cmp edx, dword [rsp + 0x4c]
jl 0x140204f74
cmp r8w, bp
jg 0x140204e90
jne 0x140204d0c
cmp di, r13w
jge 0x140204e90
mov eax, dword [rsp + 0x50]
jmp 0x140204f7f
mov rbx, qword [rsp + 0x100]
mov r11, qword [r9 - 8]
add rbx, 0x3c
mov ecx, dword [rsp + 0x60]
movzx r10d, r14b
cmp r10d, ecx
jge 0x140204cac
mov rdx, qword [rsp + 0x80]
movzx r8d, word [rdx + r10*2]
test r8w, r8w
jne 0x140204dd4
movzx r9d, word [rsp + 0x108]
mov eax, ecx
sub eax, r10d
imul eax, eax, 0x64
cdq
idiv ecx
movsxd rcx, eax
call fcn.1401c5150
movzx ecx, word [rbx]
movzx r8d, ax
bt cx, 0xe
movzx ebx, r9w
jae 0x140204d92
mov rax, qword [rsp + 0x100]
movzx eax, word [rax + 0x3e]
cmp ax, bx
jge 0x140204d92
movzx r9d, ax
jmp 0x140204da3
bt cx, 8
jae 0x140204da3
cmp bx, 0xa
jle 0x140204daa
lea r9d, [rbx - 0xa]
cmp r9w, 0xa
jg 0x140204daf
movzx eax, bx
jmp 0x140204dbe
movsx rcx, r9w
call fcn.1401c5150
lea ecx, [rbx - 0x21]
add ax, cx
mov rcx, qword [rsp + 0x80]
sub r8w, 0x32
add r8w, ax
mov word [rcx + r10*2], r8w
movsx ecx, di
movsx edx, r8w
cmp di, r8w
jl 0x140204e2a
lea eax, [rdx + 0x31]
cmp ecx, eax
jle 0x140204df6
movzx r8d, di
add r8w, 5
jmp 0x140204cb4
lea eax, [rdx + 0x1f]
cmp ecx, eax
jle 0x140204e0b
lea r8d, [rdi + 1]
add r8w, 5
jmp 0x140204cb4
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
add r8w, 5
jmp 0x140204cb4
lea eax, [rcx + 0x31]
cmp edx, eax
jg 0x140204e5a
lea eax, [rcx + 0x1f]
cmp edx, eax
jle 0x140204e46
inc r8w
add r8w, 5
jmp 0x140204cb4
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
add r8w, 5
jmp 0x140204cb4
cmp ecx, edx
jge 0x140204cec
cmp word [rbx + 0x12], r8w
jl 0x140204e90
jne 0x140204f89
cmp word [rbx + 0x10], r12w
jl 0x140204e90
jne 0x140204f89
cmp word [rbx + 0x14], di
jg 0x140204f89
mov rdi, qword [rsp + 0x58]
xor esi, esi
mov r11, qword [rsp + 0x100]
lea rbx, str._n_n_t_t_b_b_a_a_a
mov r9, qword [rsp + 0x40]
mov r12d, 0x4000
mov r15, qword [r15 + 0x40]
test r15, r15
jne 0x140204b60
mov rax, qword [rsp + 0x90]
add r9, 0x20
sub rax, 1
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x90], rax
jne 0x140204b50
mov r8d, dword [rsp + 0x54]
mov r14d, dword [rsp + 0x48]
mov r9, qword [rsp + 0x88]
mov rax, r10
mov qword [rsp + 0x68], r9
inc r8d
mov qword [rsp + 0x88], rax
add rdi, 8
mov dword [rsp + 0x54], r8d
mov qword [rsp + 0x58], rdi
mov r10, r9
mov r9, rax
mov ecx, edx
cmp r8d, r14d
jl 0x140204b20
test edx, edx
jne 0x1402050fb
mov rcx, qword [rsp + 0x98]
lea rdx, str.no_query_solution
call fcn.1401b29d0
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140205089
cmp qword [rcx + 0x2d8], 0
je 0x140205033
mov rdx, qword [rsp + 0x70]
call fcn.140191850
mov eax, 1
jmp 0x14020544b
mov eax, edx
inc edx
mov dword [rsp + 0x118], edx
movsxd rbx, eax
shl rbx, 5
add rbx, r10
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbx + 0x18]
mov rax, qword [rdx - 0x10]
or rax, qword [r15 + 8]
mov word [rbx + 0x14], di
mov rdi, qword [rsp + 0x58]
mov word [rbx + 0x12], r8w
mov r8, rdi
mov qword [rbx], rax
mov qword [rbx + 8], r11
mov word [rbx + 0x10], r12w
mov byte [rbx + 0x16], r14b
mov rdx, qword [rdx + 8]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x18]
xor esi, esi
mov edx, dword [rsp + 0x118]
mov ebx, dword [rsp + 0x4c]
mov r10, qword [rsp + 0x68]
mov qword [rdi + rax], r15
cmp edx, ebx
jl 0x140204e97
movzx ebp, word [r10 + 0x12]
mov edx, 1
movzx r13d, word [r10 + 0x10]
mov dword [rsp + 0x50], esi
cmp ebx, edx
jbe 0x140205027
lea rax, [r10 + 0x34]
movzx ecx, word [rax - 2]
cmp cx, bp
jg 0x140205012
jne 0x14020501d
cmp word [rax], r13w
jle 0x14020501d
movzx r13d, word [rax]
movzx ebp, cx
mov dword [rsp + 0x50], edx
inc edx
add rax, 0x20
cmp edx, ebx
jl 0x140205001
mov edx, dword [rsp + 0x118]
jmp 0x140204e97
mov rbx, qword [rsp + 0x70]
cmp rbx, qword [rcx + 0x1c8]
jae 0x14020508e
cmp rbx, qword [rcx + 0x1b8]
jb 0x140205065
mov rax, qword [rcx + 0x1b0]
mov qword [rbx], rax
mov eax, 1
mov qword [rcx + 0x1b0], rbx
jmp 0x14020544b
cmp rbx, qword [rcx + 0x1c0]
jb 0x14020508e
mov rax, qword [rcx + 0x1a0]
mov qword [rbx], rax
mov eax, 1
mov qword [rcx + 0x1a0], rbx
jmp 0x14020544b
mov rbx, qword [rsp + 0x70]
cmp dword [0x1402da030], 0
je 0x1402050e8
mov rcx, qword [0x1402dfbb0]
test rcx, rcx
je 0x1402050a9
call qword [0x1402da0b0]
mov rcx, rbx
call qword [0x1402da068]
dec qword [0x1402dfb38]
movsxd rcx, eax
sub qword [0x1402dfaf0], rcx
mov rcx, rbx
call qword [0x1402da058]
mov rcx, qword [0x1402dfbb0]
test rcx, rcx
je 0x1402050f1
call qword [0x1402da0c0]
mov eax, 1
jmp 0x14020544b
mov rcx, rbx
call qword [0x1402da058]
mov eax, 1
jmp 0x14020544b
movzx edi, word [rsp + 0x108]
mov r15d, 1
mov rsi, qword [rsp + 0x100]
mov r11d, 0x100
mov r12, qword [rsp + 0x70]
movsxd rdx, ecx
mov rbx, r9
cmp rdx, 1
jle 0x140205150
lea rcx, [r9 + 0x32]
dec rdx
nop
movzx eax, word [rcx]
cmp word [rbx + 0x12], ax
jle 0x140205143
movsxd rbx, r15d
shl rbx, 5
add rbx, r9
inc r15d
add rcx, 0x20
sub rdx, 1
jne 0x140205130
test r14b, r14b
je 0x140205196
xor r8d, r8d
mov r9d, r14d
lea rdx, [rsi + 0x394]
mov rax, qword [rbx + 0x18]
lea rdx, [rdx + 0x60]
lea r8, [r8 + 8]
mov rcx, qword [r8 + rax - 8]
mov qword [rdx - 0x44], rcx
movzx eax, byte [rcx + 0x10]
imul rcx, rax, 0x70
mov byte [rdx - 0x60], al
mov rax, qword [rsi + 8]
mov ecx, dword [rcx + rax + 0x4c]
mov dword [rdx - 0x90], ecx
sub r9, 1
jne 0x140205162
movzx eax, word [rsi + 0x3c]
mov ecx, 0x180
and ax, cx
cmp ax, r11w
jne 0x1402051ff
cmp byte [rsi + 0x43], 0
jne 0x1402051ff
test di, di
je 0x1402051ff
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.140203f40
movsx ecx, al
mov rax, qword [rsi + 0x18]
cmp ecx, dword [rax]
jne 0x1402051ff
mov byte [rsi + 0x43], 2
mov ecx, dword [rsi + 0x44]
mov r10, qword [rsi + 0x10]
and ecx, 0xfffffffb
mov dword [rsi + 0x44], ecx
test r10, r10
je 0x14020537f
movzx r11d, word [rsi + 0x3c]
movsx r8d, byte [rbx + 0x16]
test r11b, r11b
jns 0x140205235
cmp r8d, dword [r10]
jne 0x14020522d
mov byte [rsi + 0x43], 2
mov rdx, r10
jmp 0x140205305
mov byte [rsi + 0x41], r8b
mov rdx, r10
mov rax, qword [rbx + 8]
lea r9, [rsi + 0x41]
mov qword [rsi + 0x68], rax
test r8b, r8b
jg 0x1402052e6
mov byte [rsi + 0x41], 0
test r14b, r14b
je 0x140205309
mov rax, qword [rbx + 0x18]
lea r9, [rsi + 0x41]
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 0x140205309
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.140203f40
mov rdx, qword [rsi + 0x10]
lea r9, [rsi + 0x41]
movsx ecx, al
cmp ecx, dword [rdx]
jne 0x140205309
mov rax, qword [rsp + 0x100]
or dword [rsi + 0x44], 4
mov qword [rsi + 0x68], rax
jmp 0x140205305
test r14b, r14b
je 0x140205309
lea r9, [rsi + 0x41]
cmp r8b, 1
jne 0x140205309
lea r9, [rsi + 0x41]
test r11b, 3
je 0x140205309
or ecx, 4
mov dword [rsi + 0x44], ecx
lea r9, [rsi + 0x41]
mov eax, 0x200
test word [rsi + 0x3c], ax
je 0x14020537f
movsx eax, byte [r9]
cmp eax, dword [rdx]
jne 0x14020537f
test r14b, r14b
je 0x14020537f
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.140203f40
movsx ecx, al
mov rax, qword [rsi + 0x10]
cmp ecx, dword [rax]
jne 0x14020537f
mov rax, qword [rsp + 0x100]
or dword [rsi + 0x44], 8
mov qword [rsi + 0x68], rax
mov rcx, qword [rsp + 0xa0]
movzx eax, word [rbx + 0x10]
mov word [rsi + 0x48], ax
test rcx, rcx
je 0x1402053ee
cmp qword [rcx + 0x2d8], 0
je 0x1402053ab
mov rdx, r12
call fcn.140191850
jmp 0x140205449
cmp r12, qword [rcx + 0x1c8]
jae 0x1402053ee
cmp r12, qword [rcx + 0x1b8]
jb 0x1402053d1
mov rax, qword [rcx + 0x1b0]
mov qword [r12], rax
mov qword [rcx + 0x1b0], r12
jmp 0x140205449
cmp r12, qword [rcx + 0x1c0]
jb 0x1402053ee
mov rax, qword [rcx + 0x1a0]
mov qword [r12], rax
mov qword [rcx + 0x1a0], r12
jmp 0x140205449
cmp dword [0x1402da030], 0
je 0x140205440
mov rcx, qword [0x1402dfbb0]
test rcx, rcx
je 0x140205409
call qword [0x1402da0b0]
mov rcx, r12
call qword [0x1402da068]
dec qword [0x1402dfb38]
movsxd rcx, eax
sub qword [0x1402dfaf0], rcx
mov rcx, r12
call qword [0x1402da058]
mov rcx, qword [0x1402dfbb0]
test rcx, rcx
je 0x140205449
call qword [0x1402da0c0]
jmp 0x140205449
mov rcx, r12
call qword [0x1402da058]
xor eax, eax
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret