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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x138
mov qword [rsp + 0x80], 0xfffffffffffffffe
cmp qword [rsp + 0x158], 0
je 0x1401978a7
cmp dword [rsp + 0x160], 0x10
jl 0x1401978a7
mov eax, dword [rsp + 0x160]
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
test eax, eax
jne 0x1401978a7
cmp qword [rsp + 0x168], 0
jne 0x1401978ae
xor al, al
jmp 0x140197c56
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x150]
movzx eax, byte [rax]
test eax, eax
je 0x140197abd
mov rax, qword [rsp + 0x150]
add rax, 0x2c8
mov r9d, 8
mov r8, qword [rsp + 0x158]
mov edx, 0x10
mov rcx, rax
call fcn.140197708
mov eax, dword [rsp + 0x24]
add eax, 8
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.14000423c
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.1400062e4
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x150]
add rax, 0x2c8
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.140007694
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140003bb0
test eax, eax
jne 0x14019798d
mov dword [rsp + 0x40], 1
jmp 0x140197995
mov dword [rsp + 0x40], 0
mov al, byte [rsp + 0x40]
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x28]
test eax, eax
jne 0x1401979b0
mov dword [rsp + 0x44], 1
jmp 0x1401979b8
mov dword [rsp + 0x44], 0
mov al, byte [rsp + 0x44]
mov byte [rsp + 0x29], al
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xc8]
call fcn.140007104
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xe8]
call fcn.140007104
nop
lea rcx, [rsp + 0x88]
call fcn.1400041c0
nop
movzx eax, byte [rsp + 0x29]
test eax, eax
je 0x140197a04
xor al, al
jmp 0x140197c56
mov rax, qword [rsp + 0x158]
add rax, 8
mov rcx, qword [rsp + 0x150]
add rcx, 0x2c8
mov r9d, 8
mov r8, rax
mov edx, 0x10
call fcn.140197708
mov eax, dword [rsp + 0x24]
add eax, 8
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x150]
add rax, 0x2c8
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140007694
nop
lea rax, [rsp + 0x108]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call fcn.140005664
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x150]
add rax, 0xa0
mov r8, qword [rsp + 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x150]
call fcn.140197c68
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xa8]
call fcn.140007104
nop
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x160]
cmp dword [rsp + 0x24], eax
jge 0x140197c46
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x158]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x150]
add rcx, 0x2c8
mov r9d, 0x10
mov r8, rax
mov edx, 0x10
call fcn.140197708
mov eax, dword [rsp + 0x24]
add eax, 0x10
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x150]
add rax, 0x1d4
mov rcx, qword [rsp + 0x150]
add rcx, 0x2d8
mov rdx, qword [rsp + 0x150]
add rdx, 0x2c8
mov qword [rsp + 0x78], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x78]
mov rcx, rax
call fcn.140195d24
mov dword [rsp + 0x3c], 0x10
mov eax, dword [rsp + 0x160]
cmp dword [rsp + 0x24], eax
jne 0x140197bff
mov eax, 1
imul rax, rax, 0xf
mov rcx, qword [rsp + 0x150]
movsx eax, byte [rcx + rax + 0x2d8]
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x20], 1
mov dword [rsp + 0x34], 0x10
mov dword [rsp + 0x30], 0
jmp 0x140197bb1
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jge 0x140197be9
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x150]
movsx eax, byte [rcx + rax + 0x2d8]
cmp eax, dword [rsp + 0x38]
je 0x140197be7
mov byte [rsp + 0x20], 0
jmp 0x140197be9
jmp 0x140197ba7
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140197bff
mov eax, 0x10
sub eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x150]
add rcx, 0x2d8
movsxd rdx, dword [rsp + 0x2c]
mov rdi, qword [rsp + 0x168]
add rdi, rdx
mov rdx, rdi
mov rdi, rdx
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x140197ac5
mov rax, qword [rsp + 0x170]
mov ecx, dword [rsp + 0x2c]
mov dword [rax], ecx
mov al, 1
add rsp, 0x138
pop rdi
pop rsi
ret