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

Disassembly:
mov rax, rsp
push rbx
push rsi
push r12
push r14
sub rsp, 0xc8
mov r14, qword [rcx + 0xe0]
xor edx, edx
mov rbx, rcx
mov r12d, dword [rcx + 0x4c]
mov rsi, r14
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0x108], edx
mov dword [rsp + 0x24], edx
cmp dword [rcx + 0x70], edx
je 0x18000372c
mov r9d, dword [rbx + 0x3c]
mov qword [rax - 0x28], rbp
mov ebp, edx
mov qword [rax - 0x30], rdi
mov edi, edx
mov qword [rax - 0x38], r13
mov r13d, dword [rcx]
mov ecx, dword [rcx + 0x64]
sub r9d, ecx
cmp ecx, dword [rbx + 0x3c]
mov ecx, dword [rbx + 0x18]
cmovae r9d, edx
mov qword [rax - 0x40], r15
movsxd rax, dword [rbx + 0xd0]
mov dword [rsp + 0xf8], r9d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x100], ecx
mov dword [rsp + 0x78], ecx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x48], rax
test rax, rax
jle 0x1800030f9
mov eax, r13d
mov r15d, edx
shr eax, 8
mov dword [rsp + 0x20], eax
mov eax, r13d
mov r12d, dword [rsp + 0x20]
shr eax, 0x10
mov dword [rsp + 0x28], eax
mov eax, r13d
mov r13d, dword [rsp + 0x28]
shr eax, 0x18
mov dword [rsp + 0x2c], eax
movzx eax, r9w
shr ax, 8
mov word [rsp + 0xf0], ax
mov eax, ecx
shr eax, 8
mov dword [rsp + 0x30], eax
mov eax, ecx
shr eax, 0x10
mov dword [rsp + 0x34], eax
mov eax, ecx
shr eax, 0x18
mov dword [rsp + 0x38], eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, esi
sub r8d, r14d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x180003035
mov rdx, r14
mov rcx, rbx
call fcn.180001fc0
mov r9d, dword [rsp + 0xf8]
mov rsi, r14
mov rax, qword [rbx + 0xc8]
mov edi, dword [rax + r15*8]
mov ebp, dword [rax + r15*8 + 4]
inc r15
movzx eax, byte [rsp + 0x60]
mov byte [rsi], al
mov eax, dword [rsp + 0x2c]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0xf0]
mov byte [rsi + 7], al
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
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, dword [rsp + 0x30]
mov byte [rsi + 0x11], al
mov eax, dword [rsp + 0x34]
mov byte [rsi + 0x12], al
mov eax, dword [rsp + 0x38]
mov byte [rsi + 0x13], al
mov byte [rsi + 1], r12b
mov byte [rsi + 2], r13b
mov word [rsi + 4], 0x52
mov byte [rsi + 6], r9b
mov byte [rsi + 8], bpl
mov byte [rsi + 0xc], dil
mov dword [rsi + 0x14], 0
add rsi, 0x18
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x70], ebp
cmp r15, qword [rsp + 0x48]
jl 0x180003010
mov r12d, dword [rsp + 0x3c]
xor edx, edx
mov r13d, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x100]
cmp dword [rbx + 0x40], 0
mov dword [rbx + 0xd0], edx
jne 0x18000316b
mov edx, dword [rbx + 0x78]
test edx, edx
jne 0x180003120
mov eax, dword [rbx + 0x4c]
add eax, 0x1b58
mov dword [rbx + 0x78], 0x1b58
mov dword [rbx + 0x74], eax
jmp 0x180003173
mov r8d, dword [rbx + 0x4c]
cmp r8d, dword [rbx + 0x74]
js 0x180003173
cmp edx, 0x1b58
jae 0x180003149
mov eax, 0x2904
mov dword [rbx + 0x78], eax
or dword [rbx + 0x48], 1
mov edx, eax
lea eax, [rax + r8]
mov dword [rbx + 0x74], eax
jmp 0x180003173
mov eax, edx
shr eax, 1
add eax, edx
mov edx, 0x1d4c0
mov dword [rbx + 0x78], eax
cmp eax, edx
jbe 0x18000313a
or dword [rbx + 0x48], 1
lea eax, [rdx + r8]
mov dword [rbx + 0x74], eax
mov dword [rbx + 0x78], edx
jmp 0x180003173
mov qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
mov edx, r14d
movzx r15d, byte [rsp + 0x74]
mov dword [rsp + 0xf0], edx
je 0x18000325a
mov r8d, esi
sub r8d, r14d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800031bc
mov rdx, r14
mov rcx, rbx
call fcn.180001fc0
mov ecx, dword [rsp + 0x100]
mov edx, r14d
mov r9d, dword [rsp + 0xf8]
mov rsi, r14
movzx eax, byte [rsp + 0x60]
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
movzx eax, r9w
shr ax, 8
mov byte [rsi + 7], al
movzx eax, byte [rsp + 0x70]
mov byte [rsi + 8], al
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
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, ecx
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0x12], al
mov eax, ecx
shr eax, 0x18
mov byte [rsi + 0x13], al
mov word [rsi + 4], 0x53
mov byte [rsi + 6], r9b
mov byte [rsi + 0xc], r15b
mov dword [rsi + 0x14], 0
add rsi, 0x18
test byte [rbx + 0x48], 2
je 0x180003329
mov r8d, esi
sub r8d, edx
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x180003290
mov rdx, r14
mov rcx, rbx
call fcn.180001fc0
mov ecx, dword [rsp + 0x100]
mov rsi, r14
mov r9d, dword [rsp + 0xf8]
movzx eax, byte [rsp + 0x60]
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
movzx eax, r9w
shr ax, 8
mov byte [rsi + 7], al
movzx eax, byte [rsp + 0x70]
mov byte [rsi + 8], al
mov eax, ebp
shr eax, 8
mov byte [rsi + 9], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xa], al
mov eax, edi
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, edi
shr eax, 0x10
mov byte [rsi + 0xe], al
movzx eax, byte [rsp + 0x78]
mov byte [rsi + 0x10], al
mov eax, ecx
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, ecx
shr eax, 0x10
shr r13d, 0x18
shr ebp, 0x18
shr edi, 0x18
shr ecx, 0x18
mov byte [rsi + 0x12], al
mov byte [rsi + 3], r13b
mov word [rsi + 4], 0x54
mov byte [rsi + 6], r9b
mov byte [rsi + 0xb], bpl
mov byte [rsi + 0xc], r15b
mov byte [rsi + 0xf], dil
mov byte [rsi + 0x13], cl
mov dword [rsi + 0x14], 0
add rsi, 0x18
mov r15d, dword [rbx + 0x40]
xor r10d, r10d
cmp dword [rbx + 0x38], r15d
mov dword [rbx + 0x48], r10d
cmovbe r15d, dword [rbx + 0x38]
mov dword [rsp + 0x20], r15d
cmp dword [rbx + 0xf0], r10d
jne 0x180003359
cmp dword [rbx + 0x44], r15d
cmovbe r15d, dword [rbx + 0x44]
mov dword [rsp + 0x20], r15d
mov eax, dword [rbx + 0x14]
sub eax, r15d
cmp eax, dword [rbx + 0x10]
jns 0x180003404
lea r8, [rbx + 0x88]
nop
mov rdx, qword [r8]
cmp r8, rdx
je 0x180003404
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], r10
mov eax, dword [rbx + 0x14]
sub eax, r15d
cmp eax, dword [rbx + 0x10]
js 0x180003370
mov eax, dword [rbx + 0xe8]
mov ebp, 0xffffffff
test eax, eax
cmovg ebp, eax
mov dword [rsp + 0x100], ebp
cmp dword [rbx + 0x6c], r10d
jne 0x18000342b
mov r13d, dword [rbx + 0x30]
sar r13d, 3
jmp 0x18000342e
mov r13d, r10d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x180003663
mov r15d, r10d
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x180003461
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0x34], eax
lea ecx, [rax + r13]
jmp 0x1800034ef
cmp r12d, dword [rdi + 0x30]
js 0x1800034c4
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
inc dword [rbx + 0x58]
mov eax, dword [rbx + 0x6c]
test eax, eax
jne 0x180003496
mov eax, dword [rdi + 0x34]
mov ecx, dword [rbx + 0x30]
cmp eax, ecx
mov dword [rsp + 0x24], 1
cmovae ecx, eax
lea edx, [rcx + rax]
mov dword [rdi + 0x34], edx
lea ecx, [rdx + r12]
jmp 0x1800034f2
cmp eax, 2
jae 0x1800034a2
mov eax, dword [rdi + 0x34]
mov ecx, eax
jmp 0x1800034a8
mov eax, dword [rbx + 0x30]
mov ecx, dword [rdi + 0x34]
test eax, eax
jns 0x1800034ae
inc eax
sar eax, 1
mov dword [rsp + 0x24], 1
lea edx, [rax + rcx]
mov dword [rdi + 0x34], edx
lea ecx, [rdx + r12]
jmp 0x1800034f2
cmp dword [rdi + 0x38], ebp
jb 0x180003643
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x1800034df
test eax, eax
jg 0x180003643
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 ebp, esi
mov ecx, dword [rdi + 0x2c]
sub ebp, r14d
add ecx, 0x18
mov dword [rdi + 0x20], r12d
mov dword [rdi + 0x1c], r9d
add ecx, ebp
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x28], eax
cmp ecx, dword [rbx + 4]
jle 0x18000355b
test byte [rbx + 0xf8], 1
je 0x18000353f
cmp qword [rbx + 0x108], 0
je 0x18000353f
mov r9d, ebp
lea r8, str._RO___ld_bytes
mov edx, 1
mov rcx, rbx
call fcn.180001ef0
test ebp, ebp
je 0x180003558
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, ebp
mov rcx, r14
call qword [rbx + 0x100]
mov rsi, r14
mov ecx, dword [rdi + 0x10]
mov eax, ecx
shr eax, 8
mov byte [rsi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 2], al
mov byte [rsi], cl
shr ecx, 0x18
mov byte [rsi + 3], cl
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 byte [rsi + 6], al
shr ax, 8
mov byte [rsi + 7], al
mov ecx, dword [rdi + 0x20]
mov eax, ecx
shr eax, 8
mov byte [rsi + 9], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0xa], al
mov byte [rsi + 8], cl
shr ecx, 0x18
mov byte [rsi + 0xb], cl
mov ecx, dword [rdi + 0x24]
mov eax, ecx
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0xe], al
mov byte [rsi + 0xc], cl
shr ecx, 0x18
mov byte [rsi + 0xf], cl
mov ecx, dword [rdi + 0x28]
mov eax, ecx
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0x12], al
mov byte [rsi + 0x10], cl
shr ecx, 0x18
mov byte [rsi + 0x13], cl
mov ecx, dword [rdi + 0x2c]
mov eax, ecx
shr eax, 8
mov byte [rsi + 0x15], al
mov eax, ecx
mov byte [rsi + 0x14], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [rsi + 0x16], al
mov byte [rsi + 0x17], cl
add rsi, 0x18
mov eax, dword [rdi + 0x2c]
test eax, eax
je 0x180003622
mov r8d, eax
lea rdx, [rdi + 0x40]
mov rcx, rsi
call fcn.18003a960
mov eax, dword [rdi + 0x2c]
add rsi, rax
mov eax, dword [rbx + 0x7c]
xor r10d, r10d
mov r9d, dword [rsp + 0xf8]
mov ebp, dword [rsp + 0x100]
cmp dword [rdi + 0x3c], eax
jb 0x180003643
mov dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x180003444
mov dword [rsp + 0x108], r15d
mov r15d, dword [rsp + 0x20]
sub esi, dword [rsp + 0xf0]
mov r13, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
test esi, esi
jle 0x1800036bd
test byte [rbx + 0xf8], 1
je 0x1800036a8
cmp qword [rbx + 0x108], 0
je 0x1800036a8
mov r9d, esi
lea r8, str._RO___ld_bytes
mov edx, 1
mov rcx, rbx
call fcn.180001ef0
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, esi
mov rcx, r14
call qword [rbx + 0x100]
cmp dword [rsp + 0x108], 0
mov ecx, 2
je 0x1800036ef
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
mov dword [rbx + 0x24], eax
cmp eax, ecx
jae 0x1800036e0
mov dword [rbx + 0x24], ecx
mov eax, ecx
add eax, ebp
mov dword [rbx + 0x44], eax
imul eax, dword [rbx + 8]
mov dword [rbx + 0x80], eax
cmp dword [rsp + 0x24], 0
mov rbp, qword [rsp + 0xc0]
je 0x18000370e
shr r15d, 1
cmp r15d, ecx
cmovb r15d, ecx
mov dword [rbx + 0x24], r15d
jmp 0x180003714
cmp dword [rbx + 0x44], 1
jae 0x180003724
mov eax, dword [rbx + 8]
mov dword [rbx + 0x80], eax
mov dword [rbx + 0x44], 1
mov r15, qword [rsp + 0xa8]
add rsp, 0xc8
pop r14
pop r12
pop rsi
pop rbx
ret