Function at 0x10006310
Capabilities:
Create thread
Enumerate process modules

Disassembly:
sub esp, 0x230
mov eax, dword [0x1006d004]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x100063b4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x224
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x10006444
nop word [eax + eax]
mov ecx, 0x10066850
lea eax, [esp + 0x2c]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006390
test dl, dl
je 0x1000638c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006390
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006370
xor eax, eax
jmp 0x10006395
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006427
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x10006360
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x10066850
push str.DirectXHook::InjectDirectXHook__:__s_not_loaded_yet_in_process__u__retrying...
push 0xc8
call fcn.10009530
add esp, 0x10
cmp dword [0x1006ec50], 0
jle 0x1000640f
mov eax, dword [0x1006ec58]
cmp dword [eax + 0x2b276], 2
je 0x10006400
mov eax, dword [0x1006ec58]
push 2
mov eax, dword [eax + 0x2b276]
push eax
push str.SetDirectXHookStatus__u_____u
push 0x64
call fcn.10009530
add esp, 0x10
mov eax, dword [0x1006ec58]
mov dword [eax + 0x2b276], 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1000dfef
add esp, 0x230
ret
push dword [esp + 0x20]
push ebx
push 0x10066850
push str.DirectXHook::IsHookDllAlreadyLoaded:_found__s_in_process__u_at__p
push 0x64
call fcn.10009530
mov esi, dword [esp + 0x34]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100063b4
push 0x10006000
push 0x10066850
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push str.DirectXHook::InjectDirectXHook__:_own_HMODULE_X__RemoteThreadProc_p
push 0x64
call fcn.10009530
add esp, 0x10
push ebx
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000657a
push 0x10066850
mov dword [esp + 0x238], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esi, 0x10006000
sub esi, eax
lea eax, [esp + 0x234]
push eax
push 0
push 0
push esi
push 0x10000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x10006506
push dword [esp + 0x234]
push str.DirectXHook::InjectDirectXHook__:_CreateRemoteThread_ok__threadID_u
push 0x64
call fcn.10009530
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1000dfef
add esp, 0x230
ret
push str.DirectXHook::InjectDirectXHook__:_CreateRemoteThread_failed_
push 0xc8
call fcn.10009530
add esp, 8
cmp dword [0x1006ec50], 0
jle 0x1000655b
mov eax, dword [0x1006ec58]
cmp dword [eax + 0x2b276], 3
je 0x1000654c
mov eax, dword [0x1006ec58]
push 3
mov eax, dword [eax + 0x2b276]
push eax
push str.SetDirectXHookStatus__u_____u
push 0x64
call fcn.10009530
add esp, 0x10
mov eax, dword [0x1006ec58]
mov dword [eax + 0x2b276], 3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1000dfef
add esp, 0x230
ret
push str.DirectXHook::InjectDirectXHook__:_OpenProcess_failed_
push 0xc8
call fcn.10009530
add esp, 8
cmp dword [0x1006ec50], 0
jle 0x1000640f
mov eax, dword [0x1006ec58]
cmp dword [eax + 0x2b276], 3
je 0x100065c4
mov eax, dword [0x1006ec58]
push 3
mov eax, dword [eax + 0x2b276]
push eax
push str.SetDirectXHookStatus__u_____u
push 0x64
call fcn.10009530
add esp, 0x10
mov eax, dword [0x1006ec58]
pop edi
pop esi
pop ebx
mov dword [eax + 0x2b276], 3
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1000dfef
add esp, 0x230
ret