Function at 0x140195710
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, 0x118
mov r12d, 7
mov rax, qword [rcx]
mov rax, qword [rax]
mov word [rsp + 0x58], r9w
mov r13, rcx
mov r14, rdx
mov r15, r8
mov qword [rsp + 0x90], rax
mov rax, qword [rax]
mov dword [rsp + 0x9c], r9d
cmp byte [rax + 0x67], 0
mov qword [rsp + 0x78], rax
jne 0x140195b4b
mov rbx, qword [rcx + 0x10]
movzx esi, word [rbx + 0x1a]
mov eax, dword [rbx + 0x38]
movzx edi, word [rbx + 0x18]
mov word [rsp + 0x5a], si
movzx esi, word [rbx + 0x1c]
mov dword [rsp + 0x54], eax
and eax, 0x20
mov r9d, edi
mov word [rsp + 0x98], si
mov rsi, qword [rbx + 0x16]
cmp eax, 1
sbb eax, eax
mov word [rsp + 0x46], di
mov qword [rsp + 0x88], rsi
movzx esi, word [rbx + 0x3e]
and eax, 0x1a7
add eax, 0x18
mov dword [rsp + 0x6c], edi
lea rdi, [rsp + 0xa0]
mov word [rsp + 0x9a], si
mov rsi, qword [rbx + 0x38]
mov edx, eax
and edx, 0xffffffc3
test byte [r8 + 0x64], 4
mov qword [rsp + 0x80], rsi
movzx esi, word [rbx + 0x3c]
cmovne eax, edx
mov rdx, qword [rcx + 8]
mov rcx, rdi
mov word [rsp + 0x52], si
mov rsi, qword [rbx]
mov qword [rsp + 0x48], rsi
movzx esi, word [rbx + 0x16]
mov qword [rsp + 0x28], r8
mov r8d, dword [r14 + 0x44]
mov dword [rsp + 0x20], eax
mov word [rsp + 0x44], si
call fcn.140194050
xor r8d, r8d
xor r9d, r9d
mov rsi, rax
mov rax, qword [r15 + 0x10]
mov word [rbx + 0x12], r8w
mov word [rsp + 0x50], r9w
movsx rax, word [rax]
mov dword [rsp + 0x68], eax
mov rcx, rax
cmp ax, 0xa
jg 0x140196010
test rsi, rsi
je 0x140196090
mov qword [rsp + 0x60], 0
movzx ebp, word [rsp + 0x46]
mov qword [rsp + 0x70], 0
lea rax, [rbp + rbp]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x52]
add eax, 1
mov dword [rsp + 0x5c], eax
nop
movzx r12d, word [rsi + 0x14]
cmp r12w, 0x100
je 0x140195883
test byte [rsi + 0x12], 0x80
je 0x1401958a5
mov rax, qword [r15 + 8]
mov rcx, qword [rsp + 0x38]
movsx rdx, word [rax + rcx]
mov rax, rdx
test edx, edx
jns 0x140195b68
cmp edx, 0xffffffff
je 0x140195b88
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
test rdx, r8
jne 0x140195b88
cmp r12w, 0x10
sete bpl
and bpl, byte [rsi + 0x13]
jne 0x140195b8d
test byte [r14 + 0x3c], 0x58
je 0x1401958ea
mov rax, qword [rsi]
test byte [rax + 4], 3
je 0x140195b88
mov ecx, dword [r14 + 0x44]
cmp dword [rax + 0x34], ecx
jne 0x140195b88
cmp byte [r15 + 0x62], 0
movzx eax, byte [r13 + 0x20]
je 0x140195908
movzx ecx, word [r15 + 0x5e]
sub ecx, 1
cmp dword [rsp + 0x6c], ecx
je 0x140195e58
or eax, 1
movzx r9d, word [rsp + 0x52]
mov ecx, dword [rsp + 0x5c]
mov byte [r13 + 0x20], al
mov eax, dword [rsp + 0x54]
mov word [rbx + 0x3c], r9w
mov dword [rbx + 0x38], eax
movzx eax, word [rsp + 0x46]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x5a]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x98]
mov word [rbx + 0x1c], ax
movzx eax, word [rbx + 0x40]
cmp ecx, eax
jle 0x140195970
mov r8d, ecx
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call fcn.140174790
test eax, eax
jne 0x140196090
movzx r9d, word [rbx + 0x3c]
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
mov rax, qword [rbx + 0x48]
or rdx, qword [rsp + 0x48]
not r8
lea ecx, [r9 + 1]
and rdx, r8
mov ebp, r12d
mov word [rbx + 0x3c], cx
mov qword [rax + r9*8], rsi
mov qword [rbx], rdx
and bp, 1
je 0x140195bb8
movzx r9d, byte [r15 + 0x64]
mov r8, qword [rsi]
shr r9b, 7
cmp word [rsp + 0x50], 9
setg dl
and r9d, edx
test byte [r8 + 5], 0x10
jne 0x140195e60
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x1401959d2
movsxd rcx, dword [rax]
test ecx, ecx
jne 0x140195e38
test r9b, r9b
jne 0x1401960a0
mov r8d, dword [rbx + 0x38]
xor ebp, ebp
mov r10d, r8d
or r10d, 4
mov dword [rbx + 0x38], r10d
test r10b, 2
jne 0x140195c38
movzx eax, word [rbx + 0x18]
movzx edx, word [rsi + 0x10]
movzx r11d, word [rbx + 0x16]
add eax, 1
mov word [rbx + 0x18], ax
test dx, dx
jle 0x140195ce0
mov rdx, qword [r15 + 0x10]
movzx eax, ax
add r11w, word [rdx + rax*2]
sub r11w, word [rdx + rax*2 - 2]
test r12w, 0x100
je 0x140195a31
add r11d, 0xa
mov word [rbx + 0x16], r11w
mov esi, r11d
movsx ecx, word [r15 + 0x5c]
mov rdx, qword [r14 + 0x20]
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, word [rdx + 0x3c]
cdq
idiv ecx
movsx ecx, word [rsp + 0x50]
lea eax, [r11 + rax + 1]
movsx edx, ax
call fcn.14015e260
and r10d, 0x140
jne 0x140195a7a
lea edx, [r11 + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.14015e260
add bp, word [rsp + 0x58]
mov rcx, qword [r13 + 8]
mov rdx, rbx
add eax, ebp
add r11d, ebp
mov r8d, dword [rsp + 0x68]
mov word [rbx + 0x14], ax
mov word [rbx + 0x16], r11w
call fcn.140159750
mov rdx, rbx
mov rcx, r13
call fcn.140174810
mov r12d, eax
mov eax, dword [rbx + 0x38]
test al, 2
cmovne si, word [rsp + 0x44]
mov word [rbx + 0x16], si
test al, 0x10
jne 0x140195af0
movzx eax, word [rbx + 0x18]
cmp ax, word [r15 + 0x60]
jae 0x140195af0
cmp ax, word [r15 + 0x5e]
jb 0x140195add
movzx eax, byte [r15 + 0x64]
and eax, 3
cmp al, 2
je 0x140195af0
movsx r9d, bp
mov r8, r15
mov rdx, r14
mov rcx, r13
call fcn.140195710
nop
movzx eax, word [rsp + 0x44]
test r12d, r12d
mov rcx, rdi
sete bpl
mov word [rbx + 0x16], ax
call fcn.140193c40
mov rsi, rax
test rax, rax
jne 0x140195ba4
nop dword [rax]
mov rax, qword [rsp + 0x48]
movzx edi, word [rsp + 0x9a]
mov qword [rbx], rax
mov rax, qword [rsp + 0x88]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x38], rax
cmp word [rsp + 0x46], di
je 0x140195ec8
mov eax, r12d
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r15 + 0x18]
lea rax, [rax + rax*2]
mov rcx, qword [rdx + 8]
lea rax, [rcx + rax*8]
test byte [rax + 8], 0xf
je 0x1401958a5
nop word [rax + rax]
mov ebp, 1
mov rcx, rdi
xor r12d, r12d
call fcn.140193c40
mov rsi, rax
test rax, rax
je 0x140195b18
test bpl, bpl
jne 0x140195870
jmp 0x140195b18
mov eax, dword [rbx + 0x38]
test r12b, 0x82
je 0x140195d10
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + 0x38]
mov r10d, eax
or r10d, 1
movsx edx, word [rdx + rcx]
mov dword [rbx + 0x38], r10d
cmp edx, 0xffffffff
je 0x140195e08
test edx, edx
js 0x140195e13
cmp word [rsp + 0x58], 0
jne 0x140195e13
movzx edx, word [r15 + 0x5e]
mov ecx, edx
sub edx, 1
cmp dword [rsp + 0x6c], edx
jne 0x140195e13
test byte [r15 + 0x64], 8
jne 0x140195e08
cmp cx, 1
je 0x140195dec
or eax, 0x10001
mov dword [rbx + 0x38], eax
mov r10d, eax
jmp 0x140195e13
movsx r11d, word [rbx + 0x16]
xor edx, edx
cmp qword [rsp + 0x60], 0
mov eax, r11d
je 0x140195c70
mov rsi, qword [rsp + 0x60]
movzx edx, word [rsi + 0x10]
test dx, dx
jle 0x140195de0
mov rsi, qword [rsp + 0x60]
mov edx, 1
test byte [rsi + 0x12], 0x80
je 0x140196028
cmp qword [rsp + 0x70], 0
je 0x140195cba
mov rsi, qword [rsp + 0x70]
movzx ecx, word [rsi + 0x10]
test cx, cx
jle 0x140195dd0
mov rsi, qword [rsp + 0x70]
lea r9d, [rax - 0x14]
test byte [rsi + 0x12], 0x80
cmove eax, r9d
mov rsi, qword [rsp + 0x60]
add edx, 1
test rsi, rsi
je 0x140195cba
cmp word [rsi + 0x10], 0
jle 0x140195cba
lea r9d, [rax - 0x14]
test cx, cx
cmovg eax, r9d
sub r11d, edx
cmp ax, 0xa
mov edx, 0xa
cmovl eax, edx
cwde
cmp eax, r11d
cmovle r11d, eax
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x140195a39
mov rcx, qword [r15 + 8]
mov rsi, qword [rsp + 0x38]
cmp word [rcx + rsi], 0
js 0x140195a13
add r11d, edx
sub r11d, ebp
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x140195a39
mov ebp, r12d
and bp, 0x100
je 0x140195d30
or eax, 8
xor ebp, ebp
mov dword [rbx + 0x38], eax
mov r10d, eax
jmp 0x1401959ec
mov edx, dword [r14 + 0x44]
test r12b, 0x24
je 0x140196030
or eax, 0x22
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, r15
mov dword [rbx + 0x38], eax
mov qword [rsp + 0x20], rsi
call fcn.14018b360
mov word [rbx + 0x1a], ax
test byte [rsi + 0x13], 1
je 0x1401960f1
movzx r8d, word [rbx + 0x3c]
lea rax, [rsi + 0x38]
movzx edx, word [rbx + 0x40]
mov qword [rsp + 0x70], rax
mov rax, r8
add r8d, 1
cmp r8d, edx
jg 0x140196131
lea ecx, [rax + 1]
mov r10d, dword [rbx + 0x38]
mov rdx, qword [rbx + 0x48]
mov word [rbx + 0x3c], cx
mov rcx, qword [rsp + 0x70]
or r10d, 0x10
mov qword [rdx + rax*8], rcx
mov eax, 1
mov dword [rbx + 0x38], r10d
mov word [rbx + 0x1c], ax
test r10b, 2
jne 0x14019611f
mov qword [rsp + 0x60], rsi
jmp 0x1401959f6
add eax, ecx
jmp 0x140195c9b
add eax, edx
mov edx, 1
jmp 0x140195c70
cmp byte [r15 + 0x62], 0
je 0x140195c23
cmp r12w, 2
jne 0x140195c23
nop word [rax + rax]
or eax, 0x1001
mov dword [rbx + 0x38], eax
mov r10d, eax
cmp byte [rsp + 0xc9], 1
jbe 0x1401959ec
or r10d, 0x200000
mov dword [rbx + 0x38], r10d
jmp 0x1401959ec
call fcn.14015cb10
movsx rcx, ax
mov ebp, ecx
test r9b, r9b
jne 0x140195e9f
mov r8d, dword [rbx + 0x38]
jmp 0x1401959e1
or eax, 2
jmp 0x14019590b
cmp cx, 1
jbe 0x14019614f
movzx ecx, cx
xor ebp, ebp
lea edx, [rcx - 2]
mov ecx, 0x2e
lea r11, [rax + rdx*8 + 8]
nop dword [rax]
mov rdx, qword [rax]
test rdx, rdx
je 0x140195e8f
cmp qword [rdx], r8
cmove rcx, rbp
add rax, 8
cmp r11, rax
jne 0x140195e80
mov ebp, ecx
test r9b, r9b
je 0x140195e48
mov rax, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x38]
movzx r9d, word [rax + rdx]
xor eax, eax
cmp ecx, 0xa
jle 0x1401960b2
call fcn.14015cb10
sub eax, 0x21
jmp 0x1401960b2
mov eax, dword [rsp + 0x6c]
movzx edx, word [r15 + 0x5e]
add eax, 1
cmp eax, edx
jge 0x140195b4b
movzx edi, word [rsp + 0x52]
cmp word [rsp + 0x46], di
jne 0x140195b4b
movzx eax, byte [r15 + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x140195b4b
mov rcx, qword [rsp + 0x78]
test byte [rcx + 0x61], 0x40
jne 0x140195b4b
movzx edx, word [rsp + 0x46]
mov rax, qword [r15 + 0x10]
lea rsi, [rdx + rdx + 2]
lea r9, [rax + rsi]
cmp word [r9], 0x29
jle 0x140195b4b
movzx r8d, di
movzx edx, word [rbx + 0x40]
add r8d, 1
cmp r8d, edx
jle 0x14019617f
mov rdx, rbx
call fcn.140174790
mov r12d, eax
test eax, eax
jne 0x140195b4b
movzx eax, word [rbx + 0x3c]
movzx ecx, word [rbx + 0x18]
movzx edx, word [rbx + 0x3e]
mov r8d, dword [rbx + 0x38]
mov word [rsp + 0x52], ax
mov rax, qword [r15 + 0x10]
movzx r10d, word [rbx + 0x16]
lea r9, [rax + rsi]
movzx edi, word [rsp + 0x52]
add ecx, 1
add edx, 1
xor r12d, r12d
mov word [rbx + 0x18], cx
mov rcx, qword [rbx + 0x48]
or r8d, 0x8000
mov word [rbx + 0x3e], dx
lea edx, [rdi + 1]
mov word [rbx + 0x3c], dx
movzx edx, di
movzx eax, word [rax + rsi - 2]
mov qword [rcx + rdx*8], 0
movzx ecx, word [r9]
movzx edi, word [rsp + 0x9c]
mov dword [rbx + 0x38], r8d
mov r8, r15
lea edx, [r10 + rcx]
sub edx, eax
lea eax, [rax + rdi + 5]
mov word [rbx + 0x16], dx
sub eax, ecx
mov rdx, r14
mov rcx, r13
movsx r9d, ax
call fcn.140195710
movzx eax, word [rsp + 0x44]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x46]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x9a]
mov word [rbx + 0x3e], ax
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x38], eax
jmp 0x140195b4b
call fcn.14015cb10
sub eax, 0x21
mov word [rsp + 0x50], ax
jmp 0x140195839
sub eax, 0x14
jmp 0x140195c70
or eax, 0x12
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, r15
mov dword [rbx + 0x38], eax
mov qword [rsp + 0x20], rsi
call fcn.14018b360
mov r10d, dword [rbx + 0x38]
mov word [rbx + 0x1c], ax
test r10b, 0x20
jne 0x140196103
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x60], 0
test r10b, 2
je 0x1401959f6
movsx r11d, word [rbx + 0x16]
xor edx, edx
mov eax, r11d
jmp 0x140195c78
xor r12d, r12d
jmp 0x140195b18
mov rax, qword [r15 + 0x10]
mov rcx, qword [rsp + 0x38]
xor ebp, ebp
movzx r9d, word [rax + rcx]
xor eax, eax
sub ax, word [rsp + 0x50]
lea r9d, [r9 + rax + 0xa]
cmp r9w, bp
jns 0x140195e48
cmp word [rsp + 0x58], 1
jg 0x140195b88
mov rax, qword [rsp + 0x78]
test byte [rax + 0x62], 2
jne 0x140195b88
mov r8d, dword [rbx + 0x38]
or r8d, 0x100000
jmp 0x1401959e1
mov qword [rsp + 0x70], 0
mov r10d, dword [rbx + 0x38]
jmp 0x140195db7
movzx edx, word [rbx + 0x3c]
mov rax, qword [rbx + 0x48]
mov qword [rsp + 0x70], rsi
mov rax, qword [rax + rdx*8 - 0x10]
mov qword [rsp + 0x60], rax
jmp 0x1401959ec
movsx r11d, word [rbx + 0x16]
mov qword [rsp + 0x60], rsi
mov eax, r11d
jmp 0x140195c4a
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call fcn.140174790
test eax, eax
jne 0x140196090
movzx eax, word [rbx + 0x3c]
jmp 0x140195d8e
test r9b, r9b
jne 0x140196162
mov r8d, dword [rbx + 0x38]
mov ebp, 0x2e
jmp 0x1401959e1
mov rcx, qword [rsp + 0x38]
mov rax, qword [r15 + 0x10]
mov ebp, 0x2e
movzx r9d, word [rax + rcx]
mov ecx, 0x2e
jmp 0x140195eb8
movzx ecx, word [rsp + 0x46]
movzx r10d, word [rsp + 0x44]
mov r8d, dword [rsp + 0x54]
mov edx, ecx
jmp 0x140195f72