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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rdi, qword [rcx + 0x30]
lea eax, [r9 - 1]
xor ebp, ebp
mov r15, r8
mov r13, rdx
mov r12, rcx
imul rax, rax, 0x34
movzx eax, word [rax + r8]
mov dword [rsp + 0x44], ebp
lea esi, [rax + rax + 0x200]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rdx, qword [rdi]
mov rcx, rdi
movzx ebx, ax
call qword [rdx + 0x10]
xor edx, edx
imul ebx, eax
mov eax, esi
div ebx
mov r14d, eax
cmp edx, ebp
je 0x100065467
inc r14d
mov ebp, dword [r15 + 4]
mov edx, dword [r13]
mov rcx, qword [r12 + 0x48]
mov r8d, ebp
mov dword [rsp + 0x48], ebp
call fcn.100042bb0
mov rbx, qword [rsp + 0xe8]
mov esi, 0xfffffff
mov edi, eax
cmp r14d, eax
jbe 0x100065677
mov rdx, qword [rsp + 0xf0]
mov ebp, 1
mov rcx, rbx
mov dword [rsp + 0x44], ebp
call fcn.100062458
mov rax, qword [rbx]
lea r9d, [rbp + 2]
xor r8d, r8d
mov edx, 0x1393
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000015a8]
mov rcx, rbx
call fcn.1000187c0
mov edx, r14d
sub edx, edi
je 0x100065520
mov rcx, qword [r12 + 0x48]
lea r8, [rsp + 0x48]
call fcn.100043160
xor edi, edi
mov esi, eax
cmp eax, edi
je 0x100065520
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0xc0]
cmp al, dil
je 0x10006554b
mov edx, esi
mov rcx, r12
call fcn.10006b238
cmp al, dil
jne 0x10006554b
mov rcx, qword [r12 + 0x48]
mov edx, esi
call fcn.100043560
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1394
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000015a8]
mov rcx, rbx
call fcn.1000187c0
jmp 0x100065cfb
mov rdi, qword [r12 + 0x48]
mov r13, qword [rsp + 0xd0]
mov r9d, esi
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x100065596
mov r8, qword [rdi + 0x30]
lea ecx, [r9 + r9*2]
mov eax, ecx
shr eax, 1
add eax, ebp
movzx edx, byte [rax + r8]
mov eax, ecx
shr rax, 1
test bpl, cl
movzx ecx, byte [rax + r8]
je 0x10006558c
shl edx, 4
shr ecx, 4
jmp 0x100065592
and edx, 0xf
shl edx, 8
or edx, ecx
jmp 0x1000655b0
cmp al, 0x10
mov rax, qword [rdi + 0x30]
mov ecx, r9d
jne 0x1000655a7
movzx edx, word [rax + rcx*2]
jmp 0x1000655b0
mov edx, dword [rax + rcx*4]
and edx, 0xfffffff
mov cl, byte [r13 + 0x14]
mov r8d, r9d
shr r8, cl
cmp edx, dword [rdi + 0x3c]
mov rdi, qword [r13 + 0x20]
mov edx, ebp
jae 0x10006564a
mov eax, dword [r13 + 0x18]
mov r10d, r9d
and eax, r9d
mov cl, al
shl edx, cl
or dword [rdi + r8*4], edx
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x100065628
mov rdx, qword [rdi + 0x30]
lea ecx, [r9 + r9*2]
mov eax, ecx
shr eax, 1
add eax, ebp
movzx r9d, byte [rax + rdx]
mov eax, ecx
test bpl, cl
je 0x100065611
shr rax, 1
shl r9d, 4
movzx ecx, byte [rax + rdx]
shr ecx, 4
jmp 0x100065620
and r9d, 0xf
shl r9d, 8
shr rax, 1
movzx ecx, byte [rax + rdx]
or r9d, ecx
jmp 0x10006555b
cmp al, 0x10
mov rax, qword [rdi + 0x30]
jne 0x10006563a
movzx r9d, word [rax + r10*2]
jmp 0x10006555b
mov r9d, dword [rax + r10*4]
and r9d, 0xfffffff
jmp 0x10006555b
mov ecx, dword [r13 + 0x18]
mov ebp, dword [rsp + 0x48]
and ecx, r9d
shl edx, cl
or dword [rdi + r8*4], edx
mov r9d, dword [r15 + 4]
mov rcx, qword [r12 + 0x48]
mov r8d, ebp
mov edx, esi
call fcn.100041594
mov dword [r15 + 4], ebp
jmp 0x1000657eb
jae 0x1000657f3
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
mov dword [rsp + 0x44], 1
call fcn.100062458
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x138f
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000015a8]
mov rcx, rbx
call fcn.1000187c0
mov edx, dword [r13]
mov rcx, qword [r12 + 0x48]
lea r8d, [r14 - 1]
call fcn.100042a44
mov r8d, dword [r15 + 4]
mov rcx, qword [r12 + 0x48]
mov edx, eax
mov ebp, eax
call fcn.10006b80c
mov r13, qword [rsp + 0xd0]
mov dword [r15 + 4], ebp
mov rdi, qword [r12 + 0x48]
mov r11d, eax
cmp byte [rdi + 0x50], 0xc
jne 0x10006572d
mov r8, qword [rdi + 0x30]
lea ecx, [r11 + r11*2]
mov eax, ecx
shr eax, 1
inc eax
movzx edx, byte [rax + r8]
mov eax, ecx
shr rax, 1
test cl, 1
movzx ecx, byte [rax + r8]
je 0x100065723
shl edx, 4
shr ecx, 4
jmp 0x100065729
and edx, 0xf
shl edx, 8
or edx, ecx
jmp 0x100065745
cmp byte [rdi + 0x50], 0x10
mov rax, qword [rdi + 0x30]
mov ecx, r11d
jne 0x100065740
movzx edx, word [rax + rcx*2]
jmp 0x100065745
mov edx, dword [rax + rcx*4]
and edx, esi
mov cl, byte [r13 + 0x14]
mov r8d, r11d
shr r8, cl
cmp edx, dword [rdi + 0x3c]
mov rdi, qword [r13 + 0x20]
mov edx, 1
jae 0x1000657dc
mov eax, dword [r13 + 0x18]
mov r9d, r11d
and eax, r11d
mov cl, al
shl edx, cl
not edx
and dword [rdi + r8*4], edx
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x1000657be
mov rdx, qword [rdi + 0x30]
lea ecx, [r11 + r11*2]
mov eax, ecx
shr eax, 1
inc eax
movzx r11d, byte [rax + rdx]
mov eax, ecx
test cl, 1
je 0x1000657a7
shr rax, 1
shl r11d, 4
movzx ecx, byte [rax + rdx]
shr ecx, 4
jmp 0x1000657b6
and r11d, 0xf
shl r11d, 8
shr rax, 1
movzx ecx, byte [rax + rdx]
or r11d, ecx
jmp 0x1000656f3
cmp al, 0x10
mov rax, qword [rdi + 0x30]
jne 0x1000657d0
movzx r11d, word [rax + r9*2]
jmp 0x1000656f3
mov r11d, dword [rax + r9*4]
and r11d, esi
jmp 0x1000656f3
mov ecx, dword [r13 + 0x18]
and ecx, r11d
shl edx, cl
not edx
and dword [rdi + r8*4], edx
mov r13, qword [rsp + 0xa8]
mov esi, dword [rsp + 0xd8]
xor r15d, r15d
mov byte [rsp + 0xa0], r15b
cmp esi, r15d
je 0x100065895
mov rax, qword [r12]
lea r8, [rsp + 0xa0]
mov r9d, ebp
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], 1
call qword [rax + 0xa8]
cmp al, r15b
jne 0x10006584d
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.100062458
jmp 0x100065520
cmp byte [rsp + 0xa0], r15b
je 0x100065895
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
mov dword [rsp + 0x44], 1
call fcn.100062458
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1395
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000015a8]
mov rcx, rbx
call fcn.1000187c0
mov r8, qword [r12 + 0x30]
mov rdx, qword [rsp + 0xc0]
movzx eax, r14w
mov dword [rsp + 0x30], eax
mov eax, dword [r13]
mov r13, qword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov rax, qword [r12 + 0x48]
mov r9, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.100044cf8
cmp al, r15b
je 0x100065cbf
mov rdi, qword [r13 + 0x80]
lea rbp, [rdi + 0x20]
cmp rdi, r15
jne 0x1000658eb
mov rbp, r15
cmp rbp, r15
je 0x100065cbf
cmp rdi, r15
je 0x100065cbf
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x10]
cmp al, r15b
jne 0x10006594b
cmp esi, r15d
jne 0x100065cfb
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.100062458
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1395
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000015a8]
mov rcx, rbx
call fcn.1000187c0
mov word [rdi + 2], r15w
mov word [rdi + 4], r15w
mov word [rdi + 6], r15w
mov word [rdi + 8], r15w
mov word [rdi + 0xa], r15w
mov word [rdi + 0xc], r15w
mov word [rdi + 0xe], r15w
mov word [rdi + 0x10], r15w
mov word [rdi + 0x12], r15w
mov word [rdi + 0x14], r15w
mov eax, 0x4445
mov r14d, 0xf0
mov word [rdi], ax
movzx eax, r15w
mov rdi, rbp
mov rcx, r14
mov byte [rsp + 0xa0], r15b
mov esi, r15d
rep stosw word [rdi], ax
mov eax, dword [rsp + 0xb8]
mov byte [rsp + 0x40], 1
cmp eax, r15d
mov rdi, r15
jle 0x100065b9c
mov bl, byte [rsp + 0x40]
mov rdx, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xa8]
mov r15, rax
mov r8d, 0xffff
cmp byte [rdx + 0x1a], 1
jne 0x100065a8c
movzx eax, word [rdx]
xor bl, bl
cmp esi, eax
jge 0x100065a15
lea rcx, [rbp + rdi*2 + 0x1e0]
cmp word [rcx], r8w
je 0x100065a05
mov word [rcx], r8w
mov byte [rsp + 0xa0], 1
movzx eax, word [rdx]
inc esi
inc rdi
add rcx, 2
cmp esi, eax
jl 0x1000659f3
mov r8d, dword [rdx + 4]
mov rcx, qword [r12 + 0x48]
mov edx, dword [r13]
call fcn.100042bb0
mov ecx, esi
sar ecx, 7
mov r11d, eax
xor eax, eax
movsxd rdx, ecx
cmp rdx, rax
jl 0x100065a4c
cmp word [rbp + rdx*2], ax
jne 0x100065a4c
mov word [rbp + rdx*2], r11w
sub rdx, 1
jns 0x100065a39
movsxd rax, esi
sar rax, 7
movzx ecx, word [rbp + rax*2]
movzx eax, word [rbp + rdi*2 + 0x1e0]
sub r11d, ecx
cmp eax, r11d
je 0x100065a79
mov word [rbp + rdi*2 + 0x1e0], r11w
mov byte [rsp + 0xa0], 1
mov rdx, qword [rsp + 0xb0]
inc esi
mov r8d, 0xffff
inc rdi
add rdx, 0x34
sub r15, 1
mov qword [rsp + 0xb0], rdx
jne 0x1000659d8
mov r13, qword [rsp + 0xc8]
cmp bl, r15b
mov rbx, qword [rsp + 0xe8]
jne 0x100065b9c
mov rax, qword [rsp + 0xa8]
mov rcx, qword [r12 + 0x48]
xor r8d, r8d
mov edx, dword [rax]
call fcn.100042ac0
lea edx, [rsi - 1]
sar edx, 7
inc edx
movsxd r8, edx
cmp r8, r14
jge 0x100065af3
sub r14, r8
lea rdi, [rbp + r8*2]
movzx eax, ax
mov rcx, r14
rep stosw word [rdi], ax
cmp esi, dword [r13 + 0x88]
movsxd rax, esi
jge 0x100065b2b
lea rax, [rbp + rax*2 + 0x1e0]
mov ecx, 0xffff
cmp word [rax], cx
je 0x100065b1c
mov word [rax], cx
mov byte [rsp + 0xa0], 1
inc esi
add rax, 2
cmp esi, dword [r13 + 0x88]
jl 0x100065b0c
cmp byte [rsp + 0xa0], r15b
je 0x100065b73
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
mov dword [rsp + 0x44], 1
call fcn.100062458
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1396
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000015a8]
mov rcx, rbx
call fcn.1000187c0
cmp dword [rsp + 0x44], r15d
je 0x100065cbb
mov rcx, qword [rsp + 0xe0]
cmp dword [rcx + 0x18], 3
je 0x100065cbb
mov dword [rcx + 0x18], 1
jmp 0x100065cbb
mov r10, qword [rsp + 0xa8]
mov rdi, qword [r12 + 0x48]
mov r11, qword [rsp + 0xd0]
mov r9d, dword [r10]
mov ebx, 0xfffffff
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x100065bf4
mov r8, qword [rdi + 0x30]
lea ecx, [r9 + r9*2]
mov eax, ecx
shr eax, 1
inc eax
movzx edx, byte [rax + r8]
mov eax, ecx
shr rax, 1
test cl, 1
movzx ecx, byte [rax + r8]
je 0x100065bea
shl edx, 4
shr ecx, 4
jmp 0x100065bf0
and edx, 0xf
shl edx, 8
or edx, ecx
jmp 0x100065c0a
cmp al, 0x10
mov rax, qword [rdi + 0x30]
mov ecx, r9d
jne 0x100065c05
movzx edx, word [rax + rcx*2]
jmp 0x100065c0a
mov edx, dword [rax + rcx*4]
and edx, ebx
mov cl, byte [r11 + 0x14]
mov r8d, r9d
shr r8, cl
cmp edx, dword [rdi + 0x3c]
mov rdi, qword [r11 + 0x20]
mov edx, 1
jae 0x100065ca1
mov eax, dword [r11 + 0x18]
mov r10d, r9d
and eax, r9d
mov cl, al
shl edx, cl
not edx
and dword [rdi + r8*4], edx
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x100065c83
mov rdx, qword [rdi + 0x30]
lea ecx, [r9 + r9*2]
mov eax, ecx
shr eax, 1
inc eax
movzx r9d, byte [rax + rdx]
mov eax, ecx
test cl, 1
je 0x100065c6c
shr rax, 1
shl r9d, 4
movzx ecx, byte [rax + rdx]
shr ecx, 4
jmp 0x100065c7b
and r9d, 0xf
shl r9d, 8
shr rax, 1
movzx ecx, byte [rax + rdx]
or r9d, ecx
jmp 0x100065bb9
cmp al, 0x10
mov rax, qword [rdi + 0x30]
jne 0x100065c95
movzx r9d, word [rax + r10*2]
jmp 0x100065bb9
mov r9d, dword [rax + r10*4]
and r9d, ebx
jmp 0x100065bb9
mov ecx, dword [r11 + 0x18]
mov rax, qword [rsp + 0xa8]
and ecx, r9d
shl edx, cl
not edx
and dword [rdi + r8*4], edx
mov dword [rax], r15d
mov al, 1
jmp 0x100065cfd
lea rcx, [0x10000cba0]
call fcn.100018f60
mov r9d, 3
mov dword [rsp + 0x30], 0x86c
mov qword [rsp + 0x28], rax
lea rax, [0x10000b258]
lea r8d, [r9 - 2]
mov edx, 0x43c
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.100018874
xor al, al
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret