Function at 0x1400785f8
Capabilities:
Inspect section memory permissions

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x250
mov edi, dword [rbp + 0x1b8]
mov rsi, rcx
movaps xmmword [rax - 0x48], xmm6
lea rcx, [0x1401115a0]
movaps xmmword [rax - 0x58], xmm7
mov r12d, r8d
movaps xmmword [rax - 0x68], xmm8
mov r14, rdx
movaps xmmword [rax - 0x78], xmm9
mov qword [rbp - 8], r9
mov dword [rbp - 0x6c], r8d
mov qword [rsp + 0x70], rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15, qword [rsi + 0x30]
lea rcx, [rbp - 0x48]
mov r13d, dword [rsi + 0x68]
xor ebx, ebx
inc dword [0x140111fe8]
mov eax, edi
or dword [rbp - 0x80], 0xffffffff
and al, 2
neg r13d
mov dword [rsp + 0x4c], ebx
neg al
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x78], ebx
sbb rax, rax
mov dword [rsp + 0x60], 0x7fffffff
and rax, rcx
mov dword [rbp - 0x48], ebx
mov qword [rbp], rax
mov rax, qword [0x140112010]
mov qword [rbp - 0x60], rax
mov rax, qword [r15 + 0x40]
mov rcx, rax
mov dword [rbp - 0x44], ebx
mov dword [rsp + 0x7c], ebx
mov qword [rbp - 0x10], r15
mov qword [rbp + 0x108], rax
call fcn.1400693a0
lea rax, [rsi + 8]
mov rcx, rax
mov qword [rbp + 0xd0], rax
call fcn.14006f0fc
test eax, eax
je 0x140079660
mov al, byte [r15 + 0xb2]
mov ecx, dword [rbp + 0x1c0]
and ecx, 0xfffffe0
and al, 0x20
mov eax, dword [r15 + 0x88]
cmovne ecx, dword [rbp + 0x1c0]
mov dword [rbp - 0x78], ecx
mov ecx, edi
or ecx, 8
and al, 0x40
mov eax, r12d
cmove ecx, edi
mov edi, ecx
bts edi, 0x10
and eax, 0x200
mov eax, dword [rsi + 0x68]
cmove edi, ecx
test eax, eax
jle 0x140078733
mov ecx, eax
mov dword [rsp + 0x58], eax
neg ecx
mov r13d, eax
mov dword [rsp + 0x4c], ecx
jmp 0x14007873e
jns 0x14007874a
lea rcx, [rsi + 0x48]
call fcn.1400637bc
mov r12d, edi
mov dword [rsp + 0x40], edi
jmp 0x1400787db
mov dword [rsp + 0x40], edi
mov r12d, edi
test r13d, r13d
jne 0x1400787db
test byte [rbp - 0x6c], 0xa
mov dword [rsp + 0x40], edi
je 0x1400787db
lea rcx, [rsi + 0x18]
mov dword [rsp + 0x40], edi
call fcn.14006ddc4
test eax, eax
je 0x1400787db
lea rcx, [rsi + 0x58]
call fcn.140064414
mov rcx, qword [rsi + 0x30]
movsx edx, ax
call fcn.140061280
mov dword [rsp + 0x40], edi
cmp word [rax + 0x38], bx
jne 0x1400787db
movups xmm0, xmmword [rsi + 0x18]
lea edx, [r13 + 2]
movups xmm1, xmmword [rsi + 0x28]
lea rcx, [rbp + 0x88]
movups xmmword [rbp + 0x88], xmm0
movups xmmword [rbp + 0x98], xmm1
call fcn.14006d998
lea rcx, [rsi + 0x48]
mov dword [rsp + 0x58], eax
mov r13d, eax
call fcn.1400637bc
bts r12d, 0xc
mov dword [rbp - 0x44], 1
mov dword [rsp + 0x40], r12d
mov rcx, qword [rsi + 0x30]
mov dword [rsp + 0x5c], r13d
test byte [rcx + 0x84], 0x10
jne 0x1400787f9
movzx eax, byte [rcx + 0xb2]
and eax, 1
jne 0x140078825
mov edi, dword [rbp + 0x1b0]
bt edi, 0x1d
jae 0x14007882b
mov rcx, r14
call fcn.14007be10
test eax, eax
je 0x14007882b
mov eax, 1
mov rcx, r15
mov r8d, eax
mov edx, eax
call fcn.1400608e0
jmp 0x14007882b
mov edi, dword [rbp + 0x1b0]
mov edx, dword [rbp - 0x78]
mov ecx, 0x8000
test edx, 0xb000001f
je 0x1400788c6
test byte [r15 + 0x84], 0x10
jne 0x140078856
movzx eax, byte [r15 + 0xb2]
and eax, 1
jne 0x1400788c6
movzx eax, word [r14 + 0x34]
and eax, edx
test al, 0x1f
jne 0x14007889f
bt edx, 0x1c
jae 0x14007886d
cmp byte [r14 + 0x3b], bl
jne 0x14007889f
test edx, edx
jns 0x140078877
cmp byte [r14 + 0x39], bl
jne 0x14007889f
bt edx, 0x1d
jae 0x1400788c6
cmp byte [r14 + 0x38], bl
je 0x1400788c6
mov rax, qword [r15 + 0x78]
test rax, rax
je 0x140078892
mov rcx, qword [rax + 0x38]
jmp 0x140078895
mov rcx, rbx
test rcx, rcx
mov ecx, 0x8000
je 0x1400788c6
test edx, 0xffffffe3
jne 0x1400788b1
or word [r15 + 0x8e], cx
jmp 0x1400788c6
mov edx, 1
mov rcx, r15
mov r8d, edx
call fcn.1400608e0
mov ecx, 0x8000
cmp edi, 0xffffffff
je 0x1400788ec
bt edi, 0x13
jae 0x1400788ec
test ecx, r12d
jne 0x1400788ec
movzx eax, word [r14 + 0x20]
add ax, 0xa
mov dword [rbp - 0x58], 1
cmp ax, 9
jbe 0x1400788ef
mov dword [rbp - 0x58], ebx
test r13d, r13d
je 0x14007950c
test dword [rbp - 0x6c], 0x40000000
mov edi, dword [rsp + 0x4c]
mov qword [rbp + 0x80], rbx
jne 0x1400789fb
lea r14, [r15 + 0x60]
mov qword [rbp + 0x80], r14
test r14, r14
je 0x1400789fb
mov rax, qword [rsi + 0x18]
lea rcx, [rsi + 0x58]
mov r10d, dword [rsi + 0x28]
xorps xmm0, xmm0
add r10d, edi
mov qword [rbp + 0x88], rbx
mov dword [rsp + 0x78], r10d
movdqu xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rax
call fcn.140064414
mov rcx, qword [rsi + 0x30]
movsx edx, ax
call fcn.140061280
cmp word [rax + 0x38], bx
je 0x1400789ba
mov ecx, 0x400
test word [rax + 0x2a], cx
jne 0x1400789ba
mov r9d, 1
lea r8, [rbp - 0x74]
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.14007aa84
mov ecx, dword [rsi + 0x28]
mov eax, ecx
sub eax, dword [rsi + 0x68]
cmp dword [rsi + 0x68], ebx
cmovl ecx, eax
cmp dword [rbp - 0x74], ecx
jg 0x1400789b5
mov eax, dword [rsp + 0x78]
mov r10d, dword [rbp - 0x70]
sub eax, r10d
add eax, r13d
mov dword [rsp + 0x78], r10d
mov dword [rsp + 0x5c], eax
jmp 0x1400789bd
mov r10d, dword [rsp + 0x78]
mov eax, r13d
lea ecx, [rax + r10]
mov r8d, 0x3fffffff
mov rax, rsi
neg rax
lea rax, [rsi + 8]
sbb rdx, rdx
xor r9d, r9d
and rdx, rax
lea rax, [rbp + 0x88]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov rcx, r14
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ebx
call fcn.14006fa90
lea rcx, [rsi + 0x48]
mov edx, edi
call fcn.140063450
mov eax, dword [rsi + 0x28]
movups xmm0, xmmword [rcx]
mov r10d, dword [rsp + 0x4c]
add eax, r10d
mov dword [rsp + 0x50], eax
movdqu xmmword [rbp - 0x38], xmm0
cmp qword [rbp - 8], rbx
je 0x140078af9
movabs rax, 0x600006003
mov dword [rsp + 0x68], ebx
mov r14d, ebx
mov edi, ebx
test qword [r15 + 0x18], rax
je 0x140078a94
lea rdx, [rsi + 8]
lea rcx, [rbp + 0x10]
call fcn.14006e2e0
test r10d, r10d
je 0x140078a79
mov edx, r10d
lea rcx, [rbp + 0x60]
call fcn.140063450
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140078a79
cmp dword [rcx + 8], ebx
je 0x140078a79
mov edx, dword [rsp + 0x4c]
lea rcx, [rbp + 0x20]
call fcn.140083f9c
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, r13d
lea rcx, [rbp + 0x10]
call fcn.14006ecb0
mov edi, dword [rsp + 0x68]
mov r14d, eax
mov edx, r14d
lea rcx, [rbp - 0x38]
call fcn.140063450
mov r8d, dword [rsp + 0x50]
lea r9, [rbp - 0x38]
mov rax, qword [rbp - 0x60]
sub edi, r14d
mov dword [rsp + 0x30], ebx
add edi, r13d
mov qword [rsp + 0x28], rax
add r8d, r14d
mov rdx, r15
mov dword [rsp + 0x20], edi
call fcn.14008558c
neg r14d
lea rcx, [rbp - 0x38]
mov edx, r14d
mov rdi, rax
call fcn.140063450
test rdi, rdi
je 0x140078af9
mov r8, qword [rbp - 8]
mov rdx, rdi
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
mov rcx, r8
call qword [case.0x140064bf9.0]
mov r14, qword [rsp + 0x70]
mov r8d, 1
mov dword [rsp + 0x54], ebx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rbx
movzx edi, byte [r14 + 4]
mov dword [rbp - 0x74], r12d
lea eax, [rdi - 5]
cmp eax, r8d
jbe 0x140078b32
lea eax, [rdi - 0x14]
cmp eax, r8d
jbe 0x140078b32
mov qword [rbp + 0x78], rbx
cmp edi, 0x2e
jne 0x140078b36
mov qword [rbp + 0x78], r8
lea eax, [rdi - 0xc]
mov edx, 0x100
mov dword [rbp - 0x14], eax
mov eax, r12d
and eax, edx
mov dword [rsp + 0x48], eax
mov eax, dword [r14]
and eax, dword [rbp + 0x1b0]
mov ecx, eax
and ecx, edx
mov dword [rbp - 0x18], ecx
bt eax, 0x1c
jae 0x140078b6b
mov qword [rbp + 0x70], r8
bt r12d, 0x10
jb 0x140078b6f
mov qword [rbp + 0x70], rbx
cmp dil, 0xa
je 0x140078b7e
mov dword [rbp - 0x7c], ebx
cmp dil, 0x11
jne 0x140078b82
mov dword [rbp - 0x7c], r8d
xor edx, edx
mov dword [rbp - 0x70], r8d
lea rcx, [rbp + 0xa8]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov edx, 0x80
mov qword [rbp - 0x50], rbx
movups xmm0, xmmword [rsi + 0x18]
mov qword [rbp - 0x40], rbx
movups xmm1, xmmword [rsi + 0x28]
movups xmmword [rbp + 0xd8], xmm0
movups xmm0, xmmword [rsi + 0x38]
movups xmmword [rbp + 0xe8], xmm1
movdqu xmmword [rbp + 0xf8], xmm0
cmp dword [rsp + 0x48], ebx
jne 0x140078c1c
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x40], rbx
cmp word [r15 + 0x8c], bx
jge 0x140078c1c
test dword [rbp + 0x1b0], 0x20000000
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x40], rbx
je 0x140078c1c
lea ecx, [rdx - 0x7f]
mov qword [rbp - 0x50], rbx
mov dword [rsp + 0x48], ecx
mov qword [rbp - 0x40], rbx
test byte [r15 + 0x8e], dl
je 0x140078c1c
mov rax, rbx
mov qword [rbp - 0x40], rcx
test dil, dil
sete al
mov qword [rbp - 0x50], rax
mov edi, dword [rsp + 0x48]
test edi, edi
je 0x140078c5a
cmp dword [rbp - 0x7c], ebx
jne 0x140078c5a
cmp dword [0x140111fe8], ebx
je 0x140078c4c
movsx ecx, word [r14 + 6]
lea rdx, [rbp - 0x20]
call fcn.14006b330
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x28], rax
test rax, rax
jne 0x140078c5a
movzx ecx, byte [r14 + 4]
call fcn.14006754c
mov qword [rbp - 0x28], rax
cmp word [r15 + 0x8c], bx
jge 0x140078c75
bt r12d, 0xd
jb 0x140078c75
bts r12d, 0xc
mov dword [rsp + 0x40], r12d
test r13d, r13d
jle 0x140079380
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140079380
cmp dword [rax + 8], ebx
je 0x140079380
lea rcx, [rbp - 0x38]
mov dword [rsp + 0x68], 1
call fcn.140064414
movsx edx, ax
mov rcx, r15
call fcn.140061230
movups xmm6, xmmword [rax]
movups xmm8, xmmword [rax + 0x10]
movups xmm7, xmmword [rax + 0x20]
movups xmm9, xmmword [rax + 0x30]
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp + 0x20], xmm8
movaps xmmword [rbp + 0x30], xmm7
movaps xmmword [rbp + 0x40], xmm9
cmp dword [rbp - 0x58], ebx
je 0x140078cfd
movsx edx, word [r14 + 0x20]
cmp edx, 0xfffffffe
jg 0x140078cfd
lea rcx, [rbp + 0x10]
call fcn.14007b9b0
movaps xmm9, xmmword [rbp + 0x40]
movaps xmm7, xmmword [rbp + 0x30]
movaps xmm8, xmmword [rbp + 0x20]
movaps xmm6, xmmword [rbp + 0x10]
mov r9d, r13d
mov dword [rsp + 0x44], r13d
movd r13d, xmm6
cmp dword [rbp - 0x18], ebx
je 0x140078e30
bt r13d, 0x17
jae 0x140078d26
mov r14d, dword [rbp + 0x1b0]
jmp 0x140078e48
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140078d3b
mov r9d, eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x54], ebx
jmp 0x140078d1a
mov edx, dword [rsp + 0x50]
lea rcx, [rbp + 0xd8]
call fcn.140083f60
lea rcx, [rbp - 0x38]
call fcn.1400632fc
mov r12d, eax
mov r15d, ebx
test eax, eax
jle 0x140078def
lea rdx, [rbp + 0xc8]
lea rcx, [rbp + 0xd8]
call fcn.14006d784
test rax, rax
je 0x140078d7f
movzx ecx, word [rax]
jmp 0x140078d81
mov ecx, ebx
cmp cx, 7
je 0x140078e26
movzx r14d, cx
mov edi, 2
lea eax, [r14 - 0xfff9]
cmp eax, edi
ja 0x140078db1
xor edx, edx
lea rcx, [rbp + 0xd8]
call fcn.14006defc
test eax, eax
jne 0x140078e0b
xor edx, edx
lea rcx, [rbp + 0xd8]
call fcn.1400840a4
lea ecx, [r14 - 0xa]
mov edi, eax
cmp ecx, 3
ja 0x140078ddf
mov edx, 0xfff9
lea rcx, [rbp + 0xd8]
call fcn.14006defc
test eax, eax
jne 0x140078e1d
add r15d, edi
cmp r15d, r12d
jl 0x140078d62
mov edi, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x44]
mov r14d, dword [rbp + 0x1b0]
mov r12d, dword [rsp + 0x40]
test r9d, r9d
je 0x1400792ca
jmp 0x140078e4d
mov dword [rsp + 0x54], edi
mov edi, dword [rsp + 0x48]
mov r9d, r15d
mov dword [rsp + 0x44], r15d
jmp 0x140078df4
lea eax, [rdi + 2]
mov dword [rsp + 0x54], eax
jmp 0x140078e0f
mov dword [rsp + 0x54], 1
jmp 0x140078e0f
mov ecx, dword [rbp + 0x1b0]
mov eax, r13d
and eax, 0x800120
mov r14d, ecx
cmp eax, 0x800120
jne 0x140078e4d
btr r14d, 8
mov r15d, 0x40000
test r15d, r13d
je 0x140078ebb
and r14d, 0xd5ffffff
mov dil, byte [rbp + 0x14]
mov r13, qword [rbp + 0xc0]
mov eax, 1
mov r15d, eax
mov dword [rsp + 0x64], eax
mov eax, dword [rbp + 0x1b0]
mov edx, 0x8000000
and eax, edx
mov dword [rbp - 0x68], eax
mov r12, r15
cmp r15, 1
jle 0x1400791ba
mov ecx, dword [r13]
mov dword [rsp + 0x44], ecx
cmp dword [rsp + 0x68], ebx
je 0x14007918e
and r14d, 0xd7ffffff
mov dword [rsp + 0x68], ebx
btr dword [rsp + 0x40], 0x14
jmp 0x1400791a8
cmp qword [rbp + 0x70], rbx
je 0x140078f19
movdqa xmm0, xmm6
psrldq xmm0, 4
movd edi, xmm0
movzx eax, dil
sub eax, 0x34
mov byte [rbp + 0x14], dil
cmp eax, 1
jbe 0x140078ee3
test dil, dil
jne 0x140078e63
lea rcx, [rbp + 0x10]
call fcn.14007be9c
test eax, eax
jne 0x140078e63
bts r14d, 0x1d
cmp byte [0x140111995], bl
je 0x140078e63
movzx eax, word [0x140111996]
mov word [rbp + 0x16], ax
movaps xmm6, xmmword [rbp + 0x10]
jmp 0x140078e63
test edi, edi
je 0x140078e5f
lea rcx, [rbp - 0x38]
call fcn.1400632fc
cmp r9d, eax
movdqa xmm0, xmm6
psrldq xmm0, 4
cmovl eax, r9d
movd edi, xmm0
cmp dword [rsp + 0x58], eax
mov r9d, eax
cmovl r9d, dword [rsp + 0x58]
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x64], edi
mov byte [rbp + 0x14], dil
cmp dil, 0xa
jne 0x140078fa5
test r12b, 1
je 0x140078fad
mov rax, qword [rsp + 0x70]
cmp byte [rax + 4], dil
je 0x140078fad
btr r14d, 0x1b
bt r14d, 0x1d
jae 0x140078e63
cmp dword [0x140111fe8], ebx
je 0x140078f9b
movsx ecx, word [rax + 6]
xor edx, edx
call fcn.14006b330
cmp rax, r15
je 0x140078e63
btr r14d, 0x1d
jmp 0x140078e63
mov eax, ebx
cmp dil, 0x11
jne 0x140078fb2
mov eax, 1
mov ecx, dword [rbp - 0x7c]
cmp eax, ecx
je 0x140079015
test ecx, ecx
je 0x140078fc2
mov al, dil
jmp 0x140078fca
mov rax, qword [rsp + 0x70]
mov al, byte [rax + 4]
cmp al, 0xb
ja 0x14007901d
bts r14d, 0x1b
test ecx, ecx
je 0x140078fe0
mov byte [rbp + 0x3a], al
movaps xmm7, xmmword [rbp + 0x30]
jmp 0x140079000
movdqa xmm0, xmm7
psrldq xmm0, 0xa
movd eax, xmm0
cmp al, 0xb
ja 0x140079000
mov byte [rbp + 0x14], al
mov dil, al
movaps xmm6, xmmword [rbp + 0x10]
btr r14d, 0x1b
mov edx, dword [rsp + 0x50]
lea rcx, [rbp + 0xd8]
call fcn.140083f60
jmp 0x140078e63
test ecx, ecx
jne 0x140078e63
movzx edi, dil
mov ecx, edi
call fcn.14006754c
mov r12, rax
mov rax, qword [rbp - 0x28]
and r12, rax
and r12, 0xffffffffffffff3f
cmp dword [rbp - 0x14], 3
jbe 0x140079051
movabs rcx, 0x7800000000f00000
mov r15d, ebx
test rcx, rax
je 0x140079057
mov r15d, 1
mov edx, dword [rsp + 0x50]
lea rcx, [rbp + 0xd8]
btr r14d, 0x1b
call fcn.140083f60
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0xd8]
call fcn.14006d784
test rax, rax
je 0x140079086
movzx ecx, word [rax]
jmp 0x140079088
mov ecx, ebx
mov r13d, dword [rsp + 0x40]
lea eax, [rdi - 0xc]
mov r11d, 0x80
mov r9d, ebx
cmp cx, r11w
setb r9b
or r13d, 8
cmp cx, r11w
cmovae r13d, dword [rsp + 0x40]
mov dword [rsp + 0x40], r13d
cmp eax, 3
jbe 0x1400790c3
lea eax, [rdi - 0x2f]
mov edx, ebx
cmp eax, 3
ja 0x1400790c8
mov edx, 1
cmp qword [rbp + 0x78], rbx
jne 0x1400790e3
lea eax, [rdi - 5]
cmp eax, 1
jbe 0x1400790e3
lea eax, [rdi - 0x14]
cmp eax, 1
jbe 0x1400790e3
cmp edi, 0x2e
jne 0x140079119
mov r10, qword [rbp - 0x50]
test r10, r10
jne 0x14007911d
mov dword [rsp + 0x40], r13d
test r12, r12
jne 0x140079150
mov edi, dword [rsp + 0x64]
mov dword [rsp + 0x40], r13d
cmp dil, 9
je 0x140079154
btr r14d, 0x1d
mov r15d, r13d
btr r15d, 0x14
mov dword [rsp + 0x40], r15d
jmp 0x140079154
mov r10, qword [rbp - 0x50]
cmp cx, r11w
jae 0x1400790ec
mov rax, qword [rbp - 0x28]
and al, 0xc0
cmp al, 0xc0
je 0x140079137
test r15d, r15d
jne 0x140079137
cmp dword [rbp - 0x7c], ebx
je 0x1400790ec
mov rax, qword [rsp + 0x70]
cmp qword [rbp - 0x40], rbx
je 0x140079172
test edx, edx
jne 0x140079172
cmp byte [rax + 4], bl
je 0x140079172
btr r14d, 0x1d
mov edi, dword [rsp + 0x64]
mov edx, dword [rsp + 0x44]
lea rcx, [rbp + 0xd8]
mov dword [rsp + 0x20], r9d
call fcn.14008412c
sub dword [rsp + 0x44], eax
jmp 0x140078e63
test r12, r12
je 0x140079187
test r10, r10
jne 0x140079187
cmp byte [rax + 4], bl
jne 0x140079150
test r13b, 1
je 0x140079150
bts r14d, 0x1b
jmp 0x140079150
bts r14d, 0x1d
mov dword [rsp + 0x68], 1
cmp dil, 9
je 0x1400791a8
test eax, eax
je 0x1400791a8
or r14d, edx
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp + 0x20], xmm8
movaps xmmword [rbp + 0x30], xmm7
movaps xmmword [rbp + 0x40], xmm9
mov r8d, r14d
test eax, eax
je 0x1400791cb
test edx, r14d
jne 0x1400791cb
btr r8d, 0x19
mov eax, dword [rbp - 0x78]
lea rcx, [rbp + 0x10]
mov r9d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.14007afec
mov edi, eax
test eax, eax
jne 0x140079346
mov rcx, qword [rbp - 0x60]
lea r8, [rsp + 0x7c]
lea rdx, [rbp + 0x10]
call fcn.1400709f0
mov edi, eax
test eax, eax
jne 0x140079346
cmp dword [rbp - 0x70], ebx
je 0x140079220
mov rcx, qword [rsi + 0x30]
mov dword [rbp - 0x70], ebx
mov rcx, qword [rcx + 0x40]
call fcn.140074a70
mov rax, qword [rbp]
lea rcx, [rbp - 0x38]
mov r9, qword [rbp - 0x60]
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x7c]
mov qword [rsp + 0x28], rax
call fcn.140064234
mov edi, eax
cmp eax, dword [rsp + 0x44]
jge 0x14007924f
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x64], ebx
mov rcx, qword [rbp - 0x60]
mov edx, dword [rsp + 0x7c]
add rcx, 8
mov dword [rsp + 0x44], edi
call fcn.140070630
cmp edi, 0x3fffffff
je 0x1400792ea
mov edx, dword [rsp + 0x50]
cmp dword [rbp - 0x48], ebx
je 0x140079293
cmp edx, dword [rsp + 0x60]
lea eax, [rdi + rdx]
mov ecx, edx
cmovge ecx, dword [rsp + 0x60]
mov dword [rsp + 0x60], ecx
cmp eax, dword [rbp - 0x80]
jle 0x140079293
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x60], ecx
sub dword [rsp + 0x58], edi
add edx, edi
inc r15
mov dword [rsp + 0x50], edx
add r13, 4
cmp r12, 1
jge 0x1400792c1
cmp dword [rsp + 0x64], ebx
je 0x1400792c1
mov dil, byte [rbp + 0x14]
mov edx, 0x8000000
mov eax, dword [rbp - 0x68]
jmp 0x140078e86
mov r12d, dword [rbp - 0x74]
mov dword [rsp + 0x40], r12d
mov r13d, dword [rsp + 0x58]
mov r15, qword [rbp - 0x10]
test r13d, r13d
jle 0x140079380
mov r14, qword [rsp + 0x70]
mov edi, dword [rsp + 0x48]
jmp 0x140078c7e
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x14007930b
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140079307
call fcn.140071ae4
jmp 0x14007930b
or dword [rax + 0x18], 0x40
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14007931d
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp qword [rbp + 0xc0], rbx
je 0x14007933c
mov r8, qword [rbp + 0xc0]
xor edx, edx
mov rcx, qword [0x140111a50]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 1
jmp 0x140079696
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140079358
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp qword [rbp + 0xc0], rbx
je 0x140079696
mov r8, qword [rbp + 0xc0]
xor edx, edx
mov rcx, qword [0x140111a50]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140079696
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140079392
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp qword [rbp + 0xc0], rbx
je 0x1400793b1
mov r8, qword [rbp + 0xc0]
xor edx, edx
mov rcx, qword [0x140111a50]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdi, [rsi + 0x48]
mov rcx, rdi
call fcn.140063774
lea rcx, [rbp - 0x38]
call fcn.1400637bc
mov r8, qword [rbp - 0x60]
lea rcx, [rbp - 0x38]
mov edx, dword [rsi + 0x50]
call fcn.140063fac
test eax, eax
je 0x140079400
cmp qword [rbp], rbx
je 0x140079400
mov eax, dword [rsi + 0x28]
mov dword [rsp + 0x60], eax
cmp dword [rsi + 0x68], ebx
jl 0x1400793f8
mov dword [rbp - 0x80], eax
sub eax, dword [rsi + 0x68]
mov dword [rsp + 0x60], eax
jmp 0x140079400
mov ecx, eax
sub ecx, dword [rsi + 0x68]
mov dword [rbp - 0x80], ecx
mov r14d, dword [rsp + 0x4c]
mov rcx, rdi
test r14d, r14d
je 0x140079419
mov edx, r14d
neg edx
call fcn.140063450
jmp 0x14007941e
call fcn.1400637bc
mov r10, qword [rbp + 0x80]
mov edi, dword [rbp + 0x1b0]
test r10, r10
je 0x1400794a5
mov r8d, dword [rsp + 0x78]
mov ecx, 2
mov eax, dword [rbp - 0x74]
test dword [rbp - 0x78], 0xffffffbf
mov r9d, dword [rsp + 0x5c]
mov dword [rbp + 0x90], eax
mov eax, dword [rbp + 0x88]
cmovne eax, ecx
mov dword [rbp + 0x8c], edi
sub r9d, r13d
mov dword [rbp + 0x88], eax
add r9d, r8d
lea rcx, [rsi + 8]
mov rax, rsi
neg rax
lea rax, [rbp + 0x88]
mov qword [rsp + 0x38], rax
sbb rdx, rdx
mov dword [rsp + 0x30], r9d
and rdx, rcx
mov dword [rsp + 0x28], r8d
xor r9d, r9d
mov r8d, 0x3fffffff
mov dword [rsp + 0x20], ebx
mov rcx, r10
call fcn.14006fb68
mov rax, qword [rbp - 8]
test rax, rax
je 0x1400794de
cmp dword [rbp - 0x6c], ebx
jl 0x1400794de
mov r9d, dword [rsi + 0x68]
mov ecx, 2
mov r8d, dword [rsi + 0x28]
mov rdx, rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ecx
mov rcx, r15
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], r8d
call fcn.1400745d8
cmp dword [rsi + 0x68], ebx
jne 0x1400794f3
cmp dword [rbp - 0x44], ebx
jne 0x140079511
or edx, 0xffffffff
mov rcx, rsi
call fcn.1400796ec
mov rcx, qword [r15 + 0x68]
test rcx, rcx
je 0x1400795df
xor edx, edx
call fcn.140071a3c
jmp 0x1400795df
mov r14d, dword [rsp + 0x4c]
movsx edx, word [rsi + 0x70]
mov rcx, r15
bts r12d, 0xc
call fcn.140061230
movups xmm0, xmmword [rax + 0x10]
movups xmm2, xmmword [rax]
movups xmm1, xmmword [rax + 0x20]
movaps xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rax + 0x30]
movd eax, xmm2
movaps xmmword [rbp + 0x10], xmm2
movaps xmmword [rbp + 0x30], xmm1
movaps xmmword [rbp + 0x40], xmm0
test al, 0x20
je 0x140079565
cmp qword [r15 + 0x70], rbx
je 0x140079565
test dword [r15 + 0x84], 0x10000
jne 0x140079565
and edi, 0xffffffdf
mov dword [rbp + 0x1b0], edi
mov rdi, qword [rsp + 0x70]
cmp dword [rbp - 0x58], ebx
je 0x140079581
movsx edx, word [rdi + 0x20]
cmp edx, 0xfffffffe
jg 0x140079581
lea rcx, [rbp + 0x10]
call fcn.14007b9b0
mov eax, dword [rbp - 0x78]
lea rcx, [rbp + 0x10]
mov r8d, dword [rbp + 0x1b0]
mov r9d, r12d
mov rdx, rdi
mov dword [rsp + 0x20], eax
call fcn.14007afec
test eax, eax
je 0x1400795a9
mov ebx, eax
jmp 0x140079660
mov rcx, qword [rbp - 0x60]
lea r8, [rsp + 0x7c]
lea rdx, [rbp + 0x10]
call fcn.1400709f0
mov edi, eax
test eax, eax
jne 0x140079696
mov rcx, qword [rbp - 0x60]
movsx edx, word [rsi + 0x70]
add rcx, 8
call fcn.140070630
movzx eax, word [rsp + 0x7c]
mov word [rsi + 0x70], ax
test byte [rsi + 0x74], 0x40
je 0x140079600
test dword [r15 + 0x84], 0x80000
jne 0x140079600
mov rcx, qword [r15 + 0x68]
test rcx, rcx
je 0x140079600
call fcn.140071ab0
test r12d, 0x2800
jne 0x140079664
mov r10d, dword [rsp + 0x5c]
test r10d, r10d
je 0x140079664
test r13d, r13d
jne 0x140079664
movabs rax, 0x186fffe7408600b
test qword [r15 + 0x18], rax
jne 0x140079635
test dword [r15 + 0x94], 0x2000
je 0x140079664
mov rax, qword [rsi + 0x18]
cmp byte [rax + 0x60], 0x7f
je 0x140079664
mov rdx, qword [rbp + 0xd0]
lea rcx, [rbp + 0x10]
call fcn.14006e2e0
lea edx, [r10 + r14]
test edx, edx
je 0x140079660
lea rcx, [rbp + 0x10]
call fcn.14006e348
mov edi, ebx
jmp 0x140079696
cmp qword [rbp], rbx
je 0x14007968d
mov ecx, dword [rbp - 0x80]
test ecx, ecx
jns 0x140079679
mov edx, dword [rsi + 0x28]
xor r8d, r8d
jmp 0x140079685
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x60]
sub r8d, ecx
mov rcx, rsi
call fcn.14007717c
test r13d, r13d
mov edi, ebx
setne dil
mov rcx, qword [rbp + 0x108]
call fcn.1400693f0
dec dword [0x140111fe8]
lea rcx, [0x1401115a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rsp + 0x250]
mov eax, edi
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret