Function at 0x508ba0
Capabilities:
Run powershell expression

Disassembly:
lea r12, [rsp - 0x48]
cmp r12, qword [r14 + 0x10]
jbe 0x509057
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rsp + 0x1e8], rbx
mov qword [rsp + 0x1f0], rcx
mov qword [rsp + 0x1f8], rdi
movzx edx, byte [rax + 0x18]
cmp dl, 3
jae 0x508beb
mov rdx, qword [0x0096cd70]
mov r9, qword [0x0096cd78]
jmp 0x508c07
cmp dl, 5
jbe 0x508c02
mov rdx, qword [0x0096cd80]
mov r9, qword [0x0096cd88]
nop
jmp 0x508c07
xor edx, edx
xor r9d, r9d
test rdx, rdx
jne 0x508ce7
mov qword [rsp + 0x1e0], rax
mov word [rsp + 0x1d0], 0x29
mov rbx, qword [rax]
mov rcx, qword [rax + 8]
mov rdi, qword [rax + 0x10]
mov rsi, qword [rax + 0x30]
mov r8, qword [rax + 0x28]
lea rax, [rsp + 0xd0]
nop dword [rax]
call fcn.00509180
test rsi, rsi
jne 0x508c76
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x68], rdi
mov r8, qword [rsp + 0x1e8]
mov r9, qword [rsp + 0x1f0]
mov qword [rsp + 0x90], r9
mov rdx, rbx
xor esi, esi
jmp 0x508d55
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0x70], rsi
lea rax, [0x006ceae0]
call fcn.0040d7c0
mov qword [rax + 8], 0xe
lea rcx, [0x007099c1]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
cmp dword [0x009d9570], 0
jne 0x508cc0
mov rcx, qword [rsp + 0xa8]
jmp 0x508cd0
call fcn.004673a0
mov rcx, qword [rsp + 0xa8]
mov qword [r11], rcx
mov qword [rax + 0x18], rcx
mov rbx, rax
lea rax, [0x0078aae0]
add rsp, 0xc0
pop rbp
ret
mov rax, rdx
mov rbx, r9
add rsp, 0xc0
pop rbp
ret
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], r10
lea rdx, [rax + rbx]
mov rbx, r12
mov rax, rdx
mov rcx, r11
call fcn.00468160
mov r8, qword [rsp + 0xb8]
add r8, 0x20
mov rsi, qword [rsp + 0x88]
inc rsi
mov rdx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x68]
mov r9, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x50]
cmp rsi, r9
jge 0x508e8b
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0xb8], r8
add rbx, 2
mov r10, qword [r8 + 0x10]
mov qword [rsp + 0x80], r10
movzx r11d, word [r8]
mov r12, qword [r8 + 8]
mov qword [rsp + 0xb0], r12
nop
cmp rcx, rbx
jae 0x508de3
mov word [rsp + 0x46], r11w
mov edi, 2
lea rsi, [0x006a5ea0]
call fcn.0044bd00
mov rdx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0xb8]
mov r9, qword [rsp + 0x90]
mov r10, qword [rsp + 0x80]
movzx r11d, word [rsp + 0x46]
mov r12, qword [rsp + 0xb0]
rol r11w, 8
mov word [rbx + rax - 2], r11w
add rbx, 2
nop
cmp rcx, rbx
jae 0x508e3b
mov edi, 2
lea rsi, [0x006a5ea0]
call fcn.0044bd00
mov rdx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0xb8]
mov r9, qword [rsp + 0x90]
mov r10, qword [rsp + 0x80]
mov r12, qword [rsp + 0xb0]
mov r11, r10
rol r10w, 8
mov word [rbx + rax - 2], r10w
lea r10, [rbx + r11]
nop
cmp rcx, r10
jae 0x508cf6
mov qword [rsp + 0x50], rbx
mov rbx, r10
mov rdi, r11
lea rsi, [0x006a5ea0]
call fcn.0044bd00
mov r11, qword [rsp + 0x80]
mov r12, qword [rsp + 0xb0]
mov r10, rbx
mov rbx, qword [rsp + 0x50]
jmp 0x508cf6
mov r8, rbx
sub rbx, rdx
cmp rbx, 0xffff
jle 0x508ead
mov rdx, qword [0x0096ce30]
mov rsi, qword [0x0096ce38]
jmp 0x508f40
cmp rdi, rcx
ja 0x50904b
mov rdx, rcx
sub rdx, rdi
mov r9, rdx
neg rdx
sar rdx, 0x3f
and rdi, rdx
lea rdx, [rdi + rax]
cmp r9, 2
jae 0x508f24
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x90], r8
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x78], rbx
mov rax, rdx
mov ebx, 2
mov rcx, r9
mov rdi, rbx
lea rsi, [0x006a5ea0]
call fcn.0044bd00
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x90]
mov rdx, rax
mov rax, qword [rsp + 0xa0]
mov rdi, rbx
rol bx, 8
mov word [rdx], bx
mov word [rsp + 0x1d8], di
xor edx, edx
xor esi, esi
nop word [rax + rax]
test rdx, rdx
jne 0x50903c
mov rdx, qword [rsp + 0x1e0]
movzx esi, byte [rdx + 0x18]
cmp sil, 3
ja 0x508fa0
nop dword [rax + rax]
cmp sil, 2
jne 0x508f80
lea rsi, [rdx + 0x1e]
mov rdi, qword [0x0096ce40]
mov r9, qword [0x0096ce48]
jmp 0x508fe1
cmp sil, 3
jne 0x508fda
lea rsi, [rdx + 0x20]
mov rdi, qword [0x0096ce50]
mov r9, qword [0x0096ce58]
jmp 0x508fe1
cmp sil, 4
jne 0x508fc0
lea rsi, [rdx + 0x22]
mov rdi, qword [0x0096ce60]
mov r9, qword [0x0096ce68]
jmp 0x508fe1
cmp sil, 5
jne 0x508fda
lea rsi, [rdx + 0x24]
mov rdi, qword [0x0096ce70]
mov r9, qword [0x0096ce78]
jmp 0x508fe1
xor esi, esi
xor edi, edi
xor r9d, r9d
movzx r10d, word [rsi]
cmp r10w, 0xffff
je 0x508ff8
inc r10d
mov word [rsi], r10w
xor edi, edi
xor r9d, r9d
test rdi, rdi
jne 0x50902d
mov qword [rdx + 8], r8
mov qword [rdx + 0x10], rcx
cmp dword [0x009d9570], 0
je 0x50901d
call fcn.004673c0
mov qword [r11], rax
mov rcx, qword [rdx]
mov qword [r11 + 8], rcx
mov qword [rdx], rax
xor eax, eax
xor ebx, ebx
add rsp, 0xc0
pop rbp
ret
mov rax, rdi
mov rbx, r9
add rsp, 0xc0
pop rbp
ret
mov rax, rdx
mov rbx, rsi
add rsp, 0xc0
pop rbp
ret
mov rdx, rcx
mov rcx, rdi
call fcn.004677e0
nop
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], rcx
mov qword [rsp + 0x130], rdi
call fcn.004654a0
mov rax, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x128]
mov rdi, qword [rsp + 0x130]
nop dword [rax]
jmp fcn.00508ba0