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

Disassembly:
mov r11, rsp
mov word [r11 + 0x20], r9w
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd8
movzx eax, word [rsp + 0x140]
xor ebx, ebx
mov qword [rsp + 0x48], rbx
movzx r10d, r9w
mov r8, rdx
mov r9, rcx
mov r12d, ebx
mov r15d, ebx
test ax, ax
je 0x14016e9d9
mov rax, qword [rcx]
mov r10, qword [rax]
test byte [r10 + 0x5c], 0x40
jne 0x14016f23c
movzx r10d, word [r11 + 0x20]
movzx eax, word [rsp + 0x140]
movzx ebp, word [rdx]
mov word [rsp + 0x62], bp
cmp bp, 0x3f
ja 0x14016f23c
mov r11d, ebx
movzx r14d, bp
mov ecx, r14d
mov dword [rsp + 0x64], r14d
mov edi, 1
mov qword [rsp + 0x80], rbx
shl rdi, cl
movzx esi, r10w
dec rdi
mov qword [rsp + 0x68], rbx
mov ecx, 0x800
mov qword [rsp + 0x88], rdi
and si, cx
mov dword [rsp + 0x54], ebx
mov r13b, 1
mov word [rsp + 0x3c], si
setne r11b
mov dword [rsp + 0x30], r13d
add r11w, 0x182
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x38], r11d
mov rdx, rbx
mov ecx, ebx
cmp r15, rdi
jae 0x14016f207
movzx eax, ax
cmp ecx, eax
jg 0x14016f204
test ecx, ecx
jle 0x14016ea75
or rdx, qword [r12 + 8]
mov qword [rsp + 0x68], rdx
cmp ecx, eax
jge 0x14016ea99
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + rbx*8]
mov qword [rsp + 0x58], r12
test si, si
jne 0x14016f1ce
jmp 0x14016eaa6
mov r12, qword [rsp + 0x148]
mov qword [rsp + 0x58], r12
mov edx, dword [r12 + 0x28]
bt edx, 0xa
jb 0x14016f1f7
movzx eax, r10w
mov ecx, 0x80
and ax, cx
mov word [rsp + 0x60], ax
je 0x14016ead0
xor eax, eax
mov word [r12 + 0x1e], ax
movzx eax, byte [r12 + 0x10]
imul rcx, rax, 0x70
mov rax, qword [r9 + 8]
xor r9d, r9d
mov esi, r9d
mov r10d, dword [rcx + rax + 0x4c]
mov dword [rsp + 0x40], r10d
test r14d, r14d
je 0x14016ec22
mov r13, qword [rsp + 0x120]
lea rdi, [r8 + 8]
mov ebp, r9d
nop word [rax + rax]
mov eax, esi
bt r15, rax
jb 0x14016ebf9
mov rbx, qword [rdi]
test rbx, rbx
je 0x14016eb47
mov eax, dword [rbx + 4]
test eax, 0x41000
je 0x14016eb47
bt eax, 0x12
jae 0x14016eb3e
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
jmp 0x14016eb42
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14016eb24
cmp byte [rbx], 0xa4
jne 0x14016ebf9
cmp dword [rbx + 0x2c], r10d
jne 0x14016ebf9
mov r9, qword [rsp + 0x68]
lea rcx, [r13 + 0x68]
movsx r8d, word [rbx + 0x30]
not r9
movzx eax, r11w
mov edx, r10d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call fcn.14015d9f0
mov r8, rax
test rax, rax
je 0x14016ebec
movzx r10d, word [rax + 0x14]
cmp r10w, 1
jne 0x14016ebc8
movzx edx, word [r12 + 0x2c]
xor r9d, r9d
mov ecx, r9d
test edx, edx
je 0x14016ebc4
mov r9, qword [r12 + 0x38]
nop dword [rax]
movsxd rax, ecx
cmp r8, qword [r9 + rax*8]
je 0x14016ebc1
inc ecx
cmp ecx, edx
jl 0x14016ebb0
jmp 0x14016ebec
xor r9d, r9d
cmp ecx, edx
jge 0x14016ebef
test r10b, 0x82
je 0x14016ebe8
cmp word [rbx + 0x30], 0
jl 0x14016ebe8
mov r8, qword [r8]
mov rdx, qword [rdi]
mov rcx, qword [r13]
call fcn.140127980
test eax, eax
je 0x14016ebec
bts r15, rbp
xor r9d, r9d
mov r10d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x38]
inc esi
inc rbp
add rdi, 0x20
cmp esi, r14d
jl 0x14016eb10
mov r13d, dword [rsp + 0x30]
mov edx, dword [r12 + 0x28]
mov r8, qword [rsp + 0x128]
mov qword [rsp + 0x48], r15
bt edx, 0xc
jb 0x14016f0a0
bt edx, 8
jae 0x14016ec4b
mov esi, dword [rsp + 0x30]
mov r11, r9
mov qword [rsp + 0x70], r9
mov eax, 1
mov word [rsp + 0x50], r9w
jmp 0x14016ec91
mov r11, qword [r12 + 0x20]
mov qword [rsp + 0x70], r11
test r11, r11
je 0x14016f23c
test byte [r11 + 0x64], 4
jne 0x14016f23c
cmp byte [r11 + 0x62], 0
movzx eax, word [r11 + 0x5e]
mov word [rsp + 0x50], ax
movzx eax, word [r11 + 0x60]
je 0x14016ec8a
bt edx, 0xf
jb 0x14016ec8a
mov sil, 1
jmp 0x14016ec8d
xor sil, sil
mov dword [rsp + 0x30], esi
xor cl, cl
movzx eax, ax
xor dil, dil
mov byte [rsp + 0x35], cl
mov byte [rsp + 0x34], cl
mov r13d, r9d
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x78], eax
test eax, eax
je 0x14016f09b
nop dword [rax]
nop dword [rax + rax]
movzx r10d, word [r12 + 0x18]
mov bl, 1
cmp r13d, r10d
jge 0x14016ed3d
movzx eax, word [r12 + 0x2e]
cmp r13d, eax
jl 0x14016ed3d
mov r9, qword [r12 + 0x38]
movsxd rax, r13d
mov rcx, qword [r9 + rax*8]
movzx eax, word [rcx + 0x14]
test word [rsp + 0x38], ax
je 0x14016ed13
mov ecx, 0x180
mov r9d, 0
test cx, ax
movzx eax, sil
mov ecx, r9d
cmove ecx, eax
movzx esi, cl
mov dword [rsp + 0x30], esi
jmp 0x14016f064
test al, 1
je 0x14016ed3a
mov r8, qword [rcx]
lea edx, [r13 + 1]
cmp edx, r10d
jge 0x14016ed3a
movsxd rax, edx
mov rcx, qword [r9 + rax*8]
cmp qword [rcx], r8
je 0x14016ed38
inc edx
cmp edx, r10d
jl 0x14016ed23
jmp 0x14016ed3a
xor bl, bl
xor r9d, r9d
test r11, r11
je 0x14016ed6a
mov rax, qword [r11 + 8]
movsxd rcx, r13d
movsx r14d, word [rax + rcx*2]
mov rax, qword [r11 + 0x38]
movzx r12d, byte [rcx + rax]
mov rax, qword [r11 + 0x18]
and r12b, 1
movsx ecx, word [rax + 0x44]
cmp r14d, ecx
jne 0x14016ed73
jmp 0x14016ed6d
xor r12b, r12b
mov r14d, 0xffffffff
test sil, sil
je 0x14016eda2
test r14d, r14d
js 0x14016eda2
cmp r13d, r10d
jl 0x14016eda2
mov rax, qword [r11 + 0x18]
movzx esi, sil
mov rcx, qword [rax + 8]
movsxd rax, r14d
shl rax, 5
cmp byte [rax + rcx + 0x18], 0
cmove esi, r9d
mov dword [rsp + 0x30], esi
mov ebp, r9d
test bl, bl
je 0x14016ef53
nop dword [rax]
cmp ebp, dword [rsp + 0x64]
jge 0x14016ef4f
mov eax, ebp
bt r15, rax
jb 0x14016ef45
mov rsi, qword [rsp + 0x128]
add rsi, 8
movsxd r15, ebp
mov rax, r15
shl rax, 5
add rsi, rax
mov rdx, qword [rsi]
test rdx, rdx
je 0x14016ee13
nop word [rax + rax]
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x14016ee13
bt eax, 0x12
jae 0x14016ee0a
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx + 8]
jmp 0x14016ee0e
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x14016edf0
test byte [rsp + 0x138], 0xc0
mov ecx, r9d
movzx eax, bl
cmovne ecx, eax
movzx ebx, cl
movzx edi, cl
cmp r14d, 0xffffffff
jl 0x14016ee58
cmp byte [rdx], 0xa4
jne 0x14016ef40
mov eax, dword [rsp + 0x40]
cmp dword [rdx + 0x2c], eax
jne 0x14016ef40
movsx eax, word [rdx + 0x30]
cmp eax, r14d
jne 0x14016ef40
jmp 0x14016eed8
mov rax, qword [r11 + 0x50]
movsxd rcx, r13d
shl rcx, 5
mov r8, qword [rcx + rax + 8]
test r8, r8
je 0x14016ee94
nop dword [rax]
mov eax, dword [r8 + 4]
test eax, 0x41000
je 0x14016ee94
bt eax, 0x12
jae 0x14016ee8b
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
jmp 0x14016ee8f
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x14016ee70
test rdx, rdx
je 0x14016eec3
nop dword [rax]
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x14016eec3
bt eax, 0x12
jae 0x14016eeba
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
jmp 0x14016eebe
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x14016eea0
mov r9d, dword [rsp + 0x40]
xor ecx, ecx
call fcn.140127a10
mov r11, qword [rsp + 0x70]
test eax, eax
jne 0x14016ef3d
cmp r14d, 0xffffffff
je 0x14016ef93
mov rax, qword [rsp + 0x120]
mov rdx, qword [rsi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1401277b0
test rax, rax
jne 0x14016ef04
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax]
lea r15, [0x1401d9cf0]
mov r11, qword [rsp + 0x70]
movsxd rcx, r13d
mov rax, qword [r11 + 0x40]
mov r9, qword [rax + rcx*8]
sub r9, rdx
movzx ecx, byte [rdx]
movzx r8d, byte [rdx + r9]
cmp ecx, r8d
jne 0x14016ef80
test ecx, ecx
jne 0x14016ef8e
movsxd r15, ebp
movzx ebx, dil
test ecx, ecx
je 0x14016ef93
xor r9d, r9d
mov r15, qword [rsp + 0x48]
inc ebp
test bl, bl
jne 0x14016edb0
mov edi, dword [rsp + 0x44]
mov r8, qword [rsp + 0x128]
mov r12, qword [rsp + 0x58]
test r13d, r13d
je 0x14016ef73
movzx eax, word [rsp + 0x50]
cmp r13d, eax
jge 0x14016f072
xor r13b, r13b
mov dword [rsp + 0x30], r13d
jmp 0x14016f077
movzx ecx, byte [rcx + r15]
movzx eax, byte [r8 + r15]
sub ecx, eax
jne 0x14016ef32
inc rdx
jmp 0x14016ef21
cmp word [rsp + 0x60], 0
je 0x14016efa8
mov rcx, qword [rsp + 0x58]
lea eax, [r13 + 1]
mov word [rcx + 0x1e], ax
test byte [rsp + 0x138], 0x40
mov r8, qword [rsp + 0x128]
jne 0x14016f00c
mov rax, r15
shl rax, 5
movzx ecx, byte [rax + r8 + 0x18]
and cl, 1
cmp byte [rsp + 0x35], 0
je 0x14016efe4
xor r12b, byte [rsp + 0x34]
cmp r12b, cl
je 0x14016f00c
mov edi, dword [rsp + 0x44]
jmp 0x14016ef5b
movzx edx, cl
xor dl, r12b
mov byte [rsp + 0x34], dl
je 0x14016f007
mov rdx, qword [rsp + 0x150]
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rdx]
bts rcx, rax
mov qword [rdx], rcx
mov byte [rsp + 0x35], 1
mov r12, qword [rsp + 0x58]
mov rax, r15
shl rax, 5
test byte [rax + r8 + 0x18], 2
je 0x14016f034
movzx eax, word [r12 + 0x18]
cmp r13d, eax
jne 0x14016f08b
or dword [r12 + 0x28], 0x80000
mov edi, dword [rsp + 0x44]
cmp r14d, 0xffffffff
mov esi, dword [rsp + 0x30]
mov eax, 1
movzx edi, dil
cmove edi, eax
mov rax, qword [rsp + 0x48]
bts rax, r15
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rax
mov r15, rax
xor r9d, r9d
inc r13d
cmp r13d, dword [rsp + 0x78]
jl 0x14016ecc0
mov r13d, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x64]
test dil, dil
je 0x14016f094
mov r13b, 1
mov dword [rsp + 0x30], r13d
jmp 0x14016f0a9
mov edi, dword [rsp + 0x44]
jmp 0x14016ef60
mov r15, qword [rsp + 0x48]
jmp 0x14016f0a0
mov r13d, dword [rsp + 0x30]
test r13b, r13b
je 0x14016f1a2
mov rax, qword [rsp + 0x80]
xor ecx, ecx
or rax, qword [r12 + 8]
mov edi, ecx
mov r15, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
test r14d, r14d
je 0x14016f1a2
mov r13, qword [rsp + 0x120]
mov r12, rax
nop dword [rax + rax]
mov eax, edi
bt r15, rax
jb 0x14016f180
movsxd rbp, edi
mov rax, rbp
shl rax, 5
mov rbx, qword [rax + r8 + 8]
test rbx, rbx
je 0x14016f116
lea rcx, [r13 + 0x290]
mov rdx, rbx
call fcn.14015d870
mov rsi, rax
xor ecx, ecx
jmp 0x14016f119
mov rsi, rcx
test rsi, rsi
jne 0x14016f16f
mov dword [rsp + 0xc0], ecx
mov eax, 1
mov word [rsp + 0xbc], ax
lea rax, [fcn.1400fbd00]
mov qword [rsp + 0xa0], rax
lea rax, [0x140143d80]
mov qword [rsp + 0xa8], rax
test rbx, rbx
je 0x14016f16f
mov rdx, rbx
lea rcx, [rsp + 0x98]
call fcn.14016b570
cmp word [rsp + 0xbc], si
je 0x14016f17e
mov rax, r12
not rax
test rsi, rax
jne 0x14016f17e
bts r15, rbp
xor ecx, ecx
mov r8, qword [rsp + 0x128]
inc edi
cmp edi, r14d
jl 0x14016f0e0
mov r12, qword [rsp + 0x58]
mov r13d, dword [rsp + 0x30]
mov qword [rsp + 0x48], r15
mov r9, qword [rsp + 0x120]
movzx r10d, word [rsp + 0x138]
mov ecx, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x88]
movzx esi, word [rsp + 0x3c]
inc qword [rsp + 0x90]
inc ecx
mov rbx, qword [rsp + 0x90]
movzx eax, word [rsp + 0x140]
mov dword [rsp + 0x54], ecx
test r13b, r13b
jne 0x14016ea53
jmp 0x14016f204
cmp byte [r12 + 0x1d], 0
je 0x14016f204
test r10b, r10b
jns 0x14016f209
cmp r15, rdi
jne 0x14016f210
movzx eax, byte [rsp + 0x62]
jmp 0x14016f23e
test r13b, r13b
jne 0x14016f257
lea ecx, [r14 - 1]
test ecx, ecx
jle 0x14016f23c
nop dword [rax]
mov edx, 1
shl rdx, cl
dec rdx
mov rax, rdx
and rax, r15
cmp rax, rdx
je 0x14016f252
dec ecx
test ecx, ecx
jg 0x14016f220
xor al, al
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx eax, cl
jmp 0x14016f23e
mov al, 0xff
jmp 0x14016f23e