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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r8
mov rdi, rdx
mov rsi, rcx
mov r13, qword [rsp + 0x150]
cmp byte [rdx + 0xf9], 0
je 0x45ff51
call fcn.004cb757
mov r15, rax
lea r12, [rax + 0x10]
mov rax, qword [rax + 0x110]
cmp rax, 0x40
jae 0x45fee2
movzx ebp, byte [r15 + rax*4 + 0x10]
lea rdx, [rax + 1]
mov qword [r15 + 0x110], rdx
cmp rax, 0x3f
jne 0x4600b7
mov rcx, r15
add rcx, 0x120
mov rdx, r12
call fcn.004cb692
xor eax, eax
jmp 0x45fefe
mov rcx, r15
add rcx, 0x120
mov rdx, r12
call fcn.004cb692
movzx ebp, byte [r15 + 0x10]
mov eax, 1
mov ebx, dword [r12 + rax*4]
inc rax
mov qword [r15 + 0x110], rax
mov r14d, dword [r15 + rax*4 + 0x10]
inc rax
mov qword [r15 + 0x110], rax
mov ecx, dword [r15 + rax*4 + 0x10]
inc rax
mov qword [r15 + 0x110], rax
shl ecx, 0x18
movzx eax, r14b
shl eax, 0x10
or eax, ecx
shl ebx, 8
movzx ebx, bx
or ebx, eax
or ebx, ebp
mov rcx, r15
call fcn.004cb609
mov byte [r13 + 0x1f], 1
mov dword [r13 + 0x20], ebx
movups xmm0, xmmword [r13]
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x30], rax
mov eax, dword [r13 + 0x18]
mov dword [rsp + 0x38], eax
movzx eax, word [r13 + 0x1c]
mov word [rsp + 0x3c], ax
mov al, byte [r13 + 0x1e]
mov byte [rsp + 0x3e], al
mov al, byte [r13 + 0x1f]
mov byte [rsp + 0x3f], al
mov rax, qword [r13 + 0x20]
mov qword [rsp + 0x40], rax
movaps xmmword [rsp + 0x20], xmm0
mov rbp, qword [rsp + 0x30]
cmp rbp, 0x10000
mov eax, 2
sbb rax, 0
xor ebx, ebx
cmp rbp, 0x7e
cmovae rbx, rax
lea rax, [0x0062ead8]
movzx r12d, byte [rsp + 0x3f]
lea rdx, [r12*4]
mov rax, qword [rax + rbx*8]
add rax, rdx
add rax, rbp
add rax, qword [rdi + 0x68]
cmp rax, qword [rdi + 0x20]
jbe 0x460063
mov rax, qword [r13 + 0x20]
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [r13]
movups xmm1, xmmword [r13 + 0x10]
movups xmmword [rsp + 0x78], xmm1
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x60], 5
mov qword [rsp + 0xa0], 9
mov al, byte [rdi + 0xf8]
mov ebx, 9
mov rcx, rbx
or rcx, 0xfffffffffffffffc
mov edx, ebx
and edx, 0xfffffffc
add rdx, rcx
cmp rdx, 1
jne 0x4602fc
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdi
cmp al, 2
jb case.default.0x460059
mov eax, edi
and eax, 3
lea rcx, [0x004603c4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [rdi + 0x10]
jmp 0x460368
lea r15, [rdi + 0x58]
lea rax, [0x0062eaf0]
add rdx, qword [rax + rbx*8]
add rdx, rbp
mov rcx, r15
call fcn.0055d172
movzx ecx, byte [rsp + 0x3e]
movzx eax, word [rsp + 0x3c]
mov edx, eax
shr edx, 8
test al, al
je 0x4600a9
mov al, 8
movzx edx, dl
lea r8, [0x004603b4]
movsxd rdx, dword [r8 + rdx*4]
add rdx, r8
jmp rdx
mov al, 9
jmp case.0x4600a3.0
cmp dl, 3
movzx edx, dl
movzx eax, cl
cmovb eax, edx
jmp case.0x4600a3.0
mov ebx, dword [r15 + rax*4 + 0x14]
lea rcx, [rax + 2]
mov qword [r15 + 0x110], rcx
cmp rdx, 0x3f
jne 0x460324
mov rcx, r15
add rcx, 0x120
mov rdx, r12
call fcn.004cb692
xor eax, eax
jmp 0x45ff05
cmp byte [rsp + 0x38], 0
setne cl
shl cl, 7
mov dl, byte [rsp + 0x39]
mov r8b, byte [rsp + 0x3a]
shl dl, 6
or dl, al
shl r8b, 5
or r8b, cl
mov r13b, byte [rsp + 0x3b]
shl r13b, 4
or r13b, r8b
or r13b, dl
test rbx, rbx
je 0x46018b
cmp rbx, 1
jne 0x4601c4
test r12b, r12b
mov eax, 0x7e00
mov ebx, 0xfe00
cmove ebx, eax
mov edx, 2
mov rcx, r15
call fcn.0055d172
mov rax, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x68]
movzx edx, r13b
or edx, ebx
mov word [rax + rcx], dx
add rcx, 2
mov qword [rdi + 0x68], rcx
rol bp, 8
mov edx, 2
mov rcx, r15
call fcn.0055d172
mov rax, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x68]
lea rdx, [rcx + 2]
mov word [rax + rcx], bp
jmp 0x46021b
xor ebx, ebx
test r12b, r12b
setne bl
mov edx, 2
mov rcx, r15
call fcn.0055d172
mov rax, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x68]
shl ebp, 8
shl ebx, 0xf
or ebx, ebp
movzx edx, r13b
or edx, ebx
lea r8, [rcx + 2]
mov word [rax + rcx], dx
mov qword [rdi + 0x68], r8
jmp 0x46021f
test r12b, r12b
mov eax, 0x7f00
mov ebx, 0xff00
cmove ebx, eax
mov edx, 2
mov rcx, r15
call fcn.0055d172
mov rax, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x68]
movzx edx, r13b
or edx, ebx
mov word [rax + rcx], dx
add rcx, 2
mov qword [rdi + 0x68], rcx
mov edx, 8
mov rcx, r15
call fcn.0055d172
mov rax, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x68]
bswap rbp
lea rdx, [rcx + 8]
mov qword [rax + rcx], rbp
mov qword [rdi + 0x68], rdx
test r12b, r12b
je 0x460248
mov edx, 4
mov rcx, r15
call fcn.0055d172
mov rax, qword [rdi + 0x60]
mov rcx, qword [rdi + 0x68]
mov edx, dword [rsp + 0x40]
mov dword [rax + rcx], edx
add rcx, 4
mov qword [rdi + 0x68], rcx
lea r12, [rsp + 0x20]
mov rcx, r12
call fcn.0046066f
mov r13, qword [r12 + 8]
mov rbp, qword [r12 + 0x10]
mov r14d, ebp
not r14d
mov rcx, r15
mov rdx, rbp
call fcn.0055d172
mov rbx, qword [rdi + 0x68]
mov rcx, qword [rdi + 0x60]
add rcx, rbx
mov eax, ebp
and eax, 1
neg rax
and r14d, 1
mov rdx, rbp
and rdx, 0xfffffffffffffffe
imul rdx, r14
mov r8, rbp
or r8, 1
and r8, rax
add r8, rdx
mov rdx, r13
call sub.msvcrt.dll_memcpy
add rbx, rbp
mov qword [rdi + 0x68], rbx
mov rcx, qword [r12]
mov rdx, r13
call fcn.004c9843
cmp rbx, qword [rdi + 0x28]
jbe 0x4602f0
lea rdx, [rdi + 0x20]
lea r15, [rsp + 0x60]
mov rcx, r15
mov r8, qword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
call fcn.0046059c
mov rbx, qword [r15 + 0x40]
cmp rbx, 0xf
je 0x4602fc
mov al, byte [rdi + 0xf8]
jmp 0x46001b
mov qword [rsp + 0xa0], 0xf
lea rdx, [rsp + 0x60]
mov r8d, 0x88
mov rcx, rsi
call sub.msvcrt.dll_memcpy
nop
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, dword [r15 + rax*4 + 0x18]
add rax, 3
mov qword [r15 + 0x110], rax
cmp rcx, 0x3f
jne 0x45ff1b
mov rcx, r15
add rcx, 0x120
mov rdx, r12
call fcn.004cb692
xor eax, eax
jmp 0x45ff14
mov al, byte [rdi + 0xf]
jmp 0x460368
mov rcx, rdi
shr rcx, 0x20
call fcn.0053e030
cmp al, 3
jne case.default.0x460059
mov qword [rsi], rdi
mov qword [rsi + 0x40], 3
lea rcx, [rsp + 0x20]
call fcn.00438ca5
jmp 0x46039a
mov qword [rsi], rdi
mov qword [rsi + 0x40], 5
cmp ebx, 5
je 0x46030f
lea rcx, [rsp + 0x60]
call fcn.004603d4
jmp 0x46030f