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

Disassembly:
push rbx
push rdi
sub rsp, 0x68
mov rdi, rcx
mov qword [rsp + 0x58], r12
mov rcx, qword [rcx + 0x20]
mov r12d, edx
mov rcx, qword [rcx + 0x18]
call fcn.1401b0200
mov rcx, qword [rdi + 0x28]
call fcn.1401e0f10
mov r8, qword [rdi]
test r8, r8
je 0x1401b22dc
mov rcx, qword [r8 + 0x18]
call fcn.1401b0200
mov r8, qword [rdi]
mov ebx, dword [rdi + 0x30]
mov ecx, ebx
call fcn.1401cec20
test eax, eax
jne 0x1401b2766
mov r9, qword [rdi + 0x28]
mov qword [rsp + 0x60], rsi
mov rcx, r9
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
call fcn.1401e2700
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x28], rax
call fcn.1401e2700
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x90], 0
test r8, r8
je 0x1401b2342
mov rcx, qword [r9 + 8]
cmp byte [rcx + 0x24], 2
jne 0x1401b2342
mov ebx, 5
jmp 0x1401b2367
mov rcx, r9
xor ebx, ebx
call fcn.1401e19f0
test eax, eax
jne 0x1401b2367
xor r8d, r8d
xor edx, edx
call fcn.1401e0090
mov ebx, eax
mov dword [rsp + 0x90], 1
cmp dword [rdi + 0x14], 0
mov esi, 7
jne 0x1401b2386
test ebx, ebx
jne 0x1401b23af
mov rcx, rdi
call fcn.1401dc5e0
cmp eax, esi
jne 0x1401b238a
mov ebx, esi
jmp 0x1401b23af
test ebx, ebx
jne 0x1401b23af
cmp dword [rdi + 0x14], 0
jne 0x1401b23af
mov rcx, qword [rdi + 8]
lea r8, [rdi + 0x10]
mov edx, 2
call fcn.1401e0090
mov ebx, eax
test eax, eax
jne 0x1401b23af
mov dword [rdi + 0x14], 1
mov rdx, qword [rdi + 0x28]
mov rcx, rdx
call fcn.1401e10a0
mov rcx, qword [rdi + 8]
movsxd r13, eax
call fcn.1401e10a0
mov r8d, eax
mov dword [rsp + 0x80], eax
call fcn.1401e2700
mov rcx, rax
call fcn.1401f5d00
mov dword [rsp + 0x98], eax
test ebx, ebx
jne 0x1401b23f9
cmp eax, 5
jne 0x1401b23f9
cmp r13d, r8d
mov eax, 8
cmovne ebx, eax
mov rcx, rdx
call fcn.1401e1ab0
mov r15d, eax
mov qword [rsp + 0x88], rbp
xor r14d, r14d
lea rsi, [rdi + 0x18]
test r12d, r12d
js 0x1401b241d
cmp r14d, r12d
jge 0x1401b2492
mov ebp, dword [rdi + 0x18]
lea rsi, [rdi + 0x18]
cmp ebp, r15d
ja 0x1401b2492
test ebx, ebx
jne 0x1401b24bf
mov rax, qword [rdi + 0x28]
xor edx, edx
mov rcx, qword [rax + 8]
mov eax, dword [0x1403989f8]
div dword [rcx + 0x34]
inc eax
cmp ebp, eax
je 0x1401b248b
mov rcx, qword [rsp + 0x28]
lea r9d, [rbx + 2]
lea r8, [rsp + 0x20]
mov edx, ebp
call fcn.1401f5cd0
mov ebx, eax
test eax, eax
jne 0x1401b248b
mov rcx, qword [rsp + 0x20]
call fcn.1401f5ce0
mov r8, rax
xor r9d, r9d
mov edx, ebp
mov rcx, rdi
call fcn.1401bd980
mov rcx, qword [rsp + 0x20]
mov ebx, eax
call fcn.1401f6f90
inc dword [rsi]
inc r14d
jmp 0x1401b2413
test ebx, ebx
jne 0x1401b24bf
mov eax, r15d
mov dword [rdi + 0x38], r15d
sub eax, dword [rsi]
inc eax
mov dword [rdi + 0x34], eax
cmp dword [rsi], r15d
ja 0x1401b24c8
cmp dword [rdi + 0x3c], ebx
jne 0x1401b2719
mov rcx, rdi
call fcn.1401bd5c0
jmp 0x1401b2719
cmp ebx, 0x65
jne 0x1401b2719
test r15d, r15d
jne 0x1401b24eb
mov rcx, qword [rdi + 8]
call fcn.1401e2060
mov ebx, eax
mov r15d, 1
test eax, eax
je 0x1401b24eb
cmp eax, 0x65
jne 0x1401b2719
mov r8d, dword [rdi + 0x10]
mov edx, 1
mov rcx, qword [rdi + 8]
inc r8d
call fcn.1401e2f80
mov ebx, eax
test eax, eax
jne 0x1401b2719
mov rcx, qword [rdi]
test rcx, rcx
je 0x1401b2517
call fcn.1401fb7c0
cmp dword [rsp + 0x98], 5
jne 0x1401b2539
mov rcx, qword [rdi + 8]
mov edx, 2
call fcn.1401e2e00
mov ebx, eax
test eax, eax
jne 0x1401b2719
mov ecx, dword [rsp + 0x80]
cmp r13d, ecx
jge 0x1401b26dc
mov r12, qword [rsp + 0x30]
mov eax, ecx
cdq
mov r14, r13
idiv r13d
mov ecx, eax
dec eax
add eax, r15d
cdq
idiv ecx
xor edx, edx
mov r8d, eax
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 8]
lea esi, [r8 - 1]
mov eax, dword [0x1403989f8]
div dword [rcx + 0x34]
mov rcx, r12
inc eax
cmp r8d, eax
cmovne esi, r8d
movsxd r8, r15d
imul r8, r13
mov qword [rsp + 0x20], r8
call fcn.1401f5c20
lea rdx, [rsp + 0x98]
mov r15, rax
call fcn.1401f66a0
mov ebp, dword [rsp + 0x98]
nop
cmp esi, ebp
ja 0x1401b2610
mov rcx, qword [rdi + 8]
xor edx, edx
mov eax, dword [0x1403989f8]
mov r8, qword [rcx + 8]
div dword [r8 + 0x34]
inc eax
cmp esi, eax
je 0x1401b2605
xor r9d, r9d
lea r8, [rsp + 0x98]
mov edx, esi
mov rcx, r12
call fcn.1401f5cd0
mov ebx, eax
test eax, eax
jne 0x1401b2605
mov rcx, qword [rsp + 0x98]
call fcn.1401f7020
mov rcx, qword [rsp + 0x98]
mov ebx, eax
call fcn.1401f6f90
inc esi
test ebx, ebx
je 0x1401b25b0
jmp 0x1401b2719
test ebx, ebx
jne 0x1401b2624
xor edx, edx
lea r8d, [rbx + 1]
mov rcx, r12
call fcn.1401f59a0
mov ebx, eax
mov ecx, dword [0x1403989f8]
mov eax, dword [rsp + 0x80]
add eax, ecx
movsxd rbp, eax
cmp rbp, qword [rsp + 0x20]
lea eax, [rcx + r13]
movsxd rsi, eax
cmovge rbp, qword [rsp + 0x20]
test ebx, ebx
jne 0x1401b2719
cmp rsi, rbp
jge 0x1401b26bd
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x80]
mov rax, rsi
mov qword [rsp + 0x80], 0
cqo
xor r9d, r9d
idiv r14
lea edx, [rax + 1]
call fcn.1401f5cd0
mov ebx, eax
test eax, eax
jne 0x1401b26a7
mov rcx, qword [rsp + 0x80]
call fcn.1401f5ce0
mov rdx, rax
mov r9, rsi
mov r8d, r13d
mov rcx, r15
call fcn.1401f53e0
mov ebx, eax
mov rcx, qword [rsp + 0x80]
call fcn.1401f6f90
add rsi, r14
test ebx, ebx
je 0x1401b2650
jmp 0x1401b2719
mov rdx, qword [rsp + 0x20]
mov rcx, r15
call fcn.1401bdb30
mov ebx, eax
test eax, eax
jne 0x1401b2719
xor edx, edx
mov rcx, r12
call fcn.1401f6f20
jmp 0x1401b26fc
mov eax, r13d
cdq
idiv ecx
mov rcx, qword [rsp + 0x30]
imul eax, r15d
mov edx, eax
call fcn.1401f6f80
xor r8d, r8d
xor edx, edx
call fcn.1401f59a0
mov ebx, eax
test eax, eax
jne 0x1401b2719
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.1401e06f0
mov ebx, eax
mov eax, 0x65
test ebx, ebx
cmove ebx, eax
cmp dword [rsp + 0x90], 0
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x88]
je 0x1401b2755
mov rcx, qword [rdi + 0x28]
xor edx, edx
call fcn.1401e0660
mov rcx, qword [rdi + 0x28]
xor edx, edx
call fcn.1401e06f0
cmp ebx, 0xc0a
mov eax, 7
cmove ebx, eax
mov dword [rdi + 0x30], ebx
mov rcx, qword [rdi]
mov r12, qword [rsp + 0x58]
test rcx, rcx
je 0x1401b277c
mov rcx, qword [rcx + 0x18]
call fcn.1401b0230
mov rcx, qword [rdi + 0x28]
call fcn.1401e1ac0
mov rcx, qword [rdi + 0x20]
mov rcx, qword [rcx + 0x18]
call fcn.1401b0230
mov eax, ebx
add rsp, 0x68
pop rdi
pop rbx
ret