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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x30], r9d
test r9d, r9d
je 0x14002c80d
test rdi, rdi
je 0x14002c814
xor eax, eax
lea rcx, [rsp + 0x70]
xor edx, edx
cmp dword [rdi + 0x30], ebx
setbe dl
lea r8, [rdi + 0x20]
cmovbe rcx, r8
add eax, edx
mov rdi, qword [rdi + 0x20]
mov qword [rcx], rdi
test rdi, rdi
jne 0x14002c7e8
mov rdi, qword [rsp + 0x70]
jmp 0x14002c818
mov eax, 1
jmp 0x14002c818
xor edi, edi
xor eax, eax
add dword [rsi + 0xf8], eax
cmp dword [rdi + 0x30], 1
jne 0x14002c82c
mov rcx, rdi
call fcn.14002cf75
movzx r15d, byte [rsi + 0xf]
mov eax, dword [rsi + 0xbc]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x90], rsi
mov r14, qword [rsi + 0x120]
mov rax, qword [r14 + 0x30]
mov rsi, qword [rax]
lea rcx, [r14 + 0x48]
mov r8d, 0x30
mov rdx, rsi
call fcn.1402019e0
test eax, eax
mov dword [rsp + 0x34], ebx
je 0x14002c873
mov ebp, dword [rsi + 0x10]
inc ebp
jmp 0x14002c875
xor ebp, ebp
cmp word [r14 + 0x3c], 0
je 0x14002c9d9
mov r12d, dword [r14 + 0x58]
test r12d, r12d
je 0x14002ca34
mov qword [rsp + 0x98], r14
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb0], r15d
mov rax, qword [rsp + 0x38]
mov dword [rsp + 0xb4], eax
mov ebx, r12d
add eax, 0x18
cdqe
mov qword [rsp + 0x48], rax
imul rbx, rax
add rbx, 0x20
xor r13d, r13d
test rdi, rdi
mov dword [rsp + 0x2c], r15d
je 0x14002cb57
lea r15, [rsp + 0x98]
mov rsi, rdi
xor eax, eax
mov qword [rsp + 0x40], rax
test ebp, ebp
je 0x14002c93a
cmp dword [rsp + 0x30], 0
je 0x14002c918
cmp qword [rsi + 0x20], 0
jne 0x14002c918
inc r12d
xor eax, eax
jmp 0x14002c948
mov dword [rsp + 0x50], 0
mov edx, dword [rsi + 0x30]
mov rcx, r14
lea r8, [rsp + 0x50]
call fcn.140024b68
mov r9d, dword [rsp + 0x50]
cmp r9d, ebp
jae 0x14002c99c
inc r12d
cmp dword [rsp + 0x30], 0
je 0x14002c959
mov rax, qword [rsi + 0x20]
test rax, rax
mov r9d, 0
cmove r9d, dword [rsp + 0x34]
jmp 0x14002c95c
xor r9d, r9d
mov rdx, qword [rsi + 8]
mov r8d, dword [rsi + 0x30]
mov qword [rsp + 0x20], rbx
mov rcx, r15
call fcn.14002d847
test eax, eax
jne 0x14002cf1b
add rbx, qword [rsp + 0x48]
or byte [rsi + 0x34], 0x40
mov rax, rsi
mov qword [rsp + 0x40], rsi
mov rsi, qword [rsi + 0x20]
test rsi, rsi
jne 0x14002c8ff
jmp 0x14002cb5e
mov eax, dword [r14 + 0x7c]
dec eax
cmp eax, r9d
jb 0x14002c9ab
mov dword [r14 + 0x7c], r9d
dec r9d
imul r9, qword [rsp + 0x48]
add r9, 0x38
mov rdx, qword [rsi + 8]
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov r8, qword [rsp + 0x38]
call qword [rax + 0x18]
test eax, eax
jne 0x14002cf1b
and byte [rsi + 0x34], 0xbf
jmp 0x14002c98a
cmp dword [rsi + 0x60], 0
je 0x14002ccc2
lea rdx, [rsp + 0x50]
mov ecx, 4
call fcn.140024320
cmp byte [r14 + 0x3f], 0
je 0x14002cc95
mov edx, dword [rsp + 0x50]
mov rcx, r14
call fcn.14002638f
cmp byte [r14 + 0x3f], 0
jne 0x14002ccc2
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov edx, 4
mov r8d, 4
mov r9d, 9
call qword [rax + 0x70]
jmp 0x14002ccc2
movabs rax, 0x18e22d0082067f37
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x38]
mov eax, ecx
shr eax, 0x18
mov byte [rsp + 0x58], al
mov eax, ecx
shr eax, 0x10
mov byte [rsp + 0x59], al
mov byte [rsp + 0x5a], ch
mov byte [rsp + 0x5b], cl
mov eax, dword [r14 + 0x88]
mov ecx, eax
bswap ecx
mov dword [rsp + 0x5c], ecx
test eax, eax
jne 0x14002ca83
lea rdx, [r14 + 0x68]
mov ecx, 8
call fcn.140024320
mov rax, qword [r14 + 0x68]
lea rdx, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xor eax, eax
lea r8, [rsp + 0x68]
xor ecx, ecx
add ecx, eax
add ecx, dword [rdx]
add eax, dword [rdx + 4]
add eax, ecx
add rdx, 8
cmp rdx, r8
jb 0x14002ca99
mov r8d, ecx
shr r8d, 0x18
lea rdx, [rsp + 0x50]
mov byte [rdx + 0x18], r8b
mov r8d, ecx
shr r8d, 0x10
mov byte [rdx + 0x19], r8b
mov byte [rsp + 0x6a], ch
mov byte [rdx + 0x1b], cl
mov r8d, eax
shr r8d, 0x18
mov byte [rdx + 0x1c], r8b
mov r8d, eax
shr r8d, 0x10
mov byte [rdx + 0x1d], r8b
mov byte [rsp + 0x6e], ah
mov byte [rdx + 0x1f], al
mov r8, qword [rsp + 0x38]
mov dword [r14 + 0x38], r8d
mov byte [r14 + 0x55], 0
mov dword [r14 + 0x60], ecx
mov dword [r14 + 0x64], eax
mov byte [r14 + 0x43], 1
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov r8d, 0x20
xor r9d, r9d
call qword [rax + 0x18]
mov r13d, eax
test eax, eax
jne 0x14002cf5e
cmp byte [r14 + 0x44], 0
je 0x14002c88e
mov edx, r15d
shr edx, 2
and edx, 3
je 0x14002c88e
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r13d, eax
test eax, eax
jne 0x14002cf5e
jmp 0x14002c88e
xor eax, eax
mov qword [rsp + 0x40], rax
mov ebp, 0
cmp dword [rsp + 0x30], 0
je 0x14002ce68
cmp dword [r14 + 0x7c], 0
mov edx, dword [rsp + 0x2c]
je 0x14002cd6d
movsxd rbp, dword [r14 + 0x38]
add rbp, 0x18
mov ecx, ebp
call fcn.1400222d0
test rax, rax
je 0x14002cd27
mov r15, rax
mov eax, dword [r14 + 0x7c]
lea ecx, [rax - 2]
imul rcx, rbp
add rcx, 0x30
cmp eax, 1
mov r9d, 0x18
cmovne r9, rcx
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov rdx, r15
mov r8d, 8
call qword [rax + 0x10]
mov r13d, eax
mov eax, dword [r15]
bswap eax
mov dword [r14 + 0x60], eax
mov eax, dword [r15 + 4]
bswap eax
mov dword [r14 + 0x64], eax
mov esi, dword [r14 + 0x7c]
mov dword [r14 + 0x7c], 0
test r13d, r13d
jne 0x14002cd35
mov qword [rsp + 0x88], rbp
cmp esi, r12d
ja 0x14002cd35
mov rax, r15
add rax, 0x18
mov qword [rsp + 0x80], rax
inc esi
lea ebp, [rsi - 2]
mov r8, qword [rsp + 0x88]
imul rbp, r8
add rbp, 0x20
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov rdx, r15
mov r9, rbp
call qword [rax + 0x10]
test eax, eax
jne 0x14002cd32
mov edx, dword [r15]
mov r8d, dword [r15 + 4]
bswap edx
bswap r8d
lea r13, [rsp + 0x50]
mov qword [rsp + 0x20], r13
mov rcx, r14
mov r9, qword [rsp + 0x80]
call fcn.14002d8b2
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov rdx, r13
mov r8d, 0x18
mov r9, rbp
call qword [rax + 0x18]
mov r13d, eax
test eax, eax
jne 0x14002cd35
lea eax, [rsi + 1]
cmp esi, r12d
mov esi, eax
jbe 0x14002cc14
jmp 0x14002cd35
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov edx, 4
mov r8d, 4
mov r9d, 0xa
call qword [rax + 0x70]
cmp eax, 5
je 0x14002ccc2
mov r13d, eax
test eax, eax
je 0x14002c9fd
jmp 0x14002cd19
mov ebx, r15d
cmp byte [r14 + 0x3f], 0
jne 0x14002cce7
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov edx, 3
mov r8d, 1
mov r9d, 5
call qword [rax + 0x70]
mov word [r14 + 0x3c], 0xffff
mov esi, 1
lea r15, [rsp + 0x50]
mov rcx, r14
mov rdx, r15
mov r8d, 1
mov r9d, esi
call fcn.14002d2b0
inc esi
cmp eax, 0xffffffff
je 0x14002ccf8
mov r13d, eax
mov r15d, ebx
test r13d, r13d
jne 0x14002cf5e
jmp 0x14002c881
mov r13d, 7
jmp 0x14002cf5e
mov r13d, eax
cmp dword [0x1402a68b0], 0
je 0x14002cd57
mov rcx, r15
call qword [0x1402a68e8]
cdqe
sub qword [0x1402c6188], rax
dec qword [0x1402c61d0]
mov rcx, r15
call qword [0x1402a68d8]
test r13d, r13d
mov edx, dword [rsp + 0x2c]
jne 0x14002cf5e
and edx, 3
je 0x14002cda6
cmp byte [r14 + 0x45], 0
je 0x14002cdb0
mov rcx, qword [r14 + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
test rax, rax
mov dword [rsp + 0x2c], edx
je 0x14002cdb4
call rax
mov edx, 0x10000
cmp eax, edx
cmovl edx, eax
cmp eax, 0x20
mov ecx, 0x200
cmovge ecx, edx
jmp 0x14002cdb9
xor r13d, r13d
xor ebp, ebp
jmp 0x14002ce34
xor ebp, ebp
jmp 0x14002ce26
mov ecx, 0x1000
lea r15, [rbx + rcx]
dec r15
mov rax, r15
cqo
idiv rcx
sub r15, rdx
mov qword [rsp + 0xa8], r15
xor r13d, r13d
mov ebp, 0
cmp rbx, r15
jge 0x14002ce1d
xor ebp, ebp
mov rsi, rbx
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 8]
mov r8d, dword [rax + 0x30]
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x98]
mov r9d, dword [rsp + 0x34]
call fcn.14002d847
test eax, eax
jne 0x14002cf1b
add rsi, qword [rsp + 0x48]
inc ebp
cmp rsi, r15
jl 0x14002cde5
cmp r15, rbx
mov edx, dword [rsp + 0x2c]
jne 0x14002ce34
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r13d, eax
cmp byte [r14 + 0x43], 0
je 0x14002ce68
mov rax, qword [r14 + 0x20]
test rax, rax
js 0x14002ce68
add r12d, ebp
imul r12, qword [rsp + 0x48]
add r12, 0x20
cmp r12, rax
cmovle r12, rax
mov rcx, r14
mov rdx, r12
call fcn.140025bb9
mov byte [r14 + 0x43], 0
mov r15d, dword [r14 + 0x58]
test rdi, rdi
je 0x14002cea5
test r13d, r13d
jne 0x14002cea5
mov rsi, rdi
xor r13d, r13d
test byte [rsi + 0x34], 0x40
je 0x14002ce97
inc r15d
mov r8d, dword [rsi + 0x30]
mov rcx, r14
mov edx, r15d
call fcn.1400266b7
mov r13d, eax
mov rsi, qword [rsi + 0x20]
test rsi, rsi
je 0x14002cea5
test r13d, r13d
je 0x14002ce79
test r13d, r13d
sete al
jne 0x14002cedc
test ebp, ebp
jle 0x14002cedc
mov rsi, qword [rsp + 0x40]
inc r15d
mov r8d, dword [rsi + 0x30]
mov rcx, r14
mov edx, r15d
call fcn.1400266b7
mov r13d, eax
test eax, eax
sete al
jne 0x14002cedc
lea ecx, [rbp - 1]
cmp ebp, 1
mov ebp, ecx
ja 0x14002ceb6
test al, al
je 0x14002cf20
mov rcx, qword [rsp + 0x38]
mov eax, ecx
and eax, 0xff00
shr ecx, 0x10
or ecx, eax
mov word [r14 + 0x56], cx
mov dword [r14 + 0x58], r15d
cmp dword [rsp + 0x30], 0
je 0x14002cf25
inc dword [r14 + 0x50]
mov eax, dword [rsp + 0x34]
mov dword [r14 + 0x5c], eax
mov rcx, r14
call fcn.1400263fa
mov dword [r14 + 0x18], r15d
jmp 0x14002cf25
mov r13d, eax
jmp 0x14002cf5e
test r13d, r13d
jne 0x14002cf5e
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsi + 0x70]
xor r13d, r13d
test rcx, rcx
je 0x14002cf5e
test rdi, rdi
jne 0x14002cf44
jmp 0x14002cf5e
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x14002cf55
mov edx, dword [rdi + 0x30]
mov r8, qword [rdi + 8]
call fcn.1400238bd
mov rdi, qword [rdi + 0x20]
test rdi, rdi
jne 0x14002cf40
mov eax, r13d
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret