Function at 0x616c5c50
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 0x616c5ca2
mov r13d, dword [rcx]
cmp r13d, 1
je 0x616c5f18
cmp r13d, 2
je 0x616c5cc8
test r13d, r13d
je 0x616c5d78
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 0x616c5d6b
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x616c5d14
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 0x616c5ca2
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x616c5cf0
mov eax, dword [rbx + 0x40]
cmp eax, dword [rbx + 0x38]
jae 0x616c5d42
mov r12d, dword [rbx + 0x68]
cmp eax, r12d
jae 0x616c62a0
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 0x616c5f1e
sub eax, 1
add r13d, 1
mov dword [rbx + 0x78], eax
cmp r14d, r13d
je 0x616c5ca2
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x616c5d58
jmp 0x616c5d14
mov rcx, qword [rcx + 0xc8]
mov edx, 2
call fcn.615b4270
test eax, eax
jne 0x616c60d0
mov rcx, qword [rbx + 0xc8]
lea rdx, [rsp + 0x4c]
mov r8d, 1
call fcn.615b4310
cmp eax, 1
jne 0x616c60d0
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 0x616c60d0
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 0x616c63ec
sub eax, 0xff
mov dword [rbx + 0x44], eax
test r9b, r9b
jne 0x616c64f6
cmp dword [rbx + 0x1c], edx
jbe 0x616c6528
cmp r8d, eax
jb 0x616c6411
mov dword [rbx + 0x3c], 0xa
cmp cl, 0xa
jbe 0x616c6538
mov dword [rbx + 0x44], 0x300
mov esi, 3
mov r12d, 0xa
nop
mov eax, dword [rbx + 4]
test eax, eax
jne 0x616c651b
mov rcx, qword [rbx + 0xc8]
mov r8d, dword [rbx + 0x3c]
lea rdx, [rbx + 8]
call fcn.615b4310
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 0x616c6518
sub ecx, edx
lea edx, [rcx + 1]
mov dword [rbx + 0x1c], edx
test eax, eax
je 0x616c651b
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 0x616c651b
cmp qword [rsp + 0xa8], 0
je 0x616c5eee
mov rdi, qword [rsp + 0xa8]
mov byte [rdi], al
cmp r14d, 1
jbe 0x616c654b
mov dword [rbx], 1
mov eax, dword [rbx + 0x40]
mov ebp, edx
mov edi, edx
mov dword [rsp + 0x34], 0
mov r13d, 1
jmp 0x616c5f1e
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 0x616c5fe3
cmp dword [rbx + 0x1c], r10d
jbe 0x616c6130
cmp eax, ecx
jae 0x616c5ffa
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 0x616c60e0
lea r8, [rax + 1]
test ecx, ecx
je 0x616c6150
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 0x616c60a2
mov eax, dword [rbx + 0x34]
test eax, eax
je 0x616c6188
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 0x616c5f38
cmp eax, ecx
jb 0x616c6110
lea r12d, [rdx + 1]
mov dword [rbx + 0x3c], r12d
cmp r12d, 0x10
ja 0x616c60d0
cmp r12d, dword [rbx + 0x30]
jae 0x616c6140
mov eax, 1
mov ecx, r12d
shl eax, cl
sub eax, 0x100
mov dword [rbx + 0x44], eax
test r8b, r8b
jne 0x616c6110
mov eax, dword [rbx + 4]
test eax, eax
jne 0x616c60d0
mov rcx, qword [rbx + 0xc8]
mov r8d, r12d
mov rdx, r15
call fcn.615b4310
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 0x616c63e3
mov ecx, 1
sub ecx, edx
add ecx, r8d
mov dword [rbx + 0x1c], ecx
test eax, eax
je 0x616c60d0
mov r10d, r12d
mov eax, 8
mov r9d, 8
xor ecx, ecx
xor r11d, r11d
jmp 0x616c5f70
cmp esi, 0xff
jbe 0x616c6150
lea eax, [rsi - 0x100]
cmp dword [rbx + 0x40], eax
mov dword [rsp + 0x34], esi
ja 0x616c61a0
jae 0x616c630d
nop word [rax + rax]
mov dword [rbx], 3
jmp 0x616c5ca2
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 0x616c5fb6
jmp 0x616c5f9e
mov dword [rbx + 0x3c], 9
mov r12d, 9
mov dword [rbx + 0x44], 0x100
mov byte [rbx + 0x20], 0
jmp 0x616c6031
cmp eax, ecx
jb 0x616c6031
jmp 0x616c5ffa
mov eax, dword [rbx + 0x38]
add eax, 1
jmp 0x616c6025
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 0x616c6460
add eax, 1
mov dword [rbx + 0x78], eax
mov byte [rcx + rdx], dil
mov dword [rbx], 2
jmp 0x616c5ccb
mov eax, dword [rbx + 0x40]
mov dword [rsp + 0x34], 0x100
mov esi, 0x100
test eax, eax
je 0x616c630d
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 0x616c61f8
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 0x616c63d4
test rax, rax
je 0x616c60d0
mov ecx, dword [rbx + 0x78]
mov r14, qword [rbx + 0x80]
mov rax, qword [rbx + 0x70]
mov rdx, rcx
cmp rcx, r14
jb 0x616c61c8
mov rdx, r14
mov rcx, qword [rbx + 0xd0]
shr rdx, 1
lea r12, [r14 + rdx + 4]
cmp r15, rax
je 0x616c6348
mov r9d, r12d
cmp r12, 0x10000
jbe 0x616c6257
cmp r14, 0x10000
je 0x616c60d0
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.616c6890
mov r10d, dword [rsp + 0x4c]
mov qword [rbx + 0x70], rax
test r10d, r10d
jne 0x616c60d0
test r14, r14
je 0x616c6395
mov ecx, dword [rbx + 0x78]
mov qword [rbx + 0x80], r12
mov rdx, rcx
jmp 0x616c61c8
mov rcx, qword [rbx + 0xd0]
test r12d, r12d
je 0x616c63c4
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.616c6960
mov edx, dword [rsp + 0x4c]
mov qword [rbx + 0x58], rax
test edx, edx
jne 0x616c60d0
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 0x616c5d29
mov ecx, dword [rbx + 0x78]
mov rsi, qword [rbx + 0x80]
mov rdx, qword [rbx + 0x70]
mov rax, rcx
cmp rcx, rsi
jae 0x616c65e7
add eax, 1
mov dword [rbx + 0x78], eax
mov byte [rdx + rcx], dil
cmp ebp, 0xff
jbe 0x616c6670
mov esi, ebp
jmp 0x616c61a0
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.616c6890
mov r11d, dword [rsp + 0x4c]
mov qword [rbx + 0x70], rax
test r11d, r11d
jne 0x616c60d0
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 0x616c628e
mov r9d, 0x200
mov esi, 0x200
jmp 0x616c62bc
mov r14d, dword [rsp + 0xb0]
mov edi, esi
jmp 0x616c6156
mov dword [rbx + 0x1c], r8d
jmp 0x616c60d0
mov dword [rbx + 0x44], 0x100
test r9b, r9b
jne 0x616c64f6
cmp dword [rbx + 0x1c], edx
ja 0x616c6411
mov esi, 1
mov r12d, 9
jmp 0x616c5e50
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 0x616c66f6
movzx eax, byte [r10 + 1]
mov ecx, r9d
shl eax, cl
or eax, r8d
mov edx, eax
jmp 0x616c5ecd
mov rax, rsi
lea r15, [rbx + 0x88]
mov r10, qword [rbx + 0xd0]
shr rax, 1
lea r12, [rsi + rax + 4]
cmp r15, rcx
je 0x616c6562
mov r9d, r12d
cmp r12, 0x10000
jbe 0x616c64a7
cmp rsi, 0x10000
je 0x616c60d0
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.616c6890
mov r8d, dword [rsp + 0x4c]
mov qword [rbx + 0x70], rax
mov rcx, rax
test r8d, r8d
jne 0x616c60d0
test rsi, rsi
je 0x616c65b5
mov edx, dword [rbx + 0x78]
mov qword [rbx + 0x80], r12
mov rax, rdx
jmp 0x616c6170
mov byte [rbx + 0x20], 0
mov esi, 1
mov r12d, 9
mov dword [rbx + 0x3c], 9
mov dword [rbx + 0x44], 0x100
jmp 0x616c5e50
mov dword [rbx + 0x1c], ecx
mov dword [rsp + 0x34], 0
jmp 0x616c60d0
cmp r8d, eax
jb 0x616c6401
mov dword [rbx + 0x3c], 0xa
mov dword [rbx + 0x44], eax
mov esi, 3
mov r12d, 0xa
jmp 0x616c5e50
mov dword [rsp + 0x34], 0
mov ebp, edx
mov edi, edx
mov r13d, 1
jmp 0x616c5ca2
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.616c6890
mov r9d, dword [rsp + 0x4c]
mov qword [rbx + 0x70], rax
mov rcx, rax
test r9d, r9d
jne 0x616c60d0
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 0x616c64e4
mov rax, rsi
lea r15, [rbx + 0x88]
mov rcx, qword [rbx + 0xd0]
shr rax, 1
lea r12, [rsi + rax + 4]
cmp r15, rdx
je 0x616c6677
mov r9d, r12d
cmp r12, 0x10000
jbe 0x616c662a
cmp rsi, 0x10000
je 0x616c60d0
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.616c6890
mov qword [rbx + 0x70], rax
mov rdx, rax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x616c60d0
test rsi, rsi
je 0x616c66c4
mov ecx, dword [rbx + 0x78]
mov qword [rbx + 0x80], r12
mov rax, rcx
jmp 0x616c6327
mov edi, ebp
jmp 0x616c6156
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.616c6890
cmp dword [rsp + 0x4c], 0
mov qword [rbx + 0x70], rax
mov rdx, rax
jne 0x616c60d0
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 0x616c665e
or eax, 0xffffffff
add r10, 1
shl eax, cl
not eax
mov esi, eax
jmp 0x616c5ebb