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

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], r13
mov r13d, edx
mov qword [rsp + 0x48], r14
mov r14, rcx
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1401ce68e
call qword [0x1402da568]
mov rcx, qword [r14 + 0x28]
call fcn.14019d020
mov rax, qword [r14]
test rax, rax
je 0x1401ce6ae
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1401ce6ae
call qword [0x1402da568]
mov ebx, dword [r14 + 0x30]
test ebx, ebx
je 0x1401ce6c2
lea eax, [rbx - 5]
cmp eax, 1
ja 0x1401cec7c
mov rax, qword [r14 + 0x28]
mov r8, qword [r14 + 8]
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x68], rsi
mov rcx, qword [rax + 8]
mov rax, qword [r8 + 8]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x40], r15
xor r15d, r15d
mov rdi, qword [rcx]
mov rdx, qword [rax]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x90], r15d
cmp qword [r14], r15
je 0x1401ce718
cmp byte [rcx + 0x2e], 2
jne 0x1401ce718
lea ebx, [r15 + 5]
jmp 0x1401ce8e0
mov ebx, r15d
cmp dword [r14 + 0x14], ebx
jne 0x1401ce750
mov edx, 2
mov rcx, r8
call fcn.14019bff0
mov ebx, eax
test eax, eax
jne 0x1401ce8e0
mov rcx, qword [r14 + 8]
lea r8, [r14 + 0x10]
lea edx, [rax + 1]
mov dword [r14 + 0x14], 1
call fcn.14019d390
mov rbp, qword [r14 + 0x28]
cmp byte [rbp + 0x10], r15b
jne 0x1401ce8e0
mov rdi, qword [rbp + 8]
mov rcx, rbp
mov ebx, r15d
call fcn.14019d020
movzx eax, byte [rbp + 0x10]
dec al
cmp al, 1
jbe 0x1401ce8ad
cmp byte [rdi + 0x81], bl
je 0x1401ce796
mov rax, qword [rdi + 0x78]
cmp qword [rax], rbx
je 0x1401ce796
mov ebx, 0x106
jmp 0x1401ce8ad
mov rax, qword [rbp + 8]
cmp byte [rbp + 0x11], bl
je 0x1401ce7da
cmp qword [rax + 0x78], rbp
je 0x1401ce7b7
cmp byte [rax + 0x80], bl
je 0x1401ce7b7
mov ebx, 0x106
jmp 0x1401ce8ad
mov rax, qword [rax + 0x70]
test rax, rax
je 0x1401ce7da
cmp qword [rax], rbp
je 0x1401ce7d1
cmp dword [rax + 8], 1
jne 0x1401ce7d1
cmp byte [rax + 0xc], 1
jne 0x1401ce78c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401ce7c0
cmp dword [rdi + 0x3c], r15d
sete al
mov byte [rdi + 0x23], al
cmp qword [rdi + 0x18], r15
jne 0x1401ce7fa
mov rcx, rdi
call fcn.14018b300
mov ebx, eax
test eax, eax
je 0x1401ce7e4
jmp 0x1401ce7fe
test ebx, ebx
je 0x1401ce838
cmp byte [rdi + 0x2e], r15b
jne 0x1401ce838
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1401ce838
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x1401ce834
mov rsi, qword [rcx + 0x20]
call fcn.1401b3ba0
mov rax, qword [rsi + 0xe0]
cmp dword [rax + 0x18], r15d
jne 0x1401ce834
mov rcx, rsi
call fcn.14018f890
mov qword [rdi + 0x18], r15
cmp bl, 5
jne 0x1401ce878
cmp byte [rdi + 0x2e], r15b
jne 0x1401ce878
mov rsi, qword [rdi + 8]
add rsi, 0x2a8
je 0x1401ce878
mov rax, qword [rsi]
test rax, rax
je 0x1401ce878
mov edx, dword [rsi + 0x10]
test edx, edx
js 0x1401ce878
mov rcx, qword [rsi + 8]
call rax
test eax, eax
je 0x1401ce871
inc dword [rsi + 0x10]
jmp 0x1401ce7e4
mov dword [rsi + 0x10], 0xffffffff
test ebx, ebx
jne 0x1401ce8ad
cmp byte [rbp + 0x10], r15b
jne 0x1401ce89f
inc dword [rdi + 0x38]
cmp byte [rbp + 0x11], r15b
je 0x1401ce89f
mov byte [rbp + 0x3c], 1
mov rax, qword [rdi + 0x70]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x30]
mov qword [rdi + 0x70], rax
mov byte [rbp + 0x10], 1
cmp byte [rdi + 0x2e], 1
jae 0x1401ce8ad
mov byte [rdi + 0x2e], 1
cmp byte [rbp + 0x11], r15b
je 0x1401ce8d0
sub dword [rbp + 0x14], 1
jne 0x1401ce8d0
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1401ce8cc
call qword [0x1402da578]
mov byte [rbp + 0x12], r15b
mov rdi, qword [rsp + 0x20]
mov dword [rsp + 0x90], 1
mov rax, qword [r14 + 0x28]
mov rcx, qword [rax + 8]
mov rax, qword [r14 + 8]
mov edx, dword [rcx + 0x30]
mov rax, qword [rax + 8]
mov dword [rsp + 0x80], edx
mov r12d, dword [rax + 0x30]
mov dword [rsp + 0x98], r12d
test ebx, ebx
jne 0x1401ce91e
mov rax, qword [rax]
cmp byte [rax + 9], 5
jne 0x1401ce91e
cmp edx, r12d
mov eax, 8
cmovne ebx, eax
movsxd r15, dword [rcx + 0x3c]
xor ebp, ebp
test r13d, r13d
js 0x1401ce932
cmp ebp, r13d
jge 0x1401ce9b9
mov esi, dword [r14 + 0x18]
cmp esi, r15d
ja 0x1401ce9b9
test ebx, ebx
jne 0x1401cea02
mov rax, qword [r14 + 0x28]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1402db670]
div dword [rcx + 0x30]
inc eax
cmp esi, eax
je 0x1401ce9a9
xor r9d, r9d
lea r8, [rsp + 0x28]
mov edx, esi
mov rcx, rdi
call fcn.1401b1a30
mov ebx, eax
test eax, eax
jne 0x1401ce9a9
mov rdi, qword [rsp + 0x28]
mov edx, esi
mov rcx, r14
mov r8, qword [rdi]
call fcn.140178140
mov rsi, qword [rdi + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.1401b3ba0
mov rax, qword [rsi + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x1401ce9a9
mov rcx, rsi
call fcn.14018f890
inc dword [r14 + 0x18]
mov rdi, qword [rsp + 0x20]
inc ebp
jmp 0x1401ce924
test ebx, ebx
jne 0x1401cea02
mov eax, r15d
mov dword [r14 + 0x38], r15d
sub eax, dword [r14 + 0x18]
inc eax
mov dword [r14 + 0x34], eax
cmp dword [r14 + 0x18], r15d
ja 0x1401cea0b
cmp dword [r14 + 0x3c], ebx
jne 0x1401cec35
mov rax, qword [r14 + 0x28]
mov rcx, qword [rax + 8]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x70]
mov qword [r14 + 0x40], rax
mov qword [rdx + 0x70], r14
mov dword [r14 + 0x3c], 1
jmp 0x1401cec35
cmp ebx, 0x65
jne 0x1401cec35
mov rdi, qword [r14 + 8]
mov esi, dword [r14 + 0x10]
mov rcx, rdi
inc esi
mov rbx, qword [rdi + 8]
call fcn.14019d020
mov rcx, qword [rbx + 0x18]
mov rbp, qword [rcx + 0x70]
mov rcx, qword [rcx + 0x78]
call fcn.1401b3260
mov ebx, eax
test eax, eax
jne 0x1401cea54
mov eax, esi
mov byte [rbp + 0x2b], sil
shr eax, 0x18
mov byte [rbp + 0x28], al
mov eax, esi
shr eax, 0x10
mov byte [rbp + 0x29], al
mov eax, esi
shr eax, 8
mov byte [rbp + 0x2a], al
cmp byte [rdi + 0x11], 0
je 0x1401cea77
sub dword [rdi + 0x14], 1
jne 0x1401cea77
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1401cea73
call qword [0x1402da578]
mov byte [rdi + 0x12], 0
test ebx, ebx
jne 0x1401cec35
mov rcx, qword [r14]
test rcx, rcx
je 0x1401cea8e
xor edx, edx
call fcn.1401b8230
movsxd rbp, dword [rsp + 0x80]
cmp ebp, r12d
jge 0x1401ceacf
mov eax, r12d
cdq
idiv ebp
mov ecx, eax
lea eax, [r15 - 1]
add eax, ecx
cdq
idiv ecx
mov rcx, qword [r14 + 8]
xor edx, edx
mov r9d, eax
mov eax, dword [0x1402db670]
mov r8, qword [rcx + 8]
div dword [r8 + 0x30]
inc eax
cmp r9d, eax
jne 0x1401ceadc
dec r9d
jmp 0x1401ceadc
mov eax, ebp
cdq
idiv r12d
mov r9d, eax
imul r9d, r15d
mov rdi, qword [rsp + 0x30]
xor edx, edx
mov rcx, rdi
mov dword [rdi + 0x1c], r9d
cmp ebp, r12d
jge 0x1401cec12
mov r12, qword [rdi + 0x48]
lea r8d, [rdx + 1]
mov r13, rbp
imul r15, rbp
call fcn.1401b2000
mov ebx, eax
test eax, eax
jne 0x1401cec35
mov rax, qword [r12]
lea rdx, [rsp + 0x30]
mov rcx, r12
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jne 0x1401ceb3c
cmp qword [rsp + 0x30], r15
jle 0x1401ceb3c
mov rax, qword [r12]
mov rdx, r15
mov rcx, r12
call qword [rax + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x1401cec35
cmp byte [rdi + 0xc], bl
jne 0x1401ceb61
mov rcx, qword [rdi + 0x48]
movzx edx, byte [rdi + 0xe]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ebx, eax
test eax, eax
jne 0x1401cec35
mov edx, dword [0x1402db670]
mov eax, dword [rsp + 0x98]
add eax, edx
movsxd rcx, eax
cmp rcx, r15
lea eax, [rdx + rbp]
movsxd rdi, eax
cmovl r15, rcx
cmp rdi, r15
jge 0x1401cec1c
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x98]
mov rax, rdi
mov qword [rsp + 0x98], 0
cqo
xor r9d, r9d
idiv r13
lea edx, [rax + 1]
call fcn.1401b1a30
mov rsi, qword [rsp + 0x98]
mov ebx, eax
test eax, eax
jne 0x1401cebd8
mov rax, qword [r12]
mov r9, rdi
mov rdx, qword [rsi]
mov r8d, ebp
mov rcx, r12
call qword [rax + 0x18]
mov ebx, eax
test rsi, rsi
je 0x1401cec05
mov rbp, qword [rsi + 0x20]
mov rcx, rsi
call fcn.1401b3ba0
mov rax, qword [rbp + 0xe0]
cmp dword [rax + 0x18], 0
jne 0x1401cebfe
mov rcx, rbp
call fcn.14018f890
mov ebp, dword [rsp + 0x80]
add rdi, r13
test ebx, ebx
je 0x1401ceb80
jmp 0x1401cec35
xor r8d, r8d
call fcn.1401b2000
mov ebx, eax
test ebx, ebx
jne 0x1401cec35
mov rcx, qword [r14 + 8]
call fcn.14019c750
mov ebx, eax
mov eax, 0x65
test ebx, ebx
cmove ebx, eax
cmp dword [rsp + 0x90], 0
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x88]
je 0x1401cec6a
mov rcx, qword [r14 + 0x28]
xor edx, edx
call fcn.14019c6a0
mov rcx, qword [r14 + 0x28]
call fcn.14019c750
cmp ebx, 0xc0a
mov eax, 7
cmove ebx, eax
mov dword [r14 + 0x30], ebx
mov rax, qword [r14]
mov r13, qword [rsp + 0x50]
test rax, rax
je 0x1401cec98
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1401cec98
call qword [0x1402da578]
mov rdi, qword [r14 + 0x28]
cmp byte [rdi + 0x11], 0
je 0x1401cecbf
sub dword [rdi + 0x14], 1
jne 0x1401cecbf
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1401cecbb
call qword [0x1402da578]
mov byte [rdi + 0x12], 0
mov rax, qword [r14 + 0x20]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1401cecdc
call qword [0x1402da578]
mov eax, ebx
add rsp, 0x70
pop rbx
ret