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

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push r12
sub rsp, 0x58
mov rbp, qword [rcx + 0xe0]
xor r10d, r10d
mov rbx, rcx
mov r12d, dword [rcx + 0x4c]
mov rsi, rbp
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x98], r10d
mov dword [rsp + 0x24], r10d
cmp dword [rcx + 0x70], r10d
je 0x180002bcc
mov qword [r11 - 0x28], rdi
mov r9d, r10d
mov edi, dword [rcx]
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov r14d, r10d
mov qword [r11 - 0x40], r15
mov r15d, r10d
mov dword [r11 + 0x18], edi
mov edx, dword [rcx + 0x64]
mov ecx, dword [rcx + 0x3c]
mov eax, dword [rbx + 0x18]
sub ecx, edx
cmp edx, dword [rbx + 0x3c]
mov dword [r11 + 0x10], eax
movsxd r13, dword [rbx + 0xd0]
cmovb r9d, ecx
mov dword [rsp + 0x80], r9d
test r13, r13
jle 0x180002754
mov r12d, dword [r11 + 0x18]
mov edi, r10d
mov r8d, esi
sub r8d, ebp
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x180002708
mov rdx, rbp
mov rcx, rbx
call fcn.1800017c0
mov r9d, dword [rsp + 0x80]
xor r10d, r10d
mov rsi, rbp
mov rax, qword [rbx + 0xc8]
mov r14d, dword [rax + rdi*8]
mov r15d, dword [rax + rdi*8 + 4]
inc rdi
mov eax, dword [rsp + 0x88]
mov dword [rsi], r12d
mov word [rsi + 4], 0x52
mov word [rsi + 6], r9w
mov dword [rsi + 8], r15d
mov dword [rsi + 0xc], r14d
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x14], r10d
add rsi, 0x18
cmp rdi, r13
jl 0x1800026e0
mov r12d, dword [rsp + 0x20]
mov edi, dword [rsp + 0x90]
cmp dword [rbx + 0x40], 0
mov dword [rbx + 0xd0], r10d
jne 0x1800027bd
mov ecx, dword [rbx + 0x78]
test ecx, ecx
jne 0x18000277a
mov eax, dword [rbx + 0x4c]
mov edx, 0x1b58
add eax, edx
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], eax
jmp 0x1800027c5
mov r8d, dword [rbx + 0x4c]
cmp r8d, dword [rbx + 0x74]
js 0x1800027c5
mov edx, 0x1b58
mov eax, 0x1d4c0
cmp ecx, edx
cmovb ecx, edx
mov edx, ecx
shr edx, 1
add edx, ecx
mov dword [rbx + 0x78], edx
cmp edx, eax
jbe 0x1800027af
mov dword [rbx + 0x78], eax
add eax, r8d
or dword [rbx + 0x48], 1
mov dword [rbx + 0x74], eax
jmp 0x1800027c5
mov eax, edx
add eax, r8d
or dword [rbx + 0x48], 1
mov dword [rbx + 0x74], eax
jmp 0x1800027c5
mov qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
mov ecx, ebp
mov dword [rsp + 0x90], ecx
je 0x180002829
mov r8d, esi
sub r8d, ebp
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800027fe
mov rdx, rbp
mov rcx, rbx
call fcn.1800017c0
mov r9d, dword [rsp + 0x80]
mov ecx, ebp
xor r10d, r10d
mov rsi, rbp
mov r13d, dword [rsp + 0x88]
mov dword [rsi], edi
mov word [rsi + 4], 0x53
mov word [rsi + 6], r9w
mov dword [rsi + 8], r15d
mov dword [rsi + 0xc], r14d
mov dword [rsi + 0x10], r13d
mov dword [rsi + 0x14], r10d
add rsi, 0x18
jmp 0x180002831
mov r13d, dword [rsp + 0x88]
test byte [rbx + 0x48], 2
je 0x180002880
mov r8d, esi
sub r8d, ecx
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x18000285f
mov rdx, rbp
mov rcx, rbx
call fcn.1800017c0
mov r9d, dword [rsp + 0x80]
xor r10d, r10d
mov rsi, rbp
mov dword [rsi], edi
mov word [rsi + 4], 0x54
mov word [rsi + 6], r9w
mov dword [rsi + 8], r15d
mov dword [rsi + 0xc], r14d
mov dword [rsi + 0x10], r13d
mov dword [rsi + 0x14], r10d
add rsi, 0x18
mov r15d, dword [rbx + 0x40]
cmp dword [rbx + 0x38], r15d
mov dword [rbx + 0x48], r10d
cmovbe r15d, dword [rbx + 0x38]
cmp dword [rbx + 0xec], 0
mov dword [rsp + 0x20], r15d
jne 0x1800028ad
cmp dword [rbx + 0x44], r15d
cmovbe r15d, dword [rbx + 0x44]
mov dword [rsp + 0x20], r15d
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r15d
jns 0x18000295b
lea r8, [rbx + 0x88]
mov rdx, qword [r8]
cmp r8, rdx
je 0x18000295b
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 + 0x10], eax
mov dword [rdx + 0x14], 0x51
mov dword [rdx + 0x1c], r9d
mov dword [rdx + 0x20], r12d
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], r12d
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], 0
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r15d
js 0x1800028c3
mov eax, dword [rbx + 0xe8]
mov r14d, 0xffffffff
test eax, eax
cmovg r14d, eax
cmp dword [rbx + 0x6c], 0
mov dword [rsp + 0x88], r14d
jne 0x180002985
mov r13d, dword [rbx + 0x30]
sar r13d, 3
jmp 0x180002988
mov r13d, r10d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x180002b0b
mov r15d, dword [rsp + 0x98]
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x1800029bd
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0x34], eax
lea ecx, [rax + r13]
jmp 0x180002a08
cmp r12d, dword [rdi + 0x30]
js 0x1800029ee
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
inc dword [rbx + 0x58]
cmp dword [rbx + 0x6c], 0
mov eax, dword [rbx + 0x30]
je 0x1800029da
cdq
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
mov eax, dword [rdi + 0x34]
mov dword [rsp + 0x24], 1
lea ecx, [rax + r12]
jmp 0x180002a0b
cmp dword [rdi + 0x38], r14d
jb 0x180002aeb
lea eax, [rcx + 1]
mov dword [rdi + 0x38], r10d
mov ecx, dword [rdi + 0x34]
inc r15d
mov dword [rdi + 0x3c], eax
add ecx, r12d
mov dword [rdi + 0x30], ecx
mov r14d, esi
sub r14d, ebp
mov dword [rdi + 0x20], r12d
mov dword [rdi + 0x1c], r9d
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x28], eax
lea ecx, [r14 + 0x18]
add ecx, dword [rdi + 0x2c]
cmp ecx, dword [rbx + 4]
jle 0x180002a76
test byte [rbx + 0xf4], 1
je 0x180002a58
cmp qword [rbx + 0x100], 0
je 0x180002a58
mov r9d, r14d
lea r8, str._RO___ld_bytes
mov edx, 1
mov rcx, rbx
call fcn.180001710
test r14d, r14d
je 0x180002a73
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, r14d
mov rcx, rbp
call qword [rbx + 0xf8]
mov rsi, rbp
mov eax, dword [rdi + 0x10]
mov dword [rsi], eax
movzx eax, byte [rdi + 0x14]
mov byte [rsi + 4], al
movzx eax, byte [rdi + 0x18]
mov byte [rsi + 5], al
movzx eax, word [rdi + 0x1c]
mov word [rsi + 6], ax
mov eax, dword [rdi + 0x20]
mov dword [rsi + 8], eax
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0xc], eax
mov eax, dword [rdi + 0x28]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x2c]
mov dword [rsi + 0x14], eax
add rsi, 0x18
mov eax, dword [rdi + 0x2c]
test eax, eax
je 0x180002ac9
mov r8d, eax
lea rdx, [rdi + 0x40]
mov rcx, rsi
call fcn.18004b110
mov eax, dword [rdi + 0x2c]
add rsi, rax
mov eax, dword [rbx + 0x7c]
xor r10d, r10d
mov r9d, dword [rsp + 0x80]
mov r14d, dword [rsp + 0x88]
cmp dword [rdi + 0x3c], eax
jb 0x180002aeb
mov dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x1800029a3
mov dword [rsp + 0x98], r15d
mov r15d, dword [rsp + 0x20]
sub esi, dword [rsp + 0x90]
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
test esi, esi
jle 0x180002b5f
test byte [rbx + 0xf4], 1
je 0x180002b4a
cmp qword [rbx + 0x100], 0
je 0x180002b4a
mov r9d, esi
lea r8, str._RO___ld_bytes
mov edx, 1
mov rcx, rbx
call fcn.180001710
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, esi
mov rcx, rbp
call qword [rbx + 0xf8]
cmp dword [rsp + 0x98], 0
mov edx, 2
je 0x180002b95
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
mov dword [rbx + 0x24], eax
cmp eax, edx
jae 0x180002b82
mov dword [rbx + 0x24], edx
mov eax, edx
lea ecx, [rax + r14]
mov eax, dword [rbx + 8]
imul eax, ecx
mov dword [rbx + 0x44], ecx
mov dword [rbx + 0x80], eax
cmp dword [rsp + 0x24], 0
mov r14, qword [rsp + 0x40]
je 0x180002bb1
shr r15d, 1
cmp r15d, edx
cmovb r15d, edx
mov dword [rbx + 0x24], r15d
jmp 0x180002bb7
cmp dword [rbx + 0x44], 1
jae 0x180002bc7
mov eax, dword [rbx + 8]
mov dword [rbx + 0x80], eax
mov dword [rbx + 0x44], 1
mov r15, qword [rsp + 0x38]
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret