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

Disassembly:
mov rax, rsp
push rbx
push rsi
push r12
push r14
sub rsp, 0xd8
mov r14d, dword [rcx + 0x4c]
mov r12, qword [rcx + 0xe0]
mov rbx, rcx
xor ecx, ecx
mov dword [rsp + 0x2c], r14d
mov rsi, r12
mov dword [rsp + 0x118], ecx
mov dword [rsp + 0x20], ecx
cmp dword [rbx + 0x70], ecx
je 0x14001be48
mov r9d, dword [rbx + 0x3c]
mov qword [rax - 0x28], rbp
mov qword [rax - 0x30], rdi
mov qword [rax - 0x38], r13
mov r13d, dword [rbx]
mov qword [rax - 0x40], r15
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x70], r13d
cmp eax, r9d
jae 0x14001b642
sub r9d, eax
mov dword [rsp + 0x108], r9d
jmp 0x14001b64c
mov r9d, ecx
mov dword [rsp + 0x108], ecx
movsxd rax, dword [rbx + 0xd0]
mov r8d, dword [rbx + 0x18]
mov edi, ecx
mov ebp, ecx
mov qword [rsp + 0x80], rcx
mov r15, rcx
mov dword [rsp + 0x110], r8d
mov dword [rsp + 0x88], r8d
mov qword [rsp + 0x50], rax
test rax, rax
jle 0x14001b7f7
mov eax, r13d
mov ecx, 4
shr eax, 8
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x38], eax
mov eax, r13d
mov r14d, dword [rsp + 0x38]
shr eax, 0x10
mov dword [rsp + 0x40], eax
mov eax, r13d
mov r13d, dword [rsp + 0x40]
shr eax, 0x18
mov dword [rsp + 0x30], eax
movzx eax, r9w
shr ax, 8
mov word [rsp + 0x100], ax
mov eax, r8d
shr eax, 8
mov dword [rsp + 0x3c], eax
mov eax, r8d
shr eax, 0x10
mov dword [rsp + 0x24], eax
mov eax, r8d
shr eax, 0x18
mov dword [rsp + 0x28], eax
nop word [rax + rax]
mov r8d, esi
sub r8d, r12d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x14001b71a
mov rdx, r12
mov rcx, rbx
call fcn.14001a6a0
mov r9d, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x48]
mov rsi, r12
mov rax, qword [rbx + 0xc8]
add rcx, 8
inc r15
mov edi, dword [rax + r15*8 - 8]
mov ebp, dword [rcx + rax - 8]
movzx eax, byte [rsp + 0x70]
mov byte [rsi], al
mov eax, dword [rsp + 0x30]
mov byte [rsi + 1], r14b
mov byte [rsi + 3], al
movzx eax, word [rsp + 0x100]
mov byte [rsi + 2], r13b
mov word [rsi + 4], 0x52
mov byte [rsi + 7], al
mov byte [rsi + 6], r9b
movzx eax, bpl
add rsi, 0x18
mov dword [rsp + 0x84], edi
mov byte [rsi - 0x10], al
mov eax, ebp
mov dword [rsp + 0x80], ebp
shr eax, 8
mov qword [rsp + 0x48], rcx
mov byte [rsi - 0xf], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi - 0xe], al
mov eax, ebp
shr eax, 0x18
mov byte [rsi - 0xd], al
movzx eax, dil
mov byte [rsi - 0xc], al
mov eax, edi
shr eax, 8
mov byte [rsi - 0xb], al
mov eax, edi
shr eax, 0x10
mov byte [rsi - 0xa], al
mov eax, edi
shr eax, 0x18
mov byte [rsi - 9], al
movzx eax, byte [rsp + 0x88]
mov byte [rsi - 8], al
mov eax, dword [rsp + 0x3c]
mov byte [rsi - 7], al
mov eax, dword [rsp + 0x24]
mov byte [rsi - 6], al
mov eax, dword [rsp + 0x28]
mov byte [rsi - 5], al
mov dword [rsi - 4], 0
cmp r15, qword [rsp + 0x50]
jl 0x14001b6f0
mov r14d, dword [rsp + 0x2c]
mov r13d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x110]
xor ecx, ecx
cmp dword [rbx + 0x40], 0
mov dword [rbx + 0xd0], ecx
jne 0x14001b853
mov edx, dword [rbx + 0x78]
test edx, edx
jne 0x14001b81c
mov eax, dword [rbx + 0x4c]
mov ecx, 0x1b58
add eax, ecx
mov dword [rbx + 0x78], ecx
mov dword [rbx + 0x74], eax
jmp 0x14001b85b
mov r10d, dword [rbx + 0x4c]
cmp r10d, dword [rbx + 0x74]
js 0x14001b85b
mov eax, dword [rbx + 0x78]
mov ecx, 0x1b58
cmp edx, ecx
cmovb eax, ecx
mov edx, eax
shr edx, 1
add edx, eax
mov eax, 0x1d4c0
cmp edx, eax
cmova edx, eax
or dword [rbx + 0x48], 1
lea ecx, [r10 + rdx]
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], ecx
jmp 0x14001b85b
mov qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
je 0x14001b945
mov ecx, esi
sub ecx, r12d
lea eax, [rcx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x14001b893
mov r8d, ecx
mov rdx, r12
mov rcx, rbx
call fcn.14001a6a0
mov r8d, dword [rsp + 0x110]
mov r9d, dword [rsp + 0x108]
mov rsi, r12
movzx eax, byte [rsp + 0x70]
movzx r15d, byte [rsp + 0x80]
mov byte [rsi], al
mov eax, r13d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r13d
shr eax, 0x10
mov byte [rsi + 2], al
mov eax, r13d
shr eax, 0x18
mov byte [rsi + 3], al
mov word [rsi + 4], 0x53
mov byte [rsi + 6], r9b
movzx eax, r9w
shr ax, 8
mov byte [rsi + 7], al
mov byte [rsi + 8], r15b
mov eax, ebp
shr eax, 8
mov byte [rsi + 9], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xa], al
mov eax, ebp
shr eax, 0x18
mov byte [rsi + 0xb], al
movzx eax, byte [rsp + 0x84]
mov byte [rsi + 0xc], al
mov eax, edi
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, edi
shr eax, 0x10
mov byte [rsi + 0xe], al
mov eax, edi
shr eax, 0x18
mov byte [rsi + 0xf], al
movzx eax, byte [rsp + 0x88]
mov byte [rsi + 0x10], al
mov eax, r8d
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 0x12], al
mov eax, r8d
shr eax, 0x18
add rsi, 0x18
mov byte [rsi - 5], al
mov dword [rsi - 4], 0
jmp 0x14001b94e
movzx r15d, byte [rsp + 0x80]
test byte [rbx + 0x48], 2
je 0x14001ba29
mov ecx, esi
sub ecx, r12d
lea eax, [rcx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x14001b986
mov r8d, ecx
mov rdx, r12
mov rcx, rbx
call fcn.14001a6a0
mov r8d, dword [rsp + 0x110]
mov r9d, dword [rsp + 0x108]
mov rsi, r12
movzx eax, byte [rsp + 0x70]
mov byte [rsi], al
mov eax, r13d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r13d
shr r13d, 0x18
shr eax, 0x10
mov byte [rsi + 3], r13b
mov byte [rsi + 2], al
mov word [rsi + 4], 0x54
mov byte [rsi + 6], r9b
movzx eax, r9w
shr ax, 8
mov byte [rsi + 7], al
mov byte [rsi + 8], r15b
mov eax, ebp
shr eax, 8
mov byte [rsi + 9], al
mov eax, ebp
shr ebp, 0x18
shr eax, 0x10
mov byte [rsi + 0xb], bpl
mov byte [rsi + 0xa], al
movzx eax, byte [rsp + 0x84]
mov byte [rsi + 0xc], al
mov eax, edi
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, edi
shr edi, 0x18
shr eax, 0x10
mov byte [rsi + 0xf], dil
mov byte [rsi + 0xe], al
movzx eax, byte [rsp + 0x88]
mov byte [rsi + 0x10], al
mov eax, r8d
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov byte [rsi + 0x13], r8b
add rsi, 0x18
mov byte [rsi - 6], al
mov dword [rsi - 4], 0
mov r13d, dword [rbx + 0x40]
mov eax, dword [rbx + 0x38]
xor r10d, r10d
cmp eax, r13d
mov dword [rbx + 0x48], r10d
cmovbe r13d, eax
mov dword [rsp + 0x110], r13d
cmp dword [rbx + 0xf0], r10d
jne 0x14001ba61
mov eax, dword [rbx + 0x44]
cmp eax, r13d
cmovbe r13d, eax
mov dword [rsp + 0x110], r13d
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r13d
jns 0x14001bb14
lea r8, [rbx + 0x88]
nop word [rax + rax]
mov rdx, qword [r8]
cmp r8, rdx
je 0x14001bb14
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx]
mov rcx, qword [rdx + 8]
mov qword [rcx], rax
mov qword [rdx], r10
mov qword [rdx + 8], r10
mov rax, qword [rbx + 0xb0]
mov qword [rdx + 8], rax
lea rax, [rbx + 0xa8]
mov qword [rdx], rax
mov rax, qword [rbx + 0xb0]
mov qword [rax], rdx
dec dword [rbx + 0x68]
inc dword [rbx + 0x60]
mov eax, dword [rbx]
mov qword [rbx + 0xb0], rdx
mov dword [rdx + 0x14], 0x51
mov dword [rdx + 0x1c], r9d
mov dword [rdx + 0x20], r14d
mov dword [rdx + 0x10], eax
mov eax, dword [rbx + 0x14]
mov dword [rdx + 0x24], eax
inc dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
mov dword [rdx + 0x28], eax
mov dword [rdx + 0x30], r14d
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], r10
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r13d
js 0x14001ba80
mov eax, dword [rbx + 0xe8]
or ebp, 0xffffffff
test eax, eax
cmovg ebp, eax
mov dword [rsp + 0x100], ebp
cmp dword [rbx + 0x6c], r10d
jne 0x14001bb39
mov r15d, dword [rbx + 0x30]
sar r15d, 3
jmp 0x14001bb3c
mov r15d, r10d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x14001bd75
mov r13d, r10d
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x14001bb72
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
lea ecx, [rax + r15]
mov dword [rdi + 0x34], eax
add ecx, r14d
jmp 0x14001bc00
cmp r14d, dword [rdi + 0x30]
js 0x14001bbd1
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
mov eax, dword [rbx + 0x6c]
inc dword [rbx + 0x58]
test eax, eax
jne 0x14001bba2
mov eax, dword [rdi + 0x34]
mov ecx, dword [rbx + 0x30]
mov dword [rsp + 0x20], 1
cmp eax, ecx
cmovae ecx, eax
add ecx, eax
mov dword [rdi + 0x34], ecx
jmp 0x14001bbf9
cmp eax, 2
jae 0x14001bbbc
mov eax, dword [rdi + 0x34]
mov dword [rsp + 0x20], 1
cdq
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
jmp 0x14001bbf9
mov eax, dword [rbx + 0x30]
mov dword [rsp + 0x20], 1
cdq
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
jmp 0x14001bbf9
cmp dword [rdi + 0x38], ebp
jb 0x14001bd52
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x14001bbec
test eax, eax
jg 0x14001bd52
lea eax, [rcx + 1]
mov dword [rdi + 0x38], r10d
inc r13d
mov dword [rdi + 0x3c], eax
mov eax, dword [rdi + 0x34]
lea ecx, [r14 + rax]
mov dword [rdi + 0x30], ecx
mov dword [rdi + 0x20], r14d
mov dword [rdi + 0x1c], r9d
mov eax, dword [rbx + 0x18]
mov ebp, esi
mov dword [rdi + 0x28], eax
mov eax, dword [rdi + 0x2c]
sub ebp, r12d
lea ecx, [rax + rbp + 0x18]
cmp ecx, dword [rbx + 4]
jle 0x14001bc68
test byte [rbx + 0xf8], 1
je 0x14001bc4c
cmp qword [rbx + 0x108], 0
je 0x14001bc4c
lea r8, str._RO___ld_bytes
mov r9d, ebp
mov edx, 1
mov rcx, rbx
call fcn.14001a600
test ebp, ebp
je 0x14001bc65
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, ebp
mov rcx, r12
call qword [rbx + 0x100]
mov rsi, r12
mov ecx, dword [rdi + 0x10]
add rsi, 0x18
mov byte [rsi - 0x18], cl
mov eax, ecx
shr eax, 8
mov byte [rsi - 0x17], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsi - 0x15], cl
shr eax, 0x10
mov byte [rsi - 0x16], al
movzx eax, byte [rdi + 0x14]
mov byte [rsi - 0x14], al
movzx eax, byte [rdi + 0x18]
mov byte [rsi - 0x13], al
movzx eax, word [rdi + 0x1c]
mov byte [rsi - 0x12], al
shr ax, 8
mov byte [rsi - 0x11], al
mov ecx, dword [rdi + 0x20]
mov byte [rsi - 0x10], cl
mov eax, ecx
shr eax, 8
mov byte [rsi - 0xf], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsi - 0xd], cl
shr eax, 0x10
mov byte [rsi - 0xe], al
mov ecx, dword [rdi + 0x24]
mov byte [rsi - 0xc], cl
mov eax, ecx
shr eax, 8
mov byte [rsi - 0xb], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsi - 9], cl
shr eax, 0x10
mov byte [rsi - 0xa], al
mov ecx, dword [rdi + 0x28]
mov byte [rsi - 8], cl
mov eax, ecx
shr eax, 8
mov byte [rsi - 7], al
mov eax, ecx
shr ecx, 0x18
mov byte [rsi - 5], cl
shr eax, 0x10
mov byte [rsi - 6], al
mov ecx, dword [rdi + 0x2c]
mov eax, ecx
mov byte [rsi - 4], cl
shr eax, 8
mov byte [rsi - 3], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rsi - 1], cl
mov byte [rsi - 2], al
mov eax, dword [rdi + 0x2c]
test eax, eax
je 0x14001bd31
lea rdx, [rdi + 0x40]
mov r8d, eax
mov rcx, rsi
call fcn.1400211b0
mov r11d, dword [rdi + 0x2c]
add rsi, r11
mov eax, dword [rbx + 0x7c]
mov r9d, dword [rsp + 0x108]
mov ebp, dword [rsp + 0x100]
xor r10d, r10d
cmp dword [rdi + 0x3c], eax
jb 0x14001bd52
mov dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x14001bb52
mov dword [rsp + 0x118], r13d
mov r13d, dword [rsp + 0x110]
mov r15, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc8]
sub esi, r12d
test esi, esi
jle 0x14001bdcb
test byte [rbx + 0xf8], 1
je 0x14001bdb6
cmp qword [rbx + 0x108], 0
je 0x14001bdb6
lea r8, str._RO___ld_bytes
mov r9d, esi
mov edx, 1
mov rcx, rbx
call fcn.14001a600
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, esi
mov rcx, r12
call qword [rbx + 0x100]
cmp dword [rsp + 0x118], 0
mov edx, 2
je 0x14001bdfd
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
cmp eax, edx
cmovb eax, edx
mov dword [rbx + 0x24], eax
lea ecx, [rbp + rax]
mov eax, dword [rbx + 8]
mov dword [rbx + 0x44], ecx
imul eax, ecx
mov dword [rbx + 0x80], eax
cmp dword [rsp + 0x20], 0
mov rbp, qword [rsp + 0xd0]
je 0x14001be2a
mov eax, dword [rbx + 8]
shr r13d, 1
mov dword [rbx + 0x44], 1
cmp r13d, edx
mov dword [rbx + 0x80], eax
cmovb r13d, edx
mov dword [rbx + 0x24], r13d
cmp dword [rbx + 0x44], 1
mov r13, qword [rsp + 0xc0]
jae 0x14001be48
mov eax, dword [rbx + 8]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0x80], eax
add rsp, 0xd8
pop r14
pop r12
pop rsi
pop rbx
ret