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

Disassembly:
mov rax, rsp
push rbx
push rsi
push r14
push r15
sub rsp, 0xc8
mov r15d, dword [rcx + 0x4c]
mov r14, qword [rcx + 0xe0]
mov rbx, rcx
xor ecx, ecx
mov dword [rsp + 0x30], r15d
mov rsi, r14
mov dword [rsp + 0x108], ecx
mov dword [rsp + 0x20], ecx
cmp dword [rbx + 0x70], ecx
je 0x18012c7b5
mov r8d, dword [rbx]
mov qword [rax - 0x28], rbp
mov qword [rax - 0x30], rdi
mov qword [rax - 0x38], r12
mov qword [rax - 0x40], r13
mov dword [rax + 0x10], r8d
mov eax, dword [rbx + 0x64]
mov r13d, dword [rbx + 0x3c]
mov dword [rsp + 0x60], r8d
cmp eax, r13d
jae 0x18012c019
sub r13d, eax
jmp 0x18012c01c
mov r13d, ecx
movsxd rax, dword [rbx + 0xd0]
mov r9d, dword [rbx + 0x18]
mov edi, ecx
mov qword [rsp + 0x70], rcx
mov ebp, ecx
mov r12, rcx
mov dword [rsp + 0x100], r9d
mov dword [rsp + 0x78], r9d
mov qword [rsp + 0x48], rax
test rax, rax
jle 0x18012c1ac
mov eax, r8d
mov ecx, 4
shr eax, 8
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x3c], eax
mov eax, r8d
mov r15d, dword [rsp + 0x3c]
shr eax, 0x10
mov dword [rsp + 0x2c], eax
mov eax, r8d
shr eax, 0x18
mov dword [rsp + 0x38], eax
movzx eax, r13w
shr ax, 8
mov word [rsp + 0xf0], ax
mov eax, r9d
shr eax, 8
mov dword [rsp + 0x34], eax
mov eax, r9d
shr eax, 0x10
mov dword [rsp + 0x24], eax
mov eax, r9d
shr eax, 0x18
mov dword [rsp + 0x28], eax
nop dword [rax]
mov r8d, esi
sub r8d, r14d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x18012c0d2
mov rdx, r14
mov rcx, rbx
call fcn.18012ae70
mov rcx, qword [rsp + 0x40]
mov rsi, r14
mov rax, qword [rbx + 0xc8]
add rcx, 8
inc r12
mov edi, dword [rax + r12*8 - 8]
mov ebp, dword [rcx + rax - 8]
movzx eax, byte [rsp + 0x60]
mov byte [rsi], al
mov eax, dword [rsp + 0x2c]
mov byte [rsi + 1], r15b
mov byte [rsi + 2], al
mov eax, dword [rsp + 0x38]
add rsi, 0x18
mov byte [rsi - 0x15], al
movzx eax, word [rsp + 0xf0]
mov word [rsi - 0x14], 0x52
mov byte [rsi - 0x11], al
mov byte [rsi - 0x12], r13b
movzx eax, bpl
mov byte [rsi - 0x10], al
mov eax, ebp
mov dword [rsp + 0x74], edi
shr eax, 8
mov dword [rsp + 0x70], ebp
mov qword [rsp + 0x40], 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 + 0x78]
mov byte [rsi - 8], al
mov eax, dword [rsp + 0x34]
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 r12, qword [rsp + 0x48]
jl 0x18012c0b0
mov r15d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0xf8]
mov r9d, dword [rsp + 0x100]
xor ecx, ecx
cmp dword [rbx + 0x40], 0
mov dword [rbx + 0xd0], ecx
jne 0x18012c20e
mov ecx, dword [rbx + 0x78]
test ecx, ecx
jne 0x18012c1d3
mov eax, dword [rbx + 0x4c]
mov dword [rbx + 0x78], 0x1b58
add eax, 0x1b58
mov dword [rbx + 0x74], eax
jmp 0x18012c216
mov r10d, dword [rbx + 0x4c]
cmp r10d, dword [rbx + 0x74]
js 0x18012c216
cmp ecx, 0x1b58
jae 0x18012c1ec
mov dword [rbx + 0x78], 0x1b58
mov edx, dword [rbx + 0x78]
mov eax, 0x1d4c0
shr edx, 1
add edx, dword [rbx + 0x78]
cmp edx, eax
cmova edx, eax
or dword [rbx + 0x48], 1
lea eax, [r10 + rdx]
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], eax
jmp 0x18012c216
mov qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
je 0x18012c2f7
mov ecx, esi
sub ecx, r14d
lea eax, [rcx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x18012c24e
mov r8d, ecx
mov rdx, r14
mov rcx, rbx
call fcn.18012ae70
mov r8d, dword [rsp + 0xf8]
mov r9d, dword [rsp + 0x100]
mov rsi, r14
movzx eax, byte [rsp + 0x60]
movzx r12d, byte [rsp + 0x70]
mov byte [rsi], al
mov eax, r8d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 2], al
mov eax, r8d
shr eax, 0x18
mov byte [rsi + 3], al
mov word [rsi + 4], 0x53
mov byte [rsi + 6], r13b
movzx eax, r13w
shr ax, 8
mov byte [rsi + 7], al
mov byte [rsi + 8], r12b
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 + 0x74]
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 + 0x78]
mov byte [rsi + 0x10], al
mov eax, r9d
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, r9d
shr eax, 0x10
mov byte [rsi + 0x12], al
mov eax, r9d
shr eax, 0x18
add rsi, 0x18
mov byte [rsi - 5], al
mov dword [rsi - 4], 0
jmp 0x18012c2fd
movzx r12d, byte [rsp + 0x70]
test byte [rbx + 0x48], 2
je 0x18012c3d2
mov ecx, esi
sub ecx, r14d
lea eax, [rcx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x18012c335
mov r8d, ecx
mov rdx, r14
mov rcx, rbx
call fcn.18012ae70
mov r8d, dword [rsp + 0xf8]
mov r9d, dword [rsp + 0x100]
mov rsi, r14
movzx eax, byte [rsp + 0x60]
mov byte [rsi], al
mov eax, r8d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
mov byte [rsi + 3], r8b
mov byte [rsi + 2], al
mov word [rsi + 4], 0x54
mov byte [rsi + 6], r13b
movzx eax, r13w
shr ax, 8
mov byte [rsi + 7], al
mov byte [rsi + 8], r12b
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 + 0x74]
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 + 0x78]
mov byte [rsi + 0x10], al
mov eax, r9d
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, r9d
shr r9d, 0x18
shr eax, 0x10
mov byte [rsi + 0x13], r9b
add rsi, 0x18
mov byte [rsi - 6], al
mov dword [rsi - 4], 0
mov r12d, dword [rbx + 0x40]
xor r9d, r9d
cmp dword [rbx + 0x38], r12d
mov dword [rbx + 0x48], r9d
cmovbe r12d, dword [rbx + 0x38]
mov dword [rsp + 0x100], r12d
cmp dword [rbx + 0xf0], r9d
jne 0x18012c408
cmp dword [rbx + 0x44], r12d
cmovbe r12d, dword [rbx + 0x44]
mov dword [rsp + 0x100], r12d
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r12d
jns 0x18012c4b4
lea r8, [rbx + 0x88]
nop
mov rdx, qword [r8]
cmp r8, rdx
je 0x18012c4b4
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], r9
mov qword [rdx + 8], r9
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], r13d
mov dword [rdx + 0x20], r15d
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], r15d
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], r9
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r12d
js 0x18012c420
mov eax, dword [rbx + 0xe8]
or ebp, 0xffffffff
test eax, eax
cmovg ebp, eax
mov dword [rsp + 0xf8], ebp
cmp dword [rbx + 0x6c], r9d
jne 0x18012c4de
mov eax, dword [rbx + 0x30]
sar eax, 3
mov dword [rsp + 0xf0], eax
jmp 0x18012c4e6
mov dword [rsp + 0xf0], r9d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x18012c6e3
mov r12d, dword [rsp + 0xf0]
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x18012c51e
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
lea ecx, [rax + r12]
mov dword [rdi + 0x34], eax
add ecx, r15d
jmp 0x18012c580
cmp r15d, dword [rdi + 0x30]
js 0x18012c54e
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
inc dword [rbx + 0x58]
cmp dword [rbx + 0x6c], 0
mov eax, dword [rbx + 0x30]
je 0x18012c53b
cdq
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
mov ecx, dword [rdi + 0x34]
mov dword [rsp + 0x20], 1
add ecx, r15d
jmp 0x18012c580
cmp dword [rdi + 0x38], ebp
jb 0x18012c6c8
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x18012c569
test eax, eax
jg 0x18012c6c8
lea eax, [rcx + 1]
mov ecx, dword [rdi + 0x34]
mov dword [rdi + 0x38], r9d
add ecx, r15d
inc dword [rsp + 0x108]
mov dword [rdi + 0x3c], eax
mov dword [rdi + 0x30], ecx
mov dword [rdi + 0x20], r15d
mov dword [rdi + 0x1c], r13d
mov eax, dword [rbx + 0x18]
mov ebp, esi
sub ebp, r14d
mov dword [rdi + 0x28], eax
lea ecx, [rbp + 0x18]
add ecx, dword [rdi + 0x2c]
cmp ecx, dword [rbx + 4]
jle 0x18012c5e7
test byte [rbx + 0xf8], 1
je 0x18012c5cb
cmp qword [rbx + 0x108], 0
je 0x18012c5cb
lea r8, str._RO___ld_bytes
mov r9d, ebp
mov edx, 1
mov rcx, rbx
call fcn.18012add0
test ebp, ebp
je 0x18012c5e4
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, ebp
mov rcx, r14
call qword [rbx + pe_nt_image_headers64]
mov rsi, r14
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 0x18012c6af
lea rdx, [rdi + 0x40]
mov r8d, eax
mov rcx, rsi
call fcn.18017dd20
mov eax, dword [rdi + 0x2c]
add rsi, rax
mov eax, dword [rbx + 0x7c]
mov ebp, dword [rsp + 0xf8]
xor r9d, r9d
cmp dword [rdi + 0x3c], eax
jb 0x18012c6c8
mov dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x18012c501
mov r12d, dword [rsp + 0x100]
mov r13, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb8]
sub esi, r14d
test esi, esi
jle 0x18012c739
test byte [rbx + 0xf8], 1
je 0x18012c724
cmp qword [rbx + 0x108], 0
je 0x18012c724
lea r8, str._RO___ld_bytes
mov r9d, esi
mov edx, 1
mov rcx, rbx
call fcn.18012add0
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, esi
mov rcx, r14
call qword [rbx + pe_nt_image_headers64]
cmp dword [rsp + 0x108], 0
mov edx, 2
je 0x18012c76a
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, [rax + rbp]
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 + 0xc0]
je 0x18012c797
mov eax, dword [rbx + 8]
shr r12d, 1
mov dword [rbx + 0x44], 1
cmp r12d, edx
mov dword [rbx + 0x80], eax
cmovb r12d, edx
mov dword [rbx + 0x24], r12d
cmp dword [rbx + 0x44], 1
mov r12, qword [rsp + 0xb0]
jae 0x18012c7b5
mov eax, dword [rbx + 8]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0x80], eax
add rsp, 0xc8
pop r15
pop r14
pop rsi
pop rbx
ret