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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
movaps xmmword [rsp + 0x130], xmm6
mov eax, 0xffffffff
mov rsi, qword [rcx + 0x10]
mov r10, qword [rcx]
mov word [rsp + 0x72], ax
movzx eax, byte [rsi + 0x10]
mov qword [rsp + 0x198], rdx
mov rdx, qword [r10 + 8]
mov qword [rsp + 0x190], rcx
imul rax, rax, 0x68
lea rbp, [rdx + rax + 8]
mov rax, qword [rcx + 8]
mov r11, qword [rbp + 0x20]
mov qword [rsp + 0x38], rax
movzx eax, byte [rbp + 0x40]
test al, 2
je 0x1401978c8
mov rbx, qword [rbp + 0x60]
mov rcx, qword [rsp + 0x190]
movzx r8d, word [r11 + 0x3a]
test rbx, rbx
setne dil
cmp qword [rcx + 0x18], 0
je 0x1401978f2
xor eax, eax
test dil, dil
jne 0x140197af1
jmp 0x140197cfc
test byte [r11 + 0x30], 0x80
je 0x140197a4f
mov rbx, qword [r11 + 0x10]
mov rcx, qword [rsp + 0x190]
movzx r8d, word [r11 + 0x3a]
test rbx, rbx
setne dil
cmp qword [rcx + 0x18], 0
jne 0x1401978b1
test word [r10 + 0x3c], 0x1020
jne 0x1401978b1
mov rcx, qword [r10]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x1401978b1
test al, 3
jne 0x1401978b1
test byte [r11 + 0x30], 0x80
jne 0x1401978b1
test al, 0x48
jne 0x1401978b1
test byte [rbp + 0x3c], 0x10
jne 0x1401978b1
mov rax, qword [rsp + 0x38]
xor r15d, r15d
mov r14, qword [rax + 0x20]
movsxd rax, dword [rax + 0x14]
imul rax, rax, 0x38
cmp r8w, 0xa
lea r13, [r14 + rax]
jg 0x1401981a7
cmp r14, r13
jae 0x1401978b1
lea eax, [r15 + r8]
mov qword [rsp + 0x48], rbx
mov rbx, r11
movd xmm6, dword [0x1403b61e8]
mov word [rsp + 0x68], ax
sub eax, 0x19
mov word [rsp + 0x40], ax
mov rax, r14
mov r14d, edi
mov qword [rsp + 0x50], r10
mov rdi, rax
jmp 0x140197a35
xor r8d, r8d
mov rcx, rdi
mov rdx, rbp
call fcn.140161c90
mov ecx, 1
test eax, eax
je 0x140197a20
mov eax, 1
mov qword [rsi + 0x20], 0
mov word [rsi + 0x18], ax
mov rax, qword [rsi + 0x48]
movd dword [rsi + 0x3c], xmm6
mov qword [rax], rdi
cmp byte [rbx + 0x3f], 2
je 0x14019819d
test byte [rbx + 0x31], 0x40
jne 0x14019819d
movzx eax, word [rsp + 0x68]
add eax, 0x1c
xor edx, edx
test ax, ax
mov r11d, 0x2b
cmovs eax, edx
mov word [rsi + 0x16], r11w
movsx ecx, r15w
mov edx, 0x2b
mov word [rsi + 0x12], ax
call fcn.1401507e0
or r12, qword [rsp + 0x198]
mov dword [rsi + 0x38], 0x4000
mov rdx, rsi
mov rcx, qword [rsp + 0x190]
mov word [rsi + 0x14], ax
mov qword [rsi], r12
call fcn.140168b80
test eax, eax
sete cl
add rdi, 0x38
cmp rdi, r13
jae 0x1401981d1
test cl, cl
je 0x1401981d1
mov r12, qword [rdi + 0x28]
mov rax, r12
and rax, qword [rsi + 8]
je 0x14019797c
mov ecx, 1
xor eax, eax
jmp 0x140197a20
lea rbx, [rsp + 0xc0]
xor eax, eax
mov ecx, 0xe
mov rdi, rbx
rep stosq qword [rdi], rax
lea rax, [rsp + 0x72]
mov byte [rsp + 0x122], 5
movq xmm0, rax
mov byte [rsp + 0x124], 3
lea rax, [rsp + 0x74]
mov qword [rsp + 0xd8], r11
mov dword [rsp + 0x11e], 0x10001
movq xmm1, rax
mov eax, 3
movzx r8d, word [r11 + 0x3a]
mov word [rsp + 0x11c], ax
xor eax, eax
punpcklqdq xmm0, xmm1
mov word [rsp + 0x76], ax
movzx eax, byte [rbp + 0x40]
movups xmmword [rsp + 0xc8], xmm0
mov word [rsp + 0x74], r8w
test al, 1
jne 0x140197ade
mov rdx, qword [rbp + 0x20]
mov rdx, qword [rdx + 0x10]
mov qword [rsp + 0xe8], rdx
mov rcx, qword [rsp + 0x190]
cmp qword [rcx + 0x18], 0
je 0x140198193
mov r12, qword [rsp + 0x190]
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x48], r11
nop dword [rax + rax]
mov r9, qword [rbx + 0x48]
test r9, r9
je 0x140197b32
movzx edx, byte [rbp + 0x3c]
mov ecx, dword [rbp + 0x44]
mov r8, qword [rsp + 0x38]
call fcn.14018cf00
test eax, eax
je 0x140197e10
movzx r14d, byte [rbx + 0x65]
and r14d, 2
jne 0x140197e10
mov rax, qword [rbx + 0x10]
xor r9d, r9d
xor r10d, r10d
movzx edi, word [rax]
mov byte [rsi + 0x11], 0
mov dword [rsi + 0x3c], 0
movzx edx, byte [rbx + 0x64]
mov rax, qword [rsp + 0x198]
mov dword [rsi + 0x18], 0
mov r13d, dword [rbp + 0x44]
mov word [rsi + 0x1c], r9w
mov word [rsi + 0x12], r10w
test dl, 4
mov word [rsi + 0x16], di
mov qword [rsi], rax
mov qword [rsi + 0x20], rbx
jne 0x140197ea0
mov rax, qword [r12]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140197ea0
mov r8d, dword [rcx]
xor eax, eax
test r8d, r8d
jle 0x14019817f
mov qword [rsp + 0x40], rsi
mov rsi, rbx
mov qword [rsp + 0x50], rbp
mov rbp, rax
mov word [rsp + 0x58], di
mov rdi, rcx
mov qword [rsp + 0x190], r12
nop dword [rax]
mov rdx, rbp
shl rdx, 5
mov r15, qword [rdi + rdx + 8]
nop dword [rax]
test r15, r15
je 0x140197c10
mov eax, dword [r15 + 4]
test eax, 0x82000
je 0x140197d30
test eax, 0x80000
je 0x140197d20
mov rax, qword [r15 + 0x20]
mov r15, qword [rax + 8]
test r15, r15
jne 0x140197be5
nop dword [rax]
add rbp, 1
cmp dword [rdi], ebp
jg 0x140197bd0
mov rbx, rsi
xor r15d, r15d
mov rsi, qword [rsp + 0x40]
movzx edx, byte [rbx + 0x64]
mov rbp, qword [rsp + 0x50]
movzx edi, word [rsp + 0x58]
mov r12, qword [rsp + 0x190]
mov eax, edx
not eax
test al, 3
je 0x140197dcc
and edx, 0x20
je 0x140197ee3
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [rsi + 0x38], 0x240
test r15d, r15d
je 0x140197ec3
movzx r14d, byte [rsp + 0x68]
mov rax, qword [rsp + 0x48]
movsx edx, word [rbx + 0x5c]
movsx r8d, word [rax + 0x3c]
mov eax, edx
mov byte [rsi + 0x11], r14b
shl eax, 4
sub eax, edx
cdq
idiv r8d
test rcx, rcx
lea eax, [rdi + rax + 1]
mov word [rsi + 0x14], ax
jne 0x140197f62
mov rcx, qword [rsp + 0x38]
movsx r8d, di
mov rdx, rsi
call fcn.14014f360
test byte [rbp + 0x3c], 0x10
je 0x140197def
cmp qword [rbx + 0x50], 0
je 0x140197def
mov word [rsi + 0x16], di
xor r9d, r9d
mov byte [r12 + 0x20], 0
mov r8, rbx
mov rdx, rbp
mov rcx, r12
call fcn.140189d40
cmp byte [r12 + 0x20], 1
jne 0x140197cf2
mov rcx, qword [rsp + 0x48]
or dword [rcx + 0x30], 0x100
test byte [rbp + 0x40], 2
je 0x140197e1c
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [r15 + 0x10]
jmp 0x140197be0
cmp byte [r15], 0xa7
je 0x140197e40
mov r12, qword [rsi + 0x50]
test r12, r12
je 0x140197c10
cmp word [rsi + 0x5e], 0
je 0x140197c10
xor ebx, ebx
jmp 0x140197d70
movzx eax, word [rsi + 0x5e]
add rbx, 1
cmp eax, ebx
jle 0x140197c10
mov rax, qword [rsi + 8]
cmp word [rax + rbx*2], 0xfffe
jne 0x140197d60
mov rax, rbx
mov r8d, r13d
mov rcx, r15
shl rax, 5
mov rdx, qword [r12 + rax + 8]
call fcn.140189590
test eax, eax
jne 0x140197d60
mov rbx, rsi
mov rbp, qword [rsp + 0x50]
mov r15d, 1
movzx edx, byte [rbx + 0x64]
mov rsi, qword [rsp + 0x40]
movzx edi, word [rsp + 0x58]
mov r12, qword [rsp + 0x190]
mov eax, edx
not eax
test al, 3
jne 0x140197c45
movzx r14d, byte [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea eax, [rdi + 0x10]
mov byte [rsi + 0x11], r14b
movsx r8d, di
mov dword [rsi + 0x38], 0x100
mov rdx, rsi
mov word [rsi + 0x14], ax
call fcn.14014f360
mov rdx, rsi
mov rcx, r12
call fcn.140168b80
mov word [rsi + 0x16], di
test eax, eax
je 0x140197cc7
jmp 0x140197cfc
xor eax, eax
test byte [rbp + 0x40], 2
jne 0x140197cfc
add dword [rsp + 0x68], 1
test eax, eax
mov rbx, qword [rbx + 0x28]
jne 0x140197cfc
test rbx, rbx
jne 0x140197b10
jmp 0x140197cfc
cmp r13d, dword [r15 + 0x2c]
jne 0x140197d3a
movzx r8d, word [r15 + 0x30]
test r8w, r8w
js 0x140197d96
movzx r10d, word [rsi + 0x5e]
test r10w, r10w
je 0x140197c10
mov rdx, qword [rsi + 8]
sub r10d, 1
lea r10, [rdx + r10*2 + 2]
jmp 0x140197e8d
add rdx, 2
cmp rdx, r10
je 0x140197c10
cmp r8w, word [rdx]
jne 0x140197e80
jmp 0x140197d96
mov eax, edx
not eax
test al, 3
je 0x140197dcc
and edx, 0x20
je 0x140197ee0
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [rsi + 0x38], 0x240
mov rax, qword [rsp + 0x48]
test byte [rax + 0x30], 0x80
je 0x1401980b3
movsx edx, word [rbx + 0x5c]
movsx r8d, word [rax + 0x3c]
jmp 0x140197c7d
xor r15d, r15d
mov r8, qword [rbx + 0x48]
mov rcx, qword [rbp + 0x50]
and rcx, qword [rbx + 0x68]
test r8, r8
mov qword [rsp + 0x78], rcx
je 0x140197f24
mov rax, qword [rsp + 0x60]
lea r9, [rsp + 0x78]
mov rdx, rbx
mov rcx, qword [rax]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call fcn.140184450
mov rcx, qword [rsp + 0x78]
movabs rax, 0x8000000000000000
mov dword [rsi + 0x38], 0x200
cmp rcx, rax
je 0x140198149
movzx eax, byte [rbx + 0x65]
and eax, 0x18
cmp al, 0x10
je 0x140198140
test rcx, rcx
jne 0x140197c60
mov dword [rsi + 0x38], 0x240
jmp 0x140197c60
mov ecx, dword [rbp + 0x44]
lea r14d, [rdi + 0x10]
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx + 0x84]
test edx, edx
jle 0x14019809e
xor r9d, r9d
xor r10d, r10d
mov qword [rsp + 0x50], rsi
mov rsi, rbx
lea r13, [rsp + 0x80]
mov qword [rsp + 0x58], rbp
mov ebp, r10d
mov word [rsp + 0x6e], di
lea r15, [rsp + 0x90]
mov rdi, rcx
mov rbx, r13
mov qword [rsp + 0x190], r12
mov r12, r9
jmp 0x140197fe4
lea eax, [r14 - 1]
sub r14d, 0x14
test byte [r13 + 0x14], 0x82
cmove r14d, eax
add ebp, 1
add r12, 0x38
cmp dword [rdi + 0x84], ebp
jle 0x140198080
mov r13, qword [rdi + 0x90]
mov eax, dword [rsp + 0x40]
add r13, r12
mov rdx, qword [r13]
mov dword [rsp + 0x88], eax
lea rax, [0x140150b80]
mov qword [r15], 0
mov qword [r15 + 0x10], 0
mov qword [r15 + 0x18], 0
test rdx, rdx
mov qword [r15 + 0x20], 0
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb8], rbx
je 0x140198053
mov rcx, r15
call fcn.140163c70
cmp word [rsp + 0xb4], 0
jne 0x140198080
movzx eax, word [r13 + 0x10]
test ax, ax
jg 0x140197fc0
add r14d, eax
add ebp, 1
add r12, 0x38
cmp dword [rdi + 0x84], ebp
jg 0x140197fe4
nop word [rax + rax]
mov rbx, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
movzx edi, word [rsp + 0x6e]
mov r12, qword [rsp + 0x190]
movzx eax, word [rsi + 0x14]
movsx edx, r14w
movsx ecx, ax
call fcn.1401507e0
mov word [rsi + 0x14], ax
jmp 0x140197c9d
cmp qword [rbx + 0x48], 0
jne 0x140197c6f
test byte [rbp + 0x40], 2
jne 0x140197c6f
test rcx, rcx
jne 0x140197cc7
test byte [rbx + 0x64], 4
jne 0x140197cc7
mov rax, qword [rsp + 0x48]
movsx edx, word [rbx + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x140197cc7
mov rax, qword [rsp + 0x60]
test byte [rax + 0x3c], 4
jne 0x140197cc7
cmp byte [0x14025a8e7], 0
je 0x140197cc7
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x140197cc7
mov eax, edx
mov byte [rsi + 0x11], 0
shl eax, 4
sub eax, edx
cdq
idiv ecx
lea eax, [rdi + rax + 1]
mov word [rsi + 0x14], ax
jmp 0x140197c9d
test rcx, rcx
je 0x140197f56
mov rax, qword [rsp + 0x60]
mov rdx, rbx
mov r8d, dword [rbp + 0x44]
mov rcx, qword [rax + 0x20]
call fcn.140164a40
test eax, eax
jne 0x14019816c
mov rcx, qword [rsp + 0x78]
jmp 0x140197c60
or dword [rsi + 0x38], eax
xor ecx, ecx
mov qword [rsp + 0x78], 0
jmp 0x140197c60
mov eax, edx
xor r15d, r15d
not eax
test al, 3
jne 0x140197c45
jmp 0x140197dcc
mov edi, 1
jmp 0x1401978f2
movzx eax, word [rsp + 0x40]
jmp 0x1401979d0
lea r9, [0x1403aecb0]
movsx rax, r8w
bsr rcx, rax
sub ecx, 3
shr rax, cl
lea ecx, [rcx + rcx*4]
and eax, 7
movzx eax, word [r9 + rax*2]
lea r15d, [rax + rcx*2 - 3]
jmp 0x14019793f
mov edi, r14d
mov r11, rbx
mov r10, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
and edi, ecx
jmp 0x1401978b3