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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r13d, r13d
mov eax, dword [rcx + 0x50]
mov edi, dword [rcx + 0x4c]
mov ebp, dword [rcx + 0x48]
mov qword [rsp + 0xa8], rdx
mov rbx, rcx
mov r14d, r8d
mov dword [rsp + 0x34], eax
test r8d, r8d
je 0x61d7fd32
mov r13d, dword [rcx]
cmp r13d, 1
je 0x61d7ffa8
cmp r13d, 2
je 0x61d7fd58
test r13d, r13d
je 0x61d7fe08
xor r13d, r13d
mov eax, dword [rsp + 0x34]
mov dword [rbx + 0x48], ebp
mov dword [rbx + 0x4c], edi
mov dword [rbx + 0x50], eax
mov eax, r13d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
cmp qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0xa8]
je 0x61d7fdfb
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x61d7fda4
nop dword [rax]
mov rdx, qword [rbx + 0x70]
sub eax, 1
mov dword [rbx + 0x78], eax
movzx edx, byte [rdx + rax]
mov eax, r13d
add r13d, 1
mov byte [rcx + rax], dl
cmp r14d, r13d
je 0x61d7fd32
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x61d7fd80
mov eax, dword [rbx + 0x40]
cmp eax, dword [rbx + 0x38]
jae 0x61d7fdd2
mov r12d, dword [rbx + 0x68]
cmp eax, r12d
jae 0x61d80330
mov rdx, qword [rbx + 0x58]
mov word [rdx + rax*2], bp
mov rdx, qword [rbx + 0x60]
mov byte [rdx + rax], dil
mov eax, dword [rbx + 0x40]
add eax, 1
mov dword [rbx + 0x40], eax
mov dword [rbx], 1
mov ebp, dword [rsp + 0x34]
jmp 0x61d7ffae
sub eax, 1
add r13d, 1
mov dword [rbx + 0x78], eax
cmp r14d, r13d
je 0x61d7fd32
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x61d7fde8
jmp 0x61d7fda4
mov rcx, qword [rcx + 0xc8]
mov edx, 2
call fcn.61c74160
test eax, eax
jne 0x61d80160
mov rcx, qword [rbx + 0xc8]
lea rdx, [rsp + 0x4c]
mov r8d, 1
call fcn.61c74200
cmp eax, 1
jne 0x61d80160
movzx edx, byte [rsp + 0x4c]
mov ecx, edx
mov r8d, edx
and edx, 0xffffff80
and ecx, 0x1f
and r8d, 0x1f
movzx edx, dl
shl eax, cl
mov dword [rbx + 0x30], r8d
lea r8d, [rax - 0x100]
mov dword [rbx + 0x34], edx
mov dword [rbx + 0x38], r8d
cmp cl, 0x10
ja 0x61d80160
xor r8d, r8d
test edx, edx
movzx r9d, byte [rbx + 0x20]
mov edx, dword [rbx + 0x18]
setne r8b
mov dword [rbx + 0x3c], 9
mov dword [rbx + 0x40], r8d
cmp cl, 9
ja 0x61d8047c
sub eax, 0xff
mov dword [rbx + 0x44], eax
test r9b, r9b
jne 0x61d80586
cmp dword [rbx + 0x1c], edx
jbe 0x61d805b8
cmp r8d, eax
jb 0x61d804a1
mov dword [rbx + 0x3c], 0xa
cmp cl, 0xa
jbe 0x61d805c8
mov dword [rbx + 0x44], 0x300
mov esi, 3
mov r12d, 0xa
nop
mov eax, dword [rbx + 4]
test eax, eax
jne 0x61d805ab
mov rcx, qword [rbx + 0xc8]
mov r8d, dword [rbx + 0x3c]
lea rdx, [rbx + 8]
call fcn.61c74200
xor ecx, ecx
mov dword [rbx + 0x18], 0
mov edx, eax
add qword [rbx + 0x28], rdx
mov edx, dword [rbx + 0x3c]
cmp eax, edx
setb cl
mov dword [rbx + 4], ecx
lea ecx, [rax*8]
cmp edx, ecx
jae 0x61d805a8
sub ecx, edx
lea edx, [rcx + 1]
mov dword [rbx + 0x1c], edx
test eax, eax
je 0x61d805ab
mov dword [rbx + 0x18], r12d
movzx r8d, byte [rbx + 8]
lea r10, [rbx + 9]
mov r9d, 8
movzx eax, byte [r10]
mov ecx, r9d
and esi, eax
shl esi, cl
or esi, r8d
mov edx, esi
mov eax, esi
cmp edx, 0xff
ja 0x61d805ab
cmp qword [rsp + 0xa8], 0
je 0x61d7ff7e
mov rdi, qword [rsp + 0xa8]
mov byte [rdi], al
cmp r14d, 1
jbe 0x61d805db
mov dword [rbx], 1
mov eax, dword [rbx + 0x40]
mov ebp, edx
mov edi, edx
mov dword [rsp + 0x34], 0
mov r13d, 1
jmp 0x61d7ffae
mov eax, dword [rcx + 0x40]
xor r13d, r13d
mov r10d, dword [rbx + 0x18]
movzx r8d, byte [rbx + 0x20]
lea r15, [rbx + 8]
mov edx, dword [rbx + 0x3c]
jmp 0x61d80073
cmp dword [rbx + 0x1c], r10d
jbe 0x61d801c0
cmp eax, ecx
jae 0x61d8008a
mov ecx, r10d
mov r11d, r10d
mov r9d, 8
add r10d, edx
shr ecx, 3
and r11d, 7
sub r9d, r11d
lea rax, [rcx + 8]
nop word [rax + rax]
mov dword [rbx + 0x18], r10d
movzx esi, byte [rbx + rcx + 8]
add r12d, r11d
mov ecx, r11d
add rax, rbx
sar esi, cl
lea ecx, [r12 - 8]
cmp ecx, 7
ja 0x61d80170
lea r8, [rax + 1]
test ecx, ecx
je 0x61d801e0
mov eax, 0xffffffff
shl eax, cl
movzx ecx, byte [r8]
not eax
and eax, ecx
mov ecx, r9d
shl eax, cl
or esi, eax
mov eax, esi
cmp eax, 0x100
jne 0x61d80132
mov eax, dword [rbx + 0x34]
test eax, eax
je 0x61d80218
mov dword [rbx + 0x40], 0
xor eax, eax
xor ebp, ebp
xor edi, edi
mov byte [rbx + 0x20], 1
mov r8d, 1
mov ecx, dword [rbx + 0x44]
mov r12d, edx
test r8b, r8b
je 0x61d7ffc8
cmp eax, ecx
jb 0x61d801a0
lea r12d, [rdx + 1]
mov dword [rbx + 0x3c], r12d
cmp r12d, 0x10
ja 0x61d80160
cmp r12d, dword [rbx + 0x30]
jae 0x61d801d0
mov eax, 1
mov ecx, r12d
shl eax, cl
sub eax, 0x100
mov dword [rbx + 0x44], eax
test r8b, r8b
jne 0x61d801a0
mov eax, dword [rbx + 4]
test eax, eax
jne 0x61d80160
mov rcx, qword [rbx + 0xc8]
mov r8d, r12d
mov rdx, r15
call fcn.61c74200
xor ecx, ecx
mov dword [rbx + 0x18], 0
mov edx, eax
add qword [rbx + 0x28], rdx
mov edx, dword [rbx + 0x3c]
lea r8d, [rax*8]
cmp eax, edx
setb cl
mov dword [rbx + 4], ecx
cmp edx, r8d
jae 0x61d80473
mov ecx, 1
sub ecx, edx
add ecx, r8d
mov dword [rbx + 0x1c], ecx
test eax, eax
je 0x61d80160
mov r10d, r12d
mov eax, 8
mov r9d, 8
xor ecx, ecx
xor r11d, r11d
jmp 0x61d80000
cmp esi, 0xff
jbe 0x61d801e0
lea eax, [rsi - 0x100]
cmp dword [rbx + 0x40], eax
mov dword [rsp + 0x34], esi
ja 0x61d80230
jae 0x61d8039d
nop word [rax + rax]
mov dword [rbx], 3
jmp 0x61d7fd32
lea r8, [rax + 2]
movzx eax, byte [rax + 1]
mov ecx, r9d
mov r9d, 0x10
sub r9d, r11d
shl eax, cl
mov ecx, r12d
or eax, esi
mov esi, eax
sub ecx, 0x10
je 0x61d80046
jmp 0x61d8002e
mov dword [rbx + 0x3c], 9
mov r12d, 9
mov dword [rbx + 0x44], 0x100
mov byte [rbx + 0x20], 0
jmp 0x61d800c1
cmp eax, ecx
jb 0x61d800c1
jmp 0x61d8008a
mov eax, dword [rbx + 0x38]
add eax, 1
jmp 0x61d800b5
mov dword [rsp + 0x34], esi
mov edi, esi
mov edx, dword [rbx + 0x78]
mov rsi, qword [rbx + 0x80]
mov rcx, qword [rbx + 0x70]
mov rax, rdx
cmp rdx, rsi
jae 0x61d804f0
add eax, 1
mov dword [rbx + 0x78], eax
mov byte [rcx + rdx], dil
mov dword [rbx], 2
jmp 0x61d7fd5b
mov eax, dword [rbx + 0x40]
mov dword [rsp + 0x34], 0x100
mov esi, 0x100
test eax, eax
je 0x61d8039d
lea r10, [rbx + 0x88]
lea rdx, [rsp + 0x4c]
mov dword [rsp + 0xb0], r14d
mov rax, qword [rbx + 0x58]
mov qword [rsp + 0x38], rdx
mov r15, r10
jmp 0x61d80288
mov r9, qword [rbx + 0x60]
lea r8d, [rsi - 0x100]
add edx, 1
mov dword [rbx + 0x78], edx
add r9, r8
movzx edx, byte [r9]
mov byte [rax + rcx], dl
mov rax, qword [rbx + 0x58]
movzx esi, word [rax + r8*2]
cmp esi, 0xff
jbe 0x61d80464
test rax, rax
je 0x61d80160
mov ecx, dword [rbx + 0x78]
mov r14, qword [rbx + 0x80]
mov rax, qword [rbx + 0x70]
mov rdx, rcx
cmp rcx, r14
jb 0x61d80258
mov rdx, r14
mov rcx, qword [rbx + 0xd0]
shr rdx, 1
lea r12, [r14 + rdx + 4]
cmp r15, rax
je 0x61d803d8
mov r9d, r12d
cmp r12, 0x10000
jbe 0x61d802e7
cmp r14, 0x10000
je 0x61d80160
mov r9d, 0x10000
mov r12d, 0x10000
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, r14d
mov qword [rsp + 0x28], rdx
mov edx, 1
call fcn.61d80920
mov r10d, dword [rsp + 0x4c]
mov qword [rbx + 0x70], rax
test r10d, r10d
jne 0x61d80160
test r14, r14
je 0x61d80425
mov ecx, dword [rbx + 0x78]
mov qword [rbx + 0x80], r12
mov rdx, rcx
jmp 0x61d80258
mov rcx, qword [rbx + 0xd0]
test r12d, r12d
je 0x61d80454
mov esi, r12d
shr esi, 2
add esi, r12d
mov r9d, esi
lea rax, [rsp + 0x4c]
mov edx, 3
mov r8d, r12d
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x58]
mov qword [rsp + 0x20], rax
call fcn.61d809f0
mov edx, dword [rsp + 0x4c]
mov qword [rbx + 0x58], rax
test edx, edx
jne 0x61d80160
mov edx, esi
mov r8d, r12d
lea rcx, [rax + rdx*2]
lea rdx, [rax + r8*2]
mov qword [rbx + 0x60], rcx
call sub.msvcrt.dll_memmove
mov dword [rbx + 0x68], esi
mov eax, dword [rbx + 0x40]
jmp 0x61d7fdb9
mov ecx, dword [rbx + 0x78]
mov rsi, qword [rbx + 0x80]
mov rdx, qword [rbx + 0x70]
mov rax, rcx
cmp rcx, rsi
jae 0x61d80677
add eax, 1
mov dword [rbx + 0x78], eax
mov byte [rdx + rcx], dil
cmp ebp, 0xff
jbe 0x61d80700
mov esi, ebp
jmp 0x61d80230
cmp r12, 0x10000
mov eax, 0x10000
mov qword [rbx + 0x70], 0
mov edx, 1
mov qword [rsp + 0x20], 0
cmova r12, rax
xor r8d, r8d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov r9d, r12d
call fcn.61d80920
mov r11d, dword [rsp + 0x4c]
mov qword [rbx + 0x70], rax
test r11d, r11d
jne 0x61d80160
movdqu xmm0, xmmword [r15]
movups xmmword [rax], xmm0
movdqu xmm1, xmmword [r15 + 0x10]
movups xmmword [rax + 0x10], xmm1
movdqu xmm2, xmmword [r15 + 0x20]
movups xmmword [rax + 0x20], xmm2
movdqu xmm3, xmmword [r15 + 0x30]
movups xmmword [rax + 0x30], xmm3
mov rax, qword [rbx + 0x70]
jmp 0x61d8031e
mov r9d, 0x200
mov esi, 0x200
jmp 0x61d8034c
mov r14d, dword [rsp + 0xb0]
mov edi, esi
jmp 0x61d801e6
mov dword [rbx + 0x1c], r8d
jmp 0x61d80160
mov dword [rbx + 0x44], 0x100
test r9b, r9b
jne 0x61d80586
cmp dword [rbx + 0x1c], edx
ja 0x61d804a1
mov esi, 1
mov r12d, 9
jmp 0x61d7fee0
lea eax, [rdx + 9]
mov r9d, 8
mov dword [rbx + 0x18], eax
mov eax, edx
and edx, 7
shr eax, 3
mov ecx, edx
sub r9d, edx
lea r10, [rbx + rax + 8]
movzx eax, byte [rbx + rax + 8]
sar eax, cl
lea ecx, [rdx + 1]
mov r8d, eax
cmp edx, 7
jne 0x61d80786
movzx eax, byte [r10 + 1]
mov ecx, r9d
shl eax, cl
or eax, r8d
mov edx, eax
jmp 0x61d7ff5d
mov rax, rsi
lea r15, [rbx + 0x88]
mov r10, qword [rbx + 0xd0]
shr rax, 1
lea r12, [rsi + rax + 4]
cmp r15, rcx
je 0x61d805f2
mov r9d, r12d
cmp r12, 0x10000
jbe 0x61d80537
cmp rsi, 0x10000
je 0x61d80160
mov r9d, 0x10000
mov r12d, 0x10000
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rcx
mov r8d, esi
mov rcx, r10
mov qword [rsp + 0x28], rax
mov edx, 1
call fcn.61d80920
mov r8d, dword [rsp + 0x4c]
mov qword [rbx + 0x70], rax
mov rcx, rax
test r8d, r8d
jne 0x61d80160
test rsi, rsi
je 0x61d80645
mov edx, dword [rbx + 0x78]
mov qword [rbx + 0x80], r12
mov rax, rdx
jmp 0x61d80200
mov byte [rbx + 0x20], 0
mov esi, 1
mov r12d, 9
mov dword [rbx + 0x3c], 9
mov dword [rbx + 0x44], 0x100
jmp 0x61d7fee0
mov dword [rbx + 0x1c], ecx
mov dword [rsp + 0x34], 0
jmp 0x61d80160
cmp r8d, eax
jb 0x61d80491
mov dword [rbx + 0x3c], 0xa
mov dword [rbx + 0x44], eax
mov esi, 3
mov r12d, 0xa
jmp 0x61d7fee0
mov dword [rsp + 0x34], 0
mov ebp, edx
mov edi, edx
mov r13d, 1
jmp 0x61d7fd32
cmp r12, 0x10000
mov eax, 0x10000
mov qword [rbx + 0x70], 0
mov rcx, r10
cmova r12, rax
lea rax, [rsp + 0x4c]
xor r8d, r8d
mov edx, 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, r12d
call fcn.61d80920
mov r9d, dword [rsp + 0x4c]
mov qword [rbx + 0x70], rax
mov rcx, rax
test r9d, r9d
jne 0x61d80160
movdqu xmm4, xmmword [rbx + 0x88]
movups xmmword [rcx], xmm4
movdqu xmm5, xmmword [r15 + 0x10]
movups xmmword [rcx + 0x10], xmm5
movdqu xmm4, xmmword [r15 + 0x20]
movups xmmword [rcx + 0x20], xmm4
movdqu xmm5, xmmword [r15 + 0x30]
movups xmmword [rcx + 0x30], xmm5
mov rcx, qword [rbx + 0x70]
jmp 0x61d80574
mov rax, rsi
lea r15, [rbx + 0x88]
mov rcx, qword [rbx + 0xd0]
shr rax, 1
lea r12, [rsi + rax + 4]
cmp r15, rdx
je 0x61d80707
mov r9d, r12d
cmp r12, 0x10000
jbe 0x61d806ba
cmp rsi, 0x10000
je 0x61d80160
mov r9d, 0x10000
mov r12d, 0x10000
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rdx
mov r8d, esi
mov edx, 1
mov qword [rsp + 0x28], rax
call fcn.61d80920
mov qword [rbx + 0x70], rax
mov rdx, rax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x61d80160
test rsi, rsi
je 0x61d80754
mov ecx, dword [rbx + 0x78]
mov qword [rbx + 0x80], r12
mov rax, rcx
jmp 0x61d803b7
mov edi, ebp
jmp 0x61d801e6
cmp r12, 0x10000
mov eax, 0x10000
mov qword [rbx + 0x70], 0
mov edx, 1
mov qword [rsp + 0x20], 0
cmova r12, rax
xor r8d, r8d
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov r9d, r12d
call fcn.61d80920
cmp dword [rsp + 0x4c], 0
mov qword [rbx + 0x70], rax
mov rdx, rax
jne 0x61d80160
movdqu xmm4, xmmword [rbx + 0x88]
movups xmmword [rdx], xmm4
movdqu xmm5, xmmword [r15 + 0x10]
movups xmmword [rdx + 0x10], xmm5
movdqu xmm4, xmmword [r15 + 0x20]
movups xmmword [rdx + 0x20], xmm4
movdqu xmm5, xmmword [r15 + 0x30]
movups xmmword [rdx + 0x30], xmm5
mov rdx, qword [rbx + 0x70]
jmp 0x61d806ee
or eax, 0xffffffff
add r10, 1
shl eax, cl
not eax
mov esi, eax
jmp 0x61d7ff4b