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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r8d, dword [rcx + 0x1100]
mov r9, rcx
sub r8d, dword [rcx + 0x10f8]
mov esi, 1
cmp r8d, edx
cmovae r8d, edx
mov eax, r8d
add qword [rcx + 0x10f8], rax
mov ecx, dword [rcx + 0x10f0]
add ecx, r8d
mov dword [r9 + 0x10f0], ecx
sub edx, r8d
mov dword [rsp + 0x88], edx
test edx, edx
je 0x14014899d
mov edi, dword [r9 + 0x64]
lea rbx, [r9 + 0x18]
mov r12d, dword [rbx + 0x48]
xor r15d, r15d
mov r14d, dword [rbx + 0x50]
mov r13, rbx
mov dword [rsp + 0x20], edi
mov ebp, edx
cmp edx, 0x1000
jb 0x140148657
mov ebp, 0x1000
mov ecx, dword [rbx]
mov dword [rsp + 0x24], ebp
test ecx, ecx
je 0x140148678
sub ecx, 1
je 0x14014877b
cmp ecx, 1
je 0x1401488bd
jmp 0x140148974
mov rcx, qword [rbx + 0xc8]
mov edx, 2
call fcn.1400dd260
test eax, eax
jne 0x14014895b
mov rsi, qword [rbx + 0xc8]
mov eax, dword [rsi + 0xc]
mov edi, dword [rsi + 8]
cmp eax, edi
jae 0x140148956
mov r10, qword [rsi + 0x20]
test r10, r10
je 0x1401486c9
mov r9d, 1
lea r8, [rsp + 0x90]
mov edx, eax
mov rcx, rsi
call r10
mov edi, eax
jmp 0x1401486ec
sub edi, eax
mov ecx, 1
cmp edi, 1
mov rdx, rax
cmova edi, ecx
add rdx, qword [rsi]
mov r8d, edi
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memcpy
add dword [rsi + 0xc], edi
mov esi, 1
cmp edi, esi
jne 0x14014895b
movzx edx, byte [rsp + 0x90]
mov r8d, esi
mov ecx, edx
and edx, 0x80
and ecx, 0x1f
mov dword [rbx + 0x34], edx
shl r8d, cl
add r8d, 0xffffff00
mov dword [rbx + 0x30], ecx
mov dword [rbx + 0x38], r8d
cmp ecx, 0x10
ja 0x14014895b
xor eax, eax
mov dword [rbx + 0x3c], 9
test edx, edx
setne al
xor r14d, r14d
mov dword [rbx + 0x40], eax
mov eax, 0x100
cmp ecx, 9
ja 0x140148751
lea eax, [r8 + 1]
mov rcx, rbx
mov dword [rbx + 0x44], eax
call fcn.140148bf0
cmp eax, 0xff
ja 0x14014895b
mov dword [rsp + 0x20], eax
mov r12d, eax
mov r15d, esi
cmp ebp, esi
jbe 0x140148965
mov dword [rbx], esi
mov rcx, rbx
call fcn.140148bf0
mov esi, eax
test eax, eax
js 0x140148956
cmp eax, 0x100
jne 0x1401487b0
cmp dword [rbx + 0x34], 0
je 0x1401487b0
xor r12d, r12d
mov dword [rbx + 0x40], 0
xor edi, edi
mov byte [rbx + 0x20], 1
mov dword [rsp + 0x20], edi
jmp 0x14014877b
mov dword [rsp + 0x98], eax
cmp eax, 0x100
jb 0x14014887a
lea ecx, [rax - 0x100]
cmp ecx, dword [rbx + 0x40]
jb 0x14014880e
ja 0x140148953
mov eax, dword [rbx + 0x78]
lea rdi, [rbx + 0x78]
lea rbp, [rbx + 0x80]
cmp rax, qword [rbp]
jb 0x1401487f7
mov rcx, rbx
call fcn.140148d60
test eax, eax
js 0x14014894e
mov ecx, dword [rdi]
lea r14, [rbx + 0x70]
mov rax, qword [r14]
mov esi, r12d
mov edx, dword [rsp + 0x20]
mov byte [rcx + rax], dl
inc dword [rdi]
jmp 0x14014881d
lea rdi, [r13 + 0x78]
lea rbp, [r13 + 0x80]
lea r14, [r13 + 0x70]
cmp esi, 0x100
jb 0x14014887a
cmp qword [rbx + 0x58], 0
je 0x140148944
mov eax, dword [rdi]
mov rcx, r14
cmp rax, qword [rbp]
jb 0x14014884f
mov rcx, rbx
call fcn.140148d60
test eax, eax
js 0x140148944
lea rcx, [r13 + 0x70]
mov rax, qword [rbx + 0x60]
lea r8d, [rsi - 0x100]
mov edx, dword [rdi]
mov rcx, qword [rcx]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rdi]
mov rax, qword [rbx + 0x58]
movzx esi, word [rax + r8*2]
cmp esi, 0x100
jae 0x140148825
mov eax, dword [rbx + 0x78]
mov edi, esi
mov dword [rsp + 0x20], esi
cmp rax, qword [rbx + 0x80]
jb 0x14014889c
mov rcx, rbx
call fcn.140148d60
test eax, eax
js 0x140148944
mov ecx, dword [rbx + 0x78]
mov rax, qword [rbx + 0x70]
mov r14d, dword [rsp + 0x98]
mov byte [rcx + rax], sil
mov esi, 1
inc dword [rbx + 0x78]
mov dword [rbx], 2
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x1401488e1
mov ebp, dword [rsp + 0x24]
nop dword [rax + rax]
dec eax
inc r15d
mov dword [rbx + 0x78], eax
cmp r15d, ebp
je 0x14014891c
test eax, eax
jne 0x1401488d0
mov eax, dword [rbx + 0x40]
cmp eax, dword [rbx + 0x38]
jae 0x140148914
cmp eax, dword [rbx + 0x68]
jb 0x1401488fa
mov rcx, rbx
call fcn.140148e90
test eax, eax
js 0x14014895b
mov ecx, dword [rbx + 0x40]
mov rax, qword [rbx + 0x58]
mov word [rax + rcx*2], r12w
mov ecx, dword [rbx + 0x40]
mov rax, qword [rbx + 0x60]
mov byte [rcx + rax], dil
inc dword [rbx + 0x40]
mov r12d, r14d
jmp 0x140148779
mov r9, qword [rsp + 0x80]
mov edx, dword [rsp + 0x88]
mov dword [rbx + 0x48], r12d
mov dword [rbx + 0x4c], edi
mov dword [rbx + 0x50], r14d
add dword [r9 + 0x10f0], ebp
sub edx, ebp
jmp 0x14014861f
mov r14d, dword [rsp + 0x98]
jmp 0x140148956
mov r14d, esi
jmp 0x140148956
mov r14d, eax
mov esi, 1
mov ebp, dword [rsp + 0x24]
mov dword [rbx], 3
mov r9, qword [rsp + 0x80]
mov edx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x4c], eax
mov dword [rbx + 0x48], r12d
mov dword [rbx + 0x50], r14d
cmp r15d, ebp
jb 0x140148996
add dword [r9 + 0x10f0], ebp
sub edx, ebp
jmp 0x14014861f
mov eax, 0x55
jmp 0x14014899f
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret