Function at 0x791200
Capabilities:
Inspect section memory permissions

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x791843
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
call fcn.007906d0
mov eax, dword [rsp]
mov dword [rsp + 0x18], eax
call fcn.00790d40
mov rax, qword [rsp]
cmp rax, 1
mov ecx, dword [rsp + 0x18]
cmp ecx, 1
jb 0x791830
mov qword [rsp + 0x50], rax
mov rdx, qword [0x00d65ea8]
mov dword [rsp], 1
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x14]
bt ecx, 0xf
setb bl
movzx ebx, bl
mov rsi, rbx
or rbx, 0x10
test ecx, 0x800000
cmovne rsi, rbx
mov rbx, rsi
or rsi, 0x20
test ecx, 0x2000000
cmovne rbx, rsi
mov rsi, rbx
or rbx, 0x40
test ecx, 0x2000000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 7
test ecx, 0x4000000
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 8
test eax, 1
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 9
test eax, 0x200
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 0xa
test eax, 0x80000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0xc
test eax, 0x100000
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 0x18
test eax, 0x2000000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0x19
test eax, 2
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 0x17
test eax, 0x800000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0x1d
test eax, 0x40000000
cmovne rbx, rsi
mov rsi, rbx
bts rbx, 0x12
test eax, 0x20000000
cmovne rsi, rbx
mov rbx, rsi
bts rsi, 0x2d
test eax, 0x2000
cmovne rbx, rsi
mov rsi, qword [rsp + 0x50]
cmp rsi, 1
jne 0x791827
bt ecx, 0x1c
jae 0x79181e
mov ecx, dword [rsp + 0x18]
cmp ecx, 4
jae 0x7917ee
bt eax, 0x1a
jae 0x7913a7
bt eax, 0x1b
jae 0x7913a7
bt eax, 0x1c
jb 0x79178d
cmp ecx, 7
jae 0x79156a
mov qword [rsp + 0x30], rbx
call fcn.00790680
cmp dword [rsp], 0x80000001
jae 0x7913d7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov rdx, qword [0x00d65ea8]
mov dword [rsp], 0x80000001
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x10]
mov dword [rsp + 0x2c], eax
mov ecx, dword [rsp + 0x14]
mov dword [rsp + 0x24], ecx
call fcn.00790d40
mov rax, qword [rsp + 0x30]
mov rcx, rax
or rax, 0xc00000
mov ebx, dword [rsp + 0x2c]
test ebx, 0x20
cmovne rcx, rax
mov rax, rcx
or rcx, 4
mov esi, dword [rsp + 0x24]
test esi, 0x80000000
cmovne rax, rcx
mov rcx, rax
or rax, 8
test esi, 0x40000000
cmovne rcx, rax
mov rax, rcx
or rcx, 0x10
test esi, 0x800000
cmovne rax, rcx
mov rcx, rax
or rax, 0x20
test esi, 0x400000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0xb
test ebx, 0x40
cmovne rax, rcx
mov rcx, rax
or rax, 2
test esi, 0x100000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x2c
test esi, 0x8000000
cmovne rax, rcx
cmp qword [rsp], 1
je 0x7914b0
bt eax, 7
jae 0x7914b0
bt ebx, 6
jb 0x7914b0
bts rax, 0x31
bt eax, 0xd
jae 0x7914da
mov rcx, rax
bts rax, 0x11
test ebx, 0x800
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x10
test ebx, 0x10000
cmovne rax, rcx
mov qword [rsp + 0x30], rax
call fcn.00790d40
cmp qword [rsp], 1
je 0x7914f5
mov rax, qword [rsp + 0x30]
jmp 0x7913c8
call fcn.00790bb0
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
cmp rcx, 6
jne 0x791563
cmp rax, 9
jne 0x791553
mov rdx, qword [rsp + 0x30]
mov rbx, rdx
bts rdx, 0x31
test rbx, 0x80
cmovne rbx, rdx
mov rdx, rbx
bts rbx, 0x32
test rdx, 0x100
cmovne rdx, rbx
cmp rcx, 6
jne 0x79154b
cmp rax, 0x1c
jne 0x79154b
bts rdx, 0x33
mov rax, rdx
jmp 0x7913c8
cmp rax, 0xd
je 0x79150f
cmp rax, 0xe
je 0x79150f
cmp rcx, 6
mov rdx, qword [rsp + 0x30]
jmp 0x79153e
mov qword [rsp + 0x30], rbx
mov rdx, qword [0x00d65eb0]
mov qword [rsp], 7
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp + 0x10]
mov ebx, dword [rsp + 0x14]
mov rsi, qword [rsp + 0x30]
bt esi, 0xd
jae 0x7915a5
bt eax, 5
jae 0x7915a5
bts rsi, 0xe
bt eax, 3
jae 0x7915c3
mov rdi, rsi
bts rsi, 0x13
or rdi, 0x180000
test eax, 0x100
cmovne rsi, rdi
mov rdi, rsi
bts rsi, 0x2e
test eax, 4
cmovne rdi, rsi
mov rsi, rdi
bts rdi, 0x1b
test eax, 0x10
cmovne rsi, rdi
mov rdi, rsi
bts rsi, 0x2b
test eax, 0x200
cmovne rdi, rsi
mov rsi, rdi
bts rdi, 0x1c
test eax, 0x800
cmovne rsi, rdi
mov rdi, rsi
bts rsi, 0x2a
test eax, 0x4000
cmovne rdi, rsi
mov rsi, rdi
bts rdi, 0x1e
test eax, 0x40000
cmovne rsi, rdi
mov rdi, rsi
bts rsi, 0x1f
test eax, 0x80000
cmovne rdi, rsi
mov rsi, rdi
bts rdi, 0x20
test eax, 0x20000000
cmovne rsi, rdi
mov rdi, rsi
bts rsi, 0x2f
test ebx, 0x4000000
cmovne rdi, rsi
mov rsi, rdi
bts rdi, 0x30
mov r8d, dword [rsp + 0x28]
and r8d, 0xc000000
test ebx, 0x8000000
cmovne rsi, rdi
cmp r8d, 0xc000000
je 0x79168c
mov rbx, rsi
jmp 0x7913b0
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x1c], ecx
mov qword [rsp + 0x48], rsi
mov rdx, qword [0x00d65ed0]
mov dword [rsp], 0
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 8]
mov ecx, eax
shr eax, 5
and eax, 7
cmp eax, 7
jne 0x791786
shr ecx, 1
and ecx, 3
cmp ecx, 3
jne 0x791786
mov rax, qword [rsp + 0x48]
mov rcx, rax
bts rax, 0x21
mov edx, dword [rsp + 0x20]
test edx, 0x10000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x22
test edx, 0x20000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x23
test edx, 0x200000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x24
test edx, 0x4000000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x25
test edx, 0x8000000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x26
test edx, 0x10000000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x27
test edx, 0x40000000
cmovne rcx, rax
mov rax, rcx
bts rcx, 0x28
test edx, 0x80000000
cmovne rax, rcx
mov rcx, rax
bts rax, 0x29
mov edx, dword [rsp + 0x1c]
test edx, 2
cmovne rcx, rax
mov rsi, rcx
jmp 0x791684
mov rcx, qword [rsp + 0x48]
jmp 0x79177e
mov qword [rsp + 0x40], rbx
mov rdx, qword [0x00d65ed0]
mov dword [rsp], 0
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 8]
and eax, 6
cmp eax, 6
jne 0x7917e3
mov rax, qword [rsp + 0x40]
mov rcx, rax
bts rax, 0xd
or rcx, 0xa000
mov ebx, dword [rsp + 0x28]
test ebx, 0x1000
cmovne rax, rcx
mov ecx, dword [rsp + 0x18]
mov rbx, rax
mov eax, dword [rsp + 0x28]
jmp 0x7913a7
mov ebx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
jmp 0x7917d3
mov qword [rsp + 0x38], rbx
call fcn.00790950
mov rbx, qword [rsp + 0x38]
mov rax, rbx
bts rbx, 0x1a
cmp qword [rsp], 1
cmovg rax, rbx
mov ecx, dword [rsp + 0x18]
mov rbx, rax
mov eax, dword [rsp + 0x28]
jmp 0x791391
mov ecx, dword [rsp + 0x18]
jmp 0x791391
mov ecx, dword [rsp + 0x18]
jmp 0x791391
mov qword [rsp + 0x68], 0
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.004555f0
jmp fcn.00791200