Function at 0x1000983f
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 8], eax
push esi
mov esi, edx
push edi
test eax, eax
jne 0x1000973e
push 0xef3
push str.C:Gamesplugin_sdk_safetyhookZydis.c
push str.state
call fcn.1001beb3
add esp, 0xc
test esi, esi
jne 0x10009759
push 0xef4
push str.C:Gamesplugin_sdk_safetyhookZydis.c
push str.instruction
call fcn.1001beb3
add esp, 0xc
test ebx, ebx
jne 0x10009774
push 0xef5
push str.C:Gamesplugin_sdk_safetyhookZydis.c
push str.definition
call fcn.1001beb3
add esp, 0xc
mov al, byte [ebx + 0xc]
test al, 0x60
je 0x100097ba
and al, 0x60
cmp al, 0x80
jb 0x10009798
push 0xf00
push str.C:Gamesplugin_sdk_safetyhookZydis.c
push str.definition__cpu_state____sizeof_mapping____sizeof__mapping__0___
call fcn.1001beb3
add esp, 0xc
movzx eax, byte [ebx + 0xc]
lea edi, [esi + 0x20]
shr eax, 5
and eax, 3
mov ecx, dword [eax*8 + 0x100741e0]
or dword [edi], ecx
mov eax, dword [eax*8 + 0x100741e4]
or dword [edi + 4], eax
jmp 0x100097bd
lea edi, [esi + 0x20]
test byte [ebx + 0xd], 3
lea eax, [ebx + 0xd]
mov dword [ebp - 0xc], eax
je 0x100097e8
movzx ecx, byte [eax]
and ecx, 3
mov dword [ebp - 0xc], eax
mov eax, dword [ecx*8 + 0x10089c70]
or dword [edi], eax
mov eax, dword [ecx*8 + 0x10089c74]
or dword [edi + 4], eax
lea eax, [ebx + 0xd]
mov cl, byte [eax]
mov edx, edi
test cl, 0xc
je 0x10009835
and cl, 0xc
cmp cl, 0x10
jb case.default.0x10009838
push 0xf1a
push str.C:Gamesplugin_sdk_safetyhookZydis.c
push str.definition__xmm_state____sizeof_mapping____sizeof__mapping__0___
call fcn.1001beb3
mov eax, dword [ebp - 0xc]
lea edx, [esi + 0x20]
add esp, 0xc
movzx ecx, byte [eax]
shr ecx, 2
and ecx, 3
mov dword [ebp - 0xc], eax
mov eax, dword [ecx*8 + 0x1009c570]
or dword [edi], eax
mov eax, dword [ecx*8 + 0x1009c574]
or dword [edi + 4], eax
mov eax, dword [esi + 0xc]
jmp dword [eax*4 + 0x10009ce0]
mov ecx, dword [ebp - 0xc]
test byte [ecx], 0x20
je 0x10009868
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [edx + 4], eax
or ecx, 0x100
lea eax, [ebx + 0xd]
mov dword [edx], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x20]
mov dword [ebp - 0x10], eax
jmp 0x10009870
mov dword [ebp - 0x14], ecx
mov eax, edx
mov dword [ebp - 0x10], edx
test byte [ecx], 0x40
mov edi, eax
je 0x100098c3
mov ebx, dword [edx]
mov edi, dword [edx + 4]
or ebx, 0x10000
mov dword [edx], ebx
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 8]
mov dword [edx + 4], edi
mov dword [ebp - 0x18], edi
mov edi, eax
cmp byte [ebx + 0x10], 0
mov ebx, dword [ebp + 8]
je 0x100098c3
mov eax, dword [ebp - 0xc]
lea edi, [esi + 0x20]
mov ecx, dword [ebp - 0x14]
or eax, 0x8000000
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x15]
mov dword [esi + eax*8 + 0x6c], 1
mov eax, dword [ebp - 0x10]
cmp byte [ecx], 0
jge 0x100098db
mov ecx, dword [ebp - 0x10]
or dword [eax], 0x20000
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x100098dd
mov edi, eax
test byte [ebx + 0xe], 1
lea ecx, [ebx + 0xe]
je 0x100098fe
mov ecx, dword [eax]
lea edx, [esi + 0x20]
mov eax, dword [eax + 4]
or ecx, 0x40000
mov dword [edi], ecx
lea ecx, [ebx + 0xe]
mov dword [edi + 4], eax
jmp 0x10009900
mov edx, edi
test byte [ebx + 0xe], 2
lea eax, [ebx + 0xe]
mov dword [ebp - 0x10], ecx
je 0x1000991d
mov eax, dword [edi + 4]
or dword [edi], 0x80000
mov dword [edi + 4], eax
lea eax, [ebx + 0xe]
jmp 0x10009924
mov ecx, eax
mov edx, edi
mov dword [ebp - 0x10], ecx
test byte [eax], 4
je 0x10009947
mov ecx, dword [edi]
mov eax, dword [edi + 4]
or ecx, 0x100000
mov dword [edx + 4], eax
lea edi, [esi + 0x20]
lea eax, [ebx + 0xe]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x1000994c
mov edi, edx
mov dword [ebp - 0xc], ecx
test byte [ecx], 8
je 0x1000995f
mov eax, dword [edx + 4]
or dword [edx], 0x200000
mov dword [edx + 4], eax
jmp 0x10009964
mov edi, edx
mov dword [ebp - 0xc], ecx
test byte [ecx], 0x10
je 0x1000997e
mov ecx, dword [edx]
mov eax, dword [edx + 4]
or ecx, 0x400000
mov dword [edi], ecx
lea edx, [esi + 0x20]
mov dword [edi + 4], eax
jmp 0x10009980
mov edx, edi
mov eax, dword [ebp - 0xc]
test byte [eax], 0x40
je 0x10009996
mov eax, dword [edi + 4]
or dword [edi], 0x800000
mov dword [edi + 4], eax
jmp 0x10009998
mov edx, edi
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x11]
sub eax, 0xf2
je 0x10009a2a
sub eax, 1
jne 0x10009aa9
mov ecx, dword [edi]
mov eax, ecx
mov edi, dword [edi + 4]
and eax, 0x20000
or eax, 0
je 0x100099d5
or ecx, 0x10000000
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], ecx
jmp 0x10009aa9
mov eax, ecx
and eax, 0x40000
or eax, 0
je 0x100099f2
or ecx, 0x20000000
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], ecx
jmp 0x10009aa9
mov eax, ecx
and eax, 0x400000
or eax, 0
je 0x10009aa9
mov eax, ecx
and eax, 0x8000000
or eax, 0
jne 0x10009a1c
test byte [ebx + 0xe], 0x40
jne 0x10009a1c
lea edx, [esi + 0x20]
jmp 0x10009aa9
or edi, 2
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edi
lea edx, [esi + 0x20]
jmp 0x10009aa9
mov ecx, dword [edx]
mov eax, ecx
mov edi, dword [edx + 4]
and eax, 0x80000
or eax, 0
mov dword [ebp - 0x14], edi
je 0x10009a4b
or ecx, 0x40000000
mov dword [edx + 4], edi
mov dword [edx], ecx
jmp 0x10009aa9
mov eax, ecx
and eax, 0x200000
or eax, 0
je 0x10009a82
mov eax, ecx
mov dword [ebp - 0x18], edx
and eax, 0x8000000
or eax, 0
jne 0x10009b20
test byte [ebx + 0xe], 0x40
je 0x10009a7f
or edi, 1
mov dword [edx], ecx
lea eax, [esi + 0x20]
mov dword [edx + 4], edi
mov edx, eax
jmp 0x10009aa9
lea edx, [esi + 0x20]
mov eax, dword [ebp - 8]
mov edi, edx
mov eax, dword [eax]
cmp byte [eax + 0xb], 0
je 0x10009aa9
mov eax, ecx
and eax, 0x100000
or eax, 0
je 0x10009aa9
mov eax, dword [ebp - 0x14]
or ecx, 0x80000000
mov dword [edi], ecx
mov dword [edi + 4], eax
mov edi, dword [ebp - 8]
movzx eax, byte [edi + 0x16]
cmp dword [esi + eax*8 + 0x6c], 0
lea edi, [esi + eax*8]
jne 0x10009ad7
mov ecx, dword [esi + 0x20]
lea edx, [esi + 0x20]
mov eax, dword [edx + 4]
and ecx, 0xf0000000
and eax, 3
or ecx, eax
je 0x10009ad7
mov dword [edi + 0x6c], 1
cmp byte [ebx + 0xe], 0
mov ecx, edx
jge 0x10009b4e
mov edi, dword [edx]
mov eax, edi
mov ecx, dword [edx + 4]
or eax, 0x1000000
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov dword [edx + 4], ecx
mov dword [ebp - 0x18], ecx
mov bl, byte [eax + 0x12]
mov byte [ebp - 1], bl
cmp bl, 0x2e
mov ebx, dword [ebp + 8]
je 0x10009b32
cmp byte [ebp - 1], 0x3e
mov ecx, edx
jne 0x10009b51
mov ecx, dword [ebp - 0x18]
or edi, 0x1000000
or ecx, 8
mov dword [edx + 4], ecx
lea ecx, [esi + 0x20]
jmp 0x10009b40
mov eax, dword [ebp - 0x18]
or edi, 1
mov dword [edx], ecx
mov dword [edx + 4], edi
mov edx, eax
jmp 0x10009aa9
or edi, 0x1000000
or ecx, 4
mov dword [edx + 4], ecx
mov ecx, edx
mov dword [edx], edi
movzx eax, byte [eax + 0x17]
mov dword [esi + eax*8 + 0x6c], 1
mov eax, dword [ebp - 8]
test byte [ebx + 0xe], 0x20
mov edi, ecx
je 0x10009ba7
mov edi, dword [edx]
or edi, 0x2000000
mov dword [ebp - 0x14], edi
mov edi, dword [edx + 4]
mov ebx, dword [ebp - 0x14]
mov dword [edx], ebx
mov ebx, dword [ebp + 8]
mov dword [edx + 4], edi
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edi
mov edi, ecx
cmp byte [eax + 0xc], 0
je 0x10009baa
cmp byte [edx + 0x1c], 0
jl 0x10009baa
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
or eax, 0x10
mov dword [ecx], edi
lea edi, [esi + 0x20]
mov dword [ecx + 4], eax
movsx eax, byte [edx + 0x1c]
mov dword [esi + eax*8 + 0x6c], 1
jmp 0x10009baa
mov edx, dword [ebp - 8]
test byte [ebx + 0xd], 0x10
je 0x10009cd7
cmp byte [ebx + 0xe], 0
jl 0x10009cd7
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
or ebx, 0x4000000
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov cl, byte [edx + 0x13]
mov edx, eax
mov dword [ebp - 0xc], eax
mov byte [ebp + 0xb], cl
test cl, cl
je 0x10009c39
mov ecx, eax
xor eax, eax
and ecx, 0x10
or eax, ecx
jne 0x10009c39
movzx eax, byte [ebp + 0xb]
movzx eax, byte [eax + 0x10009cee]
jmp dword [eax*4 + 0x10009cf8]
mov edx, dword [ebp - 0xc]
or edx, 0x20
jmp 0x10009c34
mov edx, dword [ebp - 0xc]
or edx, 0x40
jmp 0x10009c34
mov edx, dword [ebp - 0xc]
or edx, 0x80
jmp 0x10009c34
mov edx, dword [ebp - 0xc]
or edx, 0x100
jmp 0x10009c34
mov edx, dword [ebp - 0xc]
or edx, 0x200
jmp 0x10009c34
mov edx, dword [ebp - 0xc]
or edx, 0x400
mov dword [edi + 4], edx
mov dword [edi], ebx
and edx, 0x7e0
xor eax, eax
or eax, edx
je 0x10009cd7
mov eax, dword [ebp - 8]
pop edi
movzx eax, byte [eax + 0x1a]
mov dword [esi + eax*8 + 0x6c], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
test byte [eax], 0x10
je 0x10009cd7
mov edi, dword [edx]
mov ebx, dword [ebp - 8]
or edi, 0x4000000
mov ecx, dword [edx + 4]
mov dword [edx], edi
mov dword [edx + 4], ecx
mov al, byte [ebx + 0x13]
test al, al
je 0x10009cbf
movzx eax, al
movzx eax, byte [eax + 0x10009d4a]
jmp dword [eax*4 + 0x10009d54]
and ecx, 0x7e0
xor eax, eax
or eax, ecx
je 0x10009cd7
movzx eax, byte [ebx + 0x1a]
mov dword [esi + eax*8 + 0x6c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret