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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r9d, dword [rcx + 0x8c]
xor ebp, ebp
movsxd r8, dword [rcx + 0x88]
mov rsi, rdx
mov rbx, rcx
test r9d, r9d
je 0x1400515b0
mov ecx, r9d
mov eax, 1
shl al, cl
mov ecx, 8
dec al
sub ecx, r9d
shl al, cl
and byte [r8 + rbx + 0x47], al
mov eax, 7
sub eax, dword [rbx + 0x8c]
movsxd rdx, dword [rbx + 0x88]
movzx ecx, byte [rdx + rbx + 0x47]
btc ecx, eax
mov byte [rdx + rbx + 0x47], cl
mov dword [rbx + 0x8c], ebp
jmp 0x1400515bc
mov byte [r8 + rcx + 0x48], 0x80
inc dword [rcx + 0x88]
mov eax, dword [rbx + 0x88]
cmp eax, 0x38
jle 0x140051606
cmp eax, 0x40
jge 0x1400515ea
nop dword [rax]
cdqe
mov byte [rax + rbx + 0x48], bpl
mov eax, dword [rbx + 0x88]
inc eax
mov dword [rbx + 0x88], eax
cmp eax, 0x40
jl 0x1400515d0
lea rdx, [rbx + 0x48]
mov r8d, 0x40
mov rcx, rbx
call fcn.140050fb0
mov eax, ebp
mov dword [rbx + 0x88], ebp
jmp 0x140051610
jge 0x14005162a
nop dword [rax + rax]
cdqe
mov byte [rax + rbx + 0x48], bpl
mov eax, dword [rbx + 0x88]
inc eax
mov dword [rbx + 0x88], eax
cmp eax, 0x38
jl 0x140051610
mov edx, dword [rbx + 0x40]
add edx, 1
mov dword [rbx + 0x40], edx
jne 0x140051638
inc dword [rbx + 0x44]
mov ecx, 0x40
nop dword [rax]
lea eax, [rcx - 1]
mov dword [rbx + 0x88], eax
mov eax, ecx
mov byte [rax + rbx + 0x47], dl
shr dword [rbx + 0x40], 8
mov ecx, dword [rbx + 0x88]
movzx edx, byte [rbx + 0x40]
cmp ecx, 0x3c
jg 0x140051640
cmp ecx, 0x38
jle 0x140051690
nop word [rax + rax]
lea eax, [rcx - 1]
mov dword [rbx + 0x88], eax
movzx eax, byte [rbx + 0x44]
mov byte [rcx + rbx + 0x47], al
shr dword [rbx + 0x44], 8
mov ecx, dword [rbx + 0x88]
cmp ecx, 0x38
jg 0x140051670
mov r8d, 0x40
lea rdx, [rbx + 0x48]
mov rcx, rbx
call fcn.140050fb0
mov rcx, rbx
call fcn.140051360
movzx eax, byte [rbx + 0x20]
mov byte [rsi], al
movzx eax, byte [rbx + 0x21]
mov byte [rsi + 1], al
movzx eax, byte [rbx + 0x22]
mov byte [rsi + 2], al
movzx eax, byte [rbx + 0x23]
mov byte [rsi + 3], al
movzx eax, byte [rbx + 0x24]
mov byte [rsi + 4], al
movzx eax, byte [rbx + 0x25]
mov byte [rsi + 5], al
movzx eax, byte [rbx + 0x26]
mov byte [rsi + 6], al
movzx eax, byte [rbx + 0x27]
mov byte [rsi + 7], al
movzx eax, byte [rbx + 0x28]
mov byte [rsi + 8], al
movzx eax, byte [rbx + 0x29]
mov byte [rsi + 9], al
movzx eax, byte [rbx + 0x2a]
mov byte [rsi + 0xa], al
movzx eax, byte [rbx + 0x2b]
mov byte [rsi + 0xb], al
movzx eax, byte [rbx + 0x2c]
mov byte [rsi + 0xc], al
movzx eax, byte [rbx + 0x2d]
mov byte [rsi + 0xd], al
movzx eax, byte [rbx + 0x2e]
mov byte [rsi + 0xe], al
movzx eax, byte [rbx + 0x2f]
mov byte [rsi + 0xf], al
movzx eax, byte [rbx + 0x30]
mov byte [rsi + 0x10], al
movzx eax, byte [rbx + 0x31]
mov byte [rsi + 0x11], al
movzx eax, byte [rbx + 0x32]
mov byte [rsi + 0x12], al
movzx eax, byte [rbx + 0x33]
mov byte [rsi + 0x13], al
movzx eax, byte [rbx + 0x34]
mov byte [rsi + 0x14], al
movzx eax, byte [rbx + 0x35]
mov byte [rsi + 0x15], al
movzx eax, byte [rbx + 0x36]
mov byte [rsi + 0x16], al
movzx eax, byte [rbx + 0x37]
mov byte [rsi + 0x17], al
movzx eax, byte [rbx + 0x38]
mov byte [rsi + 0x18], al
movzx eax, byte [rbx + 0x39]
mov byte [rsi + 0x19], al
movzx eax, byte [rbx + 0x3a]
mov byte [rsi + 0x1a], al
movzx eax, byte [rbx + 0x3b]
mov byte [rsi + 0x1b], al
movzx eax, byte [rbx + 0x3c]
mov byte [rsi + 0x1c], al
movzx eax, byte [rbx + 0x3d]
mov byte [rsi + 0x1d], al
movzx eax, byte [rbx + 0x3e]
mov byte [rsi + 0x1e], al
movzx eax, byte [rbx + 0x3f]
mov byte [rsi + 0x1f], al
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x48], rbp
mov qword [rbx + 0x50], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0x60], rbp
mov qword [rbx + 0x68], rbp
mov qword [rbx + 0x70], rbp
mov qword [rbx + 0x78], rbp
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x80], rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret