Function at 0x100098d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0ff5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x10113000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
push 0x10112578
mov dword [ebp - 0x40], 0x10112578
call fcn.1009e907
add esp, 4
test eax, eax
jne 0x1000a35c
mov eax, dword [0x101125a4]
cmp eax, 0x7fffffff
je 0x1000a363
sub esp, 8
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [0x10112565], 0x1000aef0
movsd qword [esp], xmm0
push str.initializing_hook_search___f___
call fcn.100045b0
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [edi + 0x28], 0
mov esi, section..data
mov ecx, 0x9e
cmovne esi, edi
mov edi, 0x101122e0
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x38]
mov dword [0x10112318], eax
call fcn.1000b1e0
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 1
cmp dword [0x10112554], eax
jne 0x1000a0d7
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp word [0x10112338], ax
je 0x10009a6a
push 0x10
push 0x1000
push 0x10112338
call edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10098590
mov eax, dword [0x10112300]
add esp, 0x10
test eax, eax
jne 0x10009a2f
mov esi, dword [0x10112328]
mov eax, esi
mov ecx, dword [ebp - 0x3c]
cmp ecx, esi
mov edi, dword [ebp - 0x38]
cmova eax, ecx
cmp eax, edi
jae 0x100099f2
cmp ecx, esi
jbe 0x100099fa
mov esi, ecx
jmp 0x100099f4
mov esi, edi
mov dword [0x10112328], esi
mov edx, dword [0x10112330]
cmp edi, edx
mov eax, edx
cmovb eax, edi
cmp eax, ecx
jbe 0x10009a1f
cmp edi, edx
jae 0x10009a27
mov edx, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x10112330], edx
jmp 0x10009a76
mov edx, ecx
mov dword [0x10112330], edx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x10009a76
cmp eax, 1
jne 0x10009a6a
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
sub edx, ecx
cmp dword [0x10112328], edx
mov esi, edx
cmovb esi, dword [0x10112328]
add esi, ecx
cmp dword [0x10112330], edx
mov dword [0x10112328], esi
cmovb edx, dword [0x10112330]
add edx, ecx
mov dword [0x10112330], edx
jmp 0x10009a76
mov esi, dword [0x10112328]
mov edx, dword [0x10112330]
cmp word [0x10112428], 0
je 0x10009adc
push 0x10112428
call edi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1000a760
mov ecx, eax
add esp, 8
lea eax, [ebp - 0x54]
cmp eax, ecx
je 0x10009ac8
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x4c], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
lea ecx, [ebp - 0x78]
call fcn.10009800
mov edx, dword [0x10112330]
mov esi, dword [0x10112328]
cmp word [0x10112338], 0
je 0x10009b2b
push 0x10112338
call edi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1000a760
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.1000b330
add esp, 0x10
lea ecx, [ebp - 0x78]
call fcn.10009800
mov eax, dword [ebp - 0x4c]
mov edx, dword [0x10112330]
mov esi, dword [0x10112328]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
xor eax, eax
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x58], ecx
mov ecx, dword [0x10112304]
mov byte [ebp - 4], 3
test ecx, ecx
jne 0x10009be6
movzx eax, word [0x10112308]
push edx
push esi
push 0x10
push eax
lea eax, [ebp - 0x78]
push 0x101122e0
push eax
call fcn.10098850
mov ecx, eax
add esp, 0x18
lea eax, [ebp - 0x60]
cmp eax, ecx
jne 0x10009b87
lea ecx, [ebp - 0x78]
call fcn.10009800
xor eax, eax
jmp 0x10009ce2
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], eax
call fcn.10009800
mov eax, dword [ebp - 0x18]
mov ecx, eax
cmp eax, edi
je 0x10009ce2
nop word [eax + eax]
mov eax, dword [0x1011230c]
add dword [ecx], eax
add ecx, 4
cmp ecx, edi
jne 0x10009bd0
mov eax, dword [ebp - 0x18]
jmp 0x10009ce2
cmp ecx, 1
jne 0x10009caf
and esi, 0xfffffff0
mov dword [ebp - 0x24], esi
cmp esi, edx
jae 0x10009ce2
mov ecx, esi
mov dword [ebp - 0x2c], esi
push 0x110
lea eax, [ecx - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10009c20
mov esi, dword [ebp - 0x2c]
add esi, 0xf0
jmp 0x10009c90
mov eax, dword [esi - 4]
cmp eax, 0xcccccccc
je 0x10009c68
cmp eax, 0x90909090
je 0x10009c68
cmp eax, 0xccccccc3
je 0x10009c68
cmp eax, 0x909090c3
je 0x10009c68
mov ecx, eax
and ecx, 0xff0000ff
cmp ecx, 0xcc0000c2
je 0x10009c68
cmp ecx, 0x900000c2
je 0x10009c68
shr eax, 8
cmp eax, 0xccccc3
je 0x10009c68
cmp eax, 0x9090c3
jne 0x10009c90
cmp edi, dword [ebp - 0x1c]
je 0x10009c77
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0x5c], edi
jmp 0x10009c90
lea eax, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.10009250
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
add esi, 0x10
mov ecx, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], ecx
cmp esi, dword [0x10112330]
jb 0x10009c02
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
jmp 0x10009ce2
cmp ecx, 2
jne 0x10009ce2
cmp esi, edx
jae 0x10009ce2
nop dword [eax + eax]
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10009d1f
add esi, 0xff
mov eax, dword [ebp - 0x18]
inc esi
cmp esi, dword [0x10112330]
jb 0x10009cc0
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x10009db0
mov esi, dword [ebp - 0x50]
mov eax, dword [eax]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
call fcn.1009efc0
cmp eax, esi
jne 0x10009d9f
cmp esi, dword [ebp - 0x20]
je 0x10009d83
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x50], esi
jmp 0x10009d9f
cmp byte [esi], 0xe8
jne 0x10009cd6
mov eax, dword [esi + 1]
add eax, 5
add eax, esi
mov dword [ebp - 0x30], eax
cmp dword [0x10112328], eax
jae 0x10009cd6
cmp dword [0x10112330], eax
jbe 0x10009cd6
mov edx, dword [ebp - 0x18]
push eax
push edi
push edx
call fcn.1009efc0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
cmp edi, dword [ebp - 0x1c]
je 0x10009d62
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x5c], edi
jmp 0x10009cd6
lea eax, [ebp - 0x30]
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.10009250
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
jmp 0x10009cd9
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.10009250
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
cmp eax, edi
jne 0x10009cf0
push 0x10
push 0x1000
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10098590
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov edi, dword [ebp - 0x50]
mov eax, edx
cmp eax, edi
je 0x10009e1a
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
mov ecx, dword [eax]
cmp ecx, esi
jbe 0x10009deb
cmp ecx, edx
jb 0x10009df2
add eax, 4
cmp eax, edi
jne 0x10009de1
mov edx, dword [ebp - 0x14]
cmp eax, edi
je 0x10009e1a
lea ecx, [eax + 4]
cmp ecx, edi
je 0x10009e18
mov esi, dword [ecx]
cmp esi, dword [ebp - 0x48]
jbe 0x10009e0c
cmp esi, dword [ebp - 0x44]
jb 0x10009e11
mov dword [eax], esi
add eax, 4
add ecx, 4
cmp ecx, edi
jne 0x10009e00
cmp eax, edi
cmovne edi, eax
mov eax, edi
mov dword [ebp - 0x50], edi
sub eax, edx
sar eax, 2
mov esi, eax
mov dword [ebp - 0x28], eax
shl esi, 4
push 4
sub esi, eax
push 0x1000
add esi, esi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x10118a70
push 0x40
push esi
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x28], eax
jbe 0x10009f83
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 0x24], eax
nop
lea ecx, [ebp - 0x38]
push ecx
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + edi*4]
call fcn.10080680
test eax, eax
je 0x10009ebc
mov dword [ebp - 0x34], edi
cmp esi, dword [ebp - 0x2c]
je 0x10009ea6
mov dword [esi], edi
add esi, 4
mov dword [ebp - 0x68], esi
jmp 0x10009ebc
lea eax, [ebp - 0x34]
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.10009250
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
push dword [eax + edi*4]
call fcn.10080940
mov ecx, dword [ebp - 0x24]
movups xmm0, xmmword [0x10112558]
movups xmmword [ecx], xmm0
movq xmm0, qword [0x10112568]
movq qword [ecx + 0x10], xmm0
mov eax, dword [0x10112570]
mov dword [ecx + 0x18], eax
mov ax, word [0x10112574]
mov word [ecx + 0x1c], ax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edi*4]
mov dword [ecx + 3], eax
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0x19], eax
mov eax, 0x68db8bad
imul edi
mov ecx, edi
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x9c4
sub ecx, eax
jne 0x10009f67
mov eax, dword [ebp - 0x28]
sub esp, 8
movd xmm1, edi
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mulsd xmm1, qword [0x100eba60]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x100eb740]
divsd xmm1, xmm0
addsd xmm1, qword [0x100eba58]
movsd qword [esp], xmm1
push str.initializing_hook_search___f___
call fcn.100045b0
add esp, 0xc
mov eax, dword [ebp - 0x24]
inc edi
add eax, 0x1e
mov dword [ebp - 0x24], eax
cmp edi, dword [ebp - 0x28]
jb 0x10009e80
mov ecx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x24], ecx
sub esi, ecx
sar esi, 2
test esi, esi
je 0x10009fc3
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax*4]
mov eax, edi
lea ecx, [edx + 4]
sub eax, ecx
push eax
push ecx
push edx
call fcn.100b7a40
mov eax, dword [ebp - 0x28]
add esp, 0xc
sub eax, 4
sub edi, 4
mov dword [ebp - 0x28], eax
sub esi, 1
jne 0x10009f95
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x14]
mov eax, edi
sub eax, esi
sar eax, 2
push eax
push str.initialized_hook_search_with__zd_hooks
call fcn.100045b0
add esp, 8
call fcn.100805a0
push str.starting_hook_search
call fcn.100045b0
mov eax, 0x10624dd3
imul dword [0x10112310]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.please_click_around_in_the_game_to_force_it_to_process_text_during_the_next__d_seconds
call fcn.100045b0
add esp, 0xc
push dword [0x10112310]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, edi
je 0x1000a02e
nop dword [eax]
push dword [esi]
call fcn.10080920
add esi, 4
cmp esi, edi
jne 0x1000a020
call fcn.100805a0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x14]
cmp esi, edi
je 0x1000a053
push dword [esi]
call fcn.10080960
add esi, 4
cmp esi, edi
jne 0x1000a045
push 0x8000
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call fcn.1000ab30
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x1000a09f
mov ecx, dword [ebp - 0x2c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1000a095
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a370
push ecx
push edx
call fcn.100b5e98
add esp, 8
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x1000a30b
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1000a0d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a370
push ecx
push edx
jmp 0x1000a303
xor eax, eax
mov byte [0x10118ae0], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x64], eax
push dword [0x101189dc]
xor esi, esi
mov byte [ebp - 4], 5
push str.initialized_hook_search_with__zd_hooks
or edi, 0xffffffff
mov dword [ebp - 0x30], esi
call fcn.100045b0
mov ecx, dword [0x101189d8]
add esp, 8
mov eax, dword [ecx]
cmp eax, ecx
je 0x1000a14c
mov esi, dword [eax + 0x10]
mov edx, esi
movq xmm0, qword [eax + 8]
cmp edi, esi
mov eax, dword [eax]
cmovb edx, edi
movq qword [ebp - 0x78], xmm0
cmp dword [ebp - 0x30], esi
mov edi, edx
cmova esi, dword [ebp - 0x30]
mov dword [ebp - 0x30], esi
cmp eax, ecx
jne 0x1000a126
push esi
push edi
push str._p__p
call fcn.100045b0
push dword [0x10112330]
push dword [0x10112328]
push str._p__p
call fcn.100045b0
mov edi, dword [0x101189d8]
add esp, 0x18
mov esi, dword [edi]
cmp esi, edi
je 0x1000a28d
movq xmm0, qword [esi + 8]
mov edx, dword [esi + 0x10]
movq qword [ebp - 0x78], xmm0
cmp edx, dword [0x10112330]
ja 0x1000a27e
cmp edx, dword [0x10112328]
jb 0x1000a27e
mov eax, dword [ebp - 0x74]
inc dword [ebp - 0x1c]
push 0
sub esp, 0x28
mov ecx, esp
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__bool____cdecl___struct__CONTEXT___unsigned_int__unsigned_int__enum_JITTYPE___struct_std::_Ph_1__const___unsigned_int_const___unsigned_int___enum_JITTYPE____bool__struct__CONTEXT__.0
mov dword [ecx + 4], 0x1000af50
mov dword [ecx + 0xc], edx
mov dl, byte [ebp - 0xd]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [ecx + 0x10], eax
mov byte [ecx + 0x14], dl
push eax
mov dword [ecx + 0x24], ecx
call fcn.1007b760
add esp, 0x30
test al, al
je 0x1000a215
mov eax, dword [ebp - 0x68]
xor edx, edx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
cmp eax, dword [ebp - 0x2c]
je 0x1000a202
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
mov dword [ebp - 0x68], eax
jmp 0x1000a215
lea ecx, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.10009330
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
mov eax, 0x68db8bad
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x9c4
sub ecx, eax
jne 0x1000a27e
mov eax, dword [0x101189dc]
sub esp, 8
movd xmm1, dword [ebp - 0x1c]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mulsd xmm1, qword [0x100eba60]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x100eb740]
divsd xmm1, xmm0
addsd xmm1, qword [0x100eba58]
movsd qword [esp], xmm1
push str.initializing_hook_search___f___
call fcn.100045b0
add esp, 0xc
mov esi, dword [esi]
cmp esi, edi
jne 0x1000a181
mov esi, dword [ebp - 0x6c]
jmp 0x1000a28f
xor esi, esi
push dword [ebp - 0x1c]
push str.initialized_hook_search_with__zd_hooks
call fcn.100045b0
mov eax, 0x10624dd3
imul dword [0x10112310]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.please_click_around_in_the_game_to_force_it_to_process_text_during_the_next__d_seconds
call fcn.100045b0
add esp, 0x10
push dword [0x10112310]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x10118ae0], 1
call fcn.1000ab30
test esi, esi
je 0x1000a30b
mov ecx, dword [ebp - 0x2c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x1000a301
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a375
push ecx
push esi
call fcn.100b5e98
add esp, 8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000a33e
mov edx, dword [ebp - 0x20]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x1000a334
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a375
push edx
push ecx
call fcn.100b5e98
add esp, 8
push 0x10112578
call fcn.1009e918
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 5
call fcn.1009ec41
dec eax
push 6
mov dword [0x101125a4], eax
call fcn.1009ec41
call fcn.100c203f
call fcn.100c203f
int3