Function at 0x140198530
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, 0x58
lea rax, [rsp + 0x44]
mov rbx, rcx
mov r14, rdx
mov rdi, r9
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp dword [rbx + 0x34], 0
jne 0x1401987ec
mov rax, qword [r14 + 0x58]
mov dword [rsp + 0x44], 0
movzx eax, word [rax + 4]
movzx ebp, ax
mov dword [rsp + 0x24], eax
mov rsi, rax
imul rbp, rbp, 0x78
lea r12, [r14 + rbp + 0x60]
mov qword [rsp + 0x48], r12
test r8d, r8d
je 0x140198747
mov rdx, rbp
add rdx, r14
mov r15, qword [rdx + 0xb0]
test r15, r15
je 0x140198747
mov eax, dword [rdx + 0x68]
and eax, 2
mov dword [rsp + 0x38], eax
jne 0x1401986ce
mov r13d, dword [rdx + 0x6c]
cmp dword [rbx + 0x34], 0
jne 0x1401985e9
cmp dword [r15 + 0x14], 0
jne 0x1401985e9
cmp rdi, qword [r15 + 0x20]
jle 0x1401985e9
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
mov r13d, dword [r15 + 0x1c]
call fcn.140192170
jmp 0x1401985c2
imul r8, rsi, 0x78
lea r15, [r14 + r8]
cmp dword [r15 + 0x6c], r13d
jge 0x1401986f6
mov rax, qword [r15 + 0x60]
cmp r13d, dword [rax + 8]
jle 0x140198611
mov dword [rbx + 0x34], 0x10b
jmp 0x140198711
mov rcx, qword [r15 + 0x78]
call fcn.1402067c0
lea r9d, [r13 - 1]
mov rdx, r12
mov rcx, rbx
mov qword [r15 + 0x78], 0
mov dword [r15 + 0x6c], r9d
call fcn.14019a9f0
cmp dword [rbx + 0x34], 0
jne 0x140198711
mov rdx, qword [r15 + 0x70]
test rdx, rdx
je 0x14019875e
mov rax, qword [rdx]
movzx ecx, byte [rax]
movzx r9d, byte [rax + 1]
shl ecx, 8
add ecx, r9d
movzx r9d, cx
cmp dword [rdx + 0xc], r9d
jle 0x14019866d
cmp r9d, 3
jg 0x140198679
mov dword [rbx + 0x34], 0x10b
jmp 0x140198726
movzx ecx, cx
lea rdx, [r14 + rbp + 0xc8]
mov dword [rsp + 0x3c], r9d
add rcx, rax
call fcn.1401d3320
mov r9d, dword [rsp + 0x3c]
mov rdx, r12
mov rcx, rbx
movzx eax, al
add r9d, eax
movsxd r9, r9d
mov qword [r15 + 0x80], r9
call fcn.14019a4e0
jmp 0x140198711
cmp dword [r15 + 0x14], 0
jne 0x1401986d4
cmp rdi, qword [r15 + 0x20]
jge 0x1401986d4
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call fcn.140192230
cmp dword [rbx + 0x34], 0
je 0x1401986b3
imul rax, rsi, 0x78
mov edx, dword [r15 + 0x1c]
add rax, r14
cmp edx, dword [rax + 0x6c]
jge 0x1401986f6
inc edx
mov rcx, rbx
mov dword [rax + 0x6c], edx
mov rdx, r12
call fcn.14019ae40
jmp 0x140198711
cmp dword [rbx + 0x34], 0
jne 0x140198711
imul rax, rsi, 0x78
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [r14 + rax + 0x88]
imul rax, rsi, 0x78
add rax, r14
cmp qword [rax + 0x70], 0
je 0x14019875e
cmp dword [rsp + 0x38], 0
jne 0x14019873c
imul rax, rsi, 0x78
cmp rdi, qword [r14 + rax + 0xc8]
jle 0x14019875e
cmp dword [rbx + 0x34], 0
je 0x1401986fc
jmp 0x14019875e
cmp rdi, qword [rax + 0xc8]
jge 0x14019875e
jmp 0x140198734
imul rsi, rsi, 0x78
mov r8, qword [rsp + 0x28]
mov rdx, r12
mov rcx, rbx
call qword [r14 + rsi + 0x88]
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x10], 0
jne 0x1401987af
mov r8d, dword [rsp + 0x24]
mov rdx, r14
mov rcx, rbx
mov r9d, 1
call fcn.140197680
mov rcx, r14
call fcn.1401988c0
mov rax, qword [r14 + 0x58]
movzx edx, word [rax + 4]
mov rax, rdx
imul rdx, rdx, 0x78
imul rax, rax, 0x78
lea rdx, [r14 + rdx + 0x60]
cmp qword [r14 + rax + 0x70], 0
mov qword [rsp + 0x48], rdx
jne 0x1401987cb
jmp 0x1401987ec
cmp dword [rsp + 0x44], 0
jne 0x14019876a
mov r8, qword [rsp + 0x30]
mov edx, dword [rsp + 0x24]
mov rcx, r14
call fcn.140197560
test eax, eax
jne 0x14019876a
cmp byte [r14 + 0x48], 0
mov rdx, qword [rsp + 0x48]
je 0x1401987e4
mov r8d, dword [rdx + 0x70]
test r8d, r8d
je 0x14019855d
mov rcx, r14
call qword [r14 + 0x38]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret