Function at 0x10008fe3
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be477
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x100edfa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x614], edi
mov eax, dword fs:[0x2c]
mov edx, dword [0x10c6c4a0]
mov dword [ebp - 0x618], 0
mov edx, dword [eax + edx*4]
mov eax, dword [0x10c64c28]
cmp eax, dword [edx + 4]
jg 0x10009ab6
push 0x10c64bf8
mov dword [ebp - 0x65c], 0x10c64bf8
call fcn.10081d0f
add esp, 4
test eax, eax
je 0x10008f07
push eax
call fcn.100822d1
add esp, 4
mov eax, dword [ebp - 0x614]
mov esi, 0x100ed050
mov dword [0x100ed315], 0x1000a330
xorps xmm0, xmm0
cmp dword [edi + 0x28], 0
mov ecx, 0xa0
mov dword [ebp - 4], 0
cmovne esi, edi
sub esp, 8
mov edi, 0x100ed328
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x38]
movsd qword [esp], xmm0
push str.initializing_hook_search___f___
mov dword [0x100ed360], eax
call fcn.10005fc0
mov esi, dword [0x100ed35c]
add esp, 0xc
mov edx, 0x208
xor ecx, ecx
mov byte [ebp - 4], 1
mov eax, esi
mov dword [0x100f3158], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x614], ecx
call fcn.100ada1e
mov edi, eax
add esp, 4
mov dword [ebp - 0x620], edi
test edi, edi
je 0x10008fc2
push dword [ebp - 0x614]
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
dec esi
test eax, eax
je 0x10008fba
mov ecx, edi
call fcn.10008cc0
add edi, 0x208
jmp 0x10008fa4
mov eax, dword [ebp - 0x620]
jmp 0x10008fc4
xor eax, eax
mov ecx, dword [0x10c64bf4]
or dword [ebp - 0x618], 1
mov dword [0x10c64bf4], eax
test ecx, ecx
je 0x10008fe3
push ecx
call fcn.100ada27
add esp, 4
cmp dword [0x10c64bf4], 0
mov edx, 0x208
mov dword [ebp - 4], 0
jne 0x10009006
mov esi, dword [0x100ed35c]
test esi, esi
jne 0x10008f61
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x628], 0
cmp word [0x100ed380], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov byte [ebp - 4], 3
je 0x10009119
push 0x10
push 0x1000
push 0x100ed380
call edi
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.1007b300
mov eax, dword [0x100ed348]
add esp, 0x10
test eax, eax
jne 0x100090da
mov esi, dword [0x100ed370]
mov eax, esi
mov edx, dword [ebp - 0x644]
cmp edx, esi
mov ecx, dword [ebp - 0x640]
cmova eax, edx
cmp eax, ecx
jae 0x100090af
cmp edx, esi
jbe 0x100090b5
mov dword [0x100ed370], edx
jmp 0x100090b5
mov dword [0x100ed370], ecx
mov esi, dword [0x100ed378]
cmp ecx, esi
mov eax, esi
cmovb eax, ecx
cmp eax, edx
jbe 0x100090d2
cmp ecx, esi
jae 0x10009119
mov dword [0x100ed378], ecx
jmp 0x10009119
mov dword [0x100ed378], edx
jmp 0x10009119
cmp eax, 1
jne 0x10009119
mov edx, dword [ebp - 0x644]
mov esi, dword [ebp - 0x640]
sub esi, edx
cmp dword [0x100ed370], esi
mov ecx, esi
cmovb ecx, dword [0x100ed370]
add ecx, edx
cmp dword [0x100ed378], esi
mov dword [0x100ed370], ecx
cmovb esi, dword [0x100ed378]
add esi, edx
mov dword [0x100ed378], esi
cmp word [0x100ed470], 0
je 0x10009186
push 0x100ed470
call edi
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.10009cc0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x630]
cmp eax, esi
je 0x1000917b
mov ecx, eax
call fcn.10008df0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x62c], eax
mov eax, dword [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x628], eax
mov dword [esi + 8], 0
lea ecx, [ebp - 0x650]
call fcn.10008df0
cmp word [0x100ed380], 0
je 0x100091c9
push 0x100ed380
call edi
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.10009cc0
lea eax, [ebp - 0x650]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.1000a740
add esp, 0x10
lea ecx, [ebp - 0x650]
call fcn.10008df0
xor ecx, ecx
mov dword [ebp - 0x63c], 0
xor eax, eax
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x634], eax
mov edx, dword [0x100ed34c]
mov byte [ebp - 4], 5
test edx, edx
jne 0x100092b5
push dword [0x100ed378]
movzx eax, word [0x100ed350]
push dword [0x100ed370]
push 0x10
push eax
lea eax, [ebp - 0x650]
push 0x100ed328
push eax
call fcn.1007b5b0
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x618], esi
add esp, 0x18
cmp eax, edi
je 0x1000926e
mov ecx, eax
call fcn.10008df0
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x638], eax
mov eax, dword [edi + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x634], eax
mov dword [edi + 8], 0
lea ecx, [ebp - 0x650]
call fcn.10008df0
mov edx, dword [ebp - 0x618]
xor edi, edi
sub edx, esi
xor ecx, ecx
add edx, 3
shr edx, 2
cmp esi, dword [ebp - 0x618]
cmova edx, edi
test edx, edx
je 0x100093ca
nop dword [eax]
mov eax, dword [0x100ed354]
lea esi, [esi + 4]
add dword [esi - 4], eax
inc ecx
cmp ecx, edx
jne 0x100092a0
jmp 0x100093ca
cmp edx, 1
jne 0x10009333
mov edi, dword [0x100ed370]
cmp edi, dword [0x100ed378]
jae 0x100093ca
lea esi, [edi + 4]
nop
mov edx, dword [edi]
cmp edx, 0xcccccccc
je 0x100092e2
cmp edx, 0x90909090
jne 0x10009324
mov dl, byte [esi]
cmp dl, 0xcc
je 0x10009324
cmp dl, 0x90
je 0x10009324
mov dword [ebp - 0x614], esi
cmp eax, ecx
je 0x10009305
mov dword [ecx], esi
add ecx, 4
mov dword [ebp - 0x638], ecx
jmp 0x10009324
lea eax, [ebp - 0x614]
push eax
push ecx
lea ecx, [ebp - 0x63c]
call fcn.10008ba0
mov ecx, dword [ebp - 0x638]
mov eax, dword [ebp - 0x634]
inc edi
inc esi
cmp edi, dword [0x100ed378]
jb 0x100092d0
jmp 0x100093ca
cmp edx, 2
jne 0x100093ca
mov esi, dword [0x100ed370]
cmp esi, dword [0x100ed378]
jae 0x100093ca
mov edi, dword [ebp - 0x634]
cmp byte [esi], 0xe8
jne 0x100093c1
lea edx, [esi + 5]
add edx, dword [esi + 1]
cmp dword [0x100ed370], edx
jae 0x100093c1
cmp dword [0x100ed378], edx
jbe 0x100093c1
mov eax, dword [ebp - 0x63c]
cmp eax, ecx
je 0x1000938b
nop dword [eax]
cmp dword [eax], edx
je 0x1000938b
add eax, 4
cmp eax, ecx
jne 0x10009380
mov dword [ebp - 0x614], edx
cmp edi, ecx
je 0x100093a2
mov dword [ecx], edx
add ecx, 4
mov dword [ebp - 0x638], ecx
jmp 0x100093c1
lea eax, [ebp - 0x614]
push eax
push ecx
lea ecx, [ebp - 0x63c]
call fcn.10008ba0
mov ecx, dword [ebp - 0x638]
mov edi, dword [ebp - 0x634]
inc esi
cmp esi, dword [0x100ed378]
jb 0x10009354
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.1000a740
add esp, 8
push 0x10
push 0x1000
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.1007b300
mov ecx, dword [ebp - 0x630]
add esp, 0x10
mov edi, dword [ebp - 0x62c]
mov eax, ecx
mov dword [ebp - 0x61c], edi
cmp eax, edi
je 0x100094d2
mov esi, dword [ebp - 0x654]
mov edx, dword [ebp - 0x658]
nop word [eax + eax]
cmp dword [eax], edx
jbe 0x10009438
cmp dword [eax], esi
jb 0x1000943f
add eax, 4
cmp eax, edi
jne 0x10009430
cmp eax, edi
je 0x100094d2
lea edx, [eax + 4]
mov dword [ebp - 0x614], 0
mov esi, edi
mov dword [ebp - 0x620], 0
sub esi, edx
add esi, 3
shr esi, 2
cmp edx, edi
cmova esi, dword [ebp - 0x614]
mov dword [ebp - 0x614], esi
test esi, esi
mov esi, dword [ebp - 0x654]
je 0x100094c1
mov edi, dword [ebp - 0x620]
nop word [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 0x658]
jbe 0x1000949e
cmp ecx, esi
jb 0x100094a9
mov dword [eax], ecx
add eax, 4
mov esi, dword [ebp - 0x654]
inc edi
add edx, 4
cmp edi, dword [ebp - 0x614]
jne 0x10009490
mov edi, dword [ebp - 0x61c]
mov ecx, dword [ebp - 0x630]
cmp eax, edi
cmovne edi, eax
mov dword [ebp - 0x61c], edi
mov dword [ebp - 0x62c], edi
mov eax, edi
sub eax, ecx
sar eax, 2
mov esi, eax
mov dword [ebp - 0x610], 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 0x100f30a8
push 0x40
push esi
push eax
mov dword [ebp - 0x614], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x624], ecx
mov dword [ebp - 0x650], ecx
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x648], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x610], eax
jbe 0x10009692
mov eax, dword [ebp - 0x614]
xor edi, edi
mov dword [ebp - 0x624], eax
nop
lea ecx, [ebp - 0x640]
push ecx
push eax
mov eax, dword [ebp - 0x630]
push dword [eax + edi*4]
call fcn.10076a40
test eax, eax
je 0x100095aa
mov dword [ebp - 0x620], edi
cmp dword [ebp - 0x618], esi
je 0x10009585
mov dword [esi], edi
add esi, 4
mov dword [ebp - 0x64c], esi
jmp 0x100095aa
lea eax, [ebp - 0x620]
push eax
push esi
lea ecx, [ebp - 0x650]
call fcn.10008ba0
mov eax, dword [ebp - 0x648]
mov esi, dword [ebp - 0x64c]
mov dword [ebp - 0x618], eax
mov eax, dword [ebp - 0x630]
push dword [eax + edi*4]
call fcn.10076d10
mov ecx, dword [ebp - 0x624]
movups xmm0, xmmword [0x100ed308]
movups xmmword [ecx], xmm0
movq xmm0, qword [0x100ed318]
movq qword [ecx + 0x10], xmm0
mov eax, dword [0x100ed320]
mov dword [ecx + 0x18], eax
mov ax, word [0x100ed324]
mov word [ecx + 0x1c], ax
mov eax, dword [ebp - 0x630]
mov eax, dword [eax + edi*4]
mov dword [ecx + 3], eax
mov eax, dword [ebp - 0x640]
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 0x10009664
mov eax, dword [ebp - 0x610]
sub esp, 8
movd xmm1, edi
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mulsd xmm1, qword [0x100cc0f8]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x100cc100]
divsd xmm1, xmm0
addsd xmm1, qword [0x100cc0f0]
movsd qword [esp], xmm1
push str.initializing_hook_search___f___
call fcn.10005fc0
add esp, 0xc
mov eax, dword [ebp - 0x624]
inc edi
add eax, 0x1e
mov dword [ebp - 0x624], eax
cmp edi, dword [ebp - 0x610]
jb 0x10009550
mov ecx, dword [ebp - 0x650]
mov edi, dword [ebp - 0x61c]
mov dword [ebp - 0x624], ecx
sub esi, ecx
xor edx, edx
sar esi, 2
mov eax, edi
mov dword [ebp - 0x610], edx
test esi, esi
je 0x100096f0
mov eax, esi
sub eax, edx
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [ebp - 0x630]
lea eax, [ecx + eax*4]
mov ecx, edi
lea edx, [eax + 4]
sub ecx, edx
push ecx
push edx
push eax
call sub.msvcrt.dll_memmove
mov edx, dword [ebp - 0x610]
add edi, 0xfffffffc
mov ecx, dword [ebp - 0x624]
inc edx
add esp, 0xc
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x610], edx
mov eax, edi
cmp edx, esi
jb 0x100096a5
mov dword [ebp - 0x61c], edi
mov esi, eax
sub esi, dword [ebp - 0x630]
mov eax, esi
sar eax, 2
push eax
push str.initialized_hook_search_with__zd_hooks
call fcn.10005fc0
add esp, 8
call fcn.10076960
push str.starting_hook_search
call fcn.10005fc0
mov eax, 0x10624dd3
imul dword [0x100ed358]
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.10005fc0
add esp, 0xc
push dword [0x100ed358]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esi + 3]
xor edx, edx
mov esi, dword [ebp - 0x630]
mov eax, esi
shr ecx, 2
cmp esi, edi
mov dword [ebp - 0x610], eax
cmova ecx, edx
mov dword [ebp - 0x640], ecx
test ecx, ecx
je 0x10009795
xor edi, edi
push dword [eax]
call fcn.10076cf0
mov eax, dword [ebp - 0x610]
inc edi
add eax, 4
mov dword [ebp - 0x610], eax
cmp edi, dword [ebp - 0x640]
jne 0x10009770
mov edi, dword [ebp - 0x61c]
call fcn.10076960
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
mov dword [ebp - 0x610], 0
sub eax, esi
xor ecx, ecx
add eax, 3
shr eax, 2
cmp esi, edi
cmova eax, ecx
mov dword [ebp - 0x640], eax
test eax, eax
je 0x100097eb
mov edi, eax
nop dword [eax]
push dword [esi]
call fcn.10076d30
mov eax, dword [ebp - 0x610]
lea esi, [esi + 4]
inc eax
mov dword [ebp - 0x610], eax
cmp eax, edi
jne 0x100097d0
mov eax, dword [0x100ed35c]
sub eax, dword [0x100f3158]
push eax
push str.hook_search_finished___d_results_found
call fcn.10005fc0
mov esi, dword [0x10c64bf4]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x61c], edx
add esp, 8
cmp dword [0x100ed35c], ecx
jle 0x1000994c
xor edi, edi
mov dword [ebp - 0x620], edi
nop dword [eax + eax]
mov eax, dword [edi + esi]
or eax, dword [edi + esi + 4]
je 0x1000992d
inc ecx
mov eax, 0x14f8b589
imul ecx
mov dword [ebp - 0x610], ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x186a0
sub ecx, eax
jne 0x10009878
push dword [ebp - 0x610]
push str._d_results_processed
call fcn.10005fc0
mov esi, dword [0x10c64bf4]
add esp, 8
push 0x5f8
lea eax, [ebp - 0x60c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi + esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x604], eax
mov dword [ebp - 0x48c], 3
mov dword [ebp - 0x488], 0
mov eax, dword [edi + esi]
mov dword [ebp - 0x60c], eax
mov eax, dword [edi + esi + 4]
mov dword [ebp - 0x608], eax
mov eax, dword [edi + esi + 8]
mov dword [ebp - 0x47c], eax
mov eax, dword [0x100ed360]
mov dword [ebp - 0x484], eax
mov eax, dword [0x100ed5a0]
test eax, eax
je 0x100098ef
lea ecx, [ebp - 0x60c]
push ecx
call eax
mov esi, dword [0x10c64bf4]
add esp, 4
lea eax, [esi + 0x10]
mov ecx, 0x17e
add eax, edi
lea esi, [ebp - 0x60c]
push eax
sub esp, 0x5f8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10006450
mov esi, dword [0x10c64bf4]
add esp, 0x5fc
mov edi, dword [ebp - 0x620]
mov ecx, dword [ebp - 0x610]
mov edx, dword [ebp - 0x61c]
inc edx
add edi, 0x208
mov dword [ebp - 0x61c], edx
mov dword [ebp - 0x620], edi
cmp edx, dword [0x100ed35c]
jl 0x10009830
mov dword [0x10c64bf4], 0
test esi, esi
je 0x10009963
push esi
call fcn.100ada27
add esp, 4
push 0x8000
push 0
push dword [ebp - 0x614]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov byte [ebp - 4], 5
mov ecx, 0xb71a9
mov edi, 0x106abea8
rep stosd dword es:[edi], eax
xorps xmm0, xmm0
mov ecx, 0x16e350
mov esi, 0x100f3160
movlpd qword [0x100f3160], xmm0
mov edi, 0x100f3168
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x624]
test ecx, ecx
je 0x100099e8
mov eax, dword [ebp - 0x618]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x100099de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009af8
push edx
push ecx
call fcn.100ad9ff
add esp, 8
mov ecx, dword [ebp - 0x63c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x10009a30
mov eax, dword [ebp - 0x634]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009a26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009afd
push edx
push ecx
call fcn.100ad9ff
add esp, 8
mov ecx, dword [ebp - 0x630]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10009a78
mov eax, dword [ebp - 0x628]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009a6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009b02
push edx
push ecx
call fcn.100ad9ff
add esp, 8
push dword [ebp - 0x65c]
mov dword [ebp - 4], 7
call fcn.10081d34
add esp, 4
test eax, eax
je 0x10009a9a
push eax
call fcn.100822d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ada0d
mov esp, ebp
pop ebp
ret
push 0x10c64c28
call fcn.100adbe9
add esp, 4
cmp dword [0x10c64c28], 0xffffffff
jne 0x10008ee3
push 2
push 0x10c64bf8
call fcn.10081cee
push 0x100c58b0
call fcn.100ad872
push 0x10c64c28
call fcn.100adb9f
add esp, 0x10
jmp 0x10008ee3
call fcn.100af180
call fcn.100af180
call fcn.100af180
int3