Function at 0x10051360
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, 0x1009df6c
push 0xffffffffffffffff
push 0x1007e87d
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [0x1009df88], ecx
mov ecx, 0x1009df70
push ebx
push esi
push edi
call fcn.10050cd0
test al, al
je 0x10051537
mov eax, dword [0x1009e00c]
mov dword [0x1009df74], 1
mov dword [0x1009dc8c], 0x10051560
test eax, eax
jne 0x1005146f
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x18]
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x1005144a
cmp word [eax + 0x24], 0
je 0x1005144a
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ecx + ebx + 0x78]
add ecx, ebx
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
je 0x1005144a
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1005144a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edx*4]
add ecx, ebx
sub ecx, 4
dec edx
mov dword [ebp - 0x18], ecx
mov edi, 0x2350341a
mov dword [ebp - 0x14], edx
mov ecx, dword [ecx]
add ecx, ebx
mov bl, byte [ecx]
inc ecx
test bl, bl
je 0x10051440
movsx esi, bl
lea ecx, [ecx + 1]
sub bl, 0x41
mov edx, esi
or edx, 0x20
cmp bl, 0x19
mov bl, byte [ecx - 1]
cmova edx, esi
xor edx, edi
imul edi, edx, 0x1000193
test bl, bl
jne 0x10051412
mov edx, dword [ebp - 0x14]
cmp edi, 0x9784f9a2
je 0x10051451
mov ecx, dword [ebp - 0x18]
mov ebx, dword [eax + 0x18]
test edx, edx
jne 0x100513f8
mov eax, dword [eax]
jmp 0x100513c8
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add ecx, esi
add eax, esi
movzx eax, word [eax + edx*2]
mov eax, dword [ecx + eax*4]
add eax, esi
mov dword [0x1009e00c], eax
push 0x10054430
push 1
call eax
push 0
push dword [0x1009df70]
call fcn.100549e0
push 1
push dword [0x1009df6c]
call fcn.100549e0
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 1
push 0x14
mov dword [ebp - 4], 0
call fcn.100560cd
mov cl, byte [ebp - 0xd]
mov esi, eax
mov edx, dword [ebp - 0x2c]
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x20], esi
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_resource_void___class_std::_Binder_struct_std::_Unforced__class__public:_static_void___cdecl_Backend::DX9Hook::InitializeHooks_struct_HINSTANCE_____int_::_8::_lambda_2___struct_std::_Ph_1__const___.0
mov byte [esi + 0xc], cl
mov dword [esi + 0x10], edx
mov edi, dword [0x1009df9c]
mov eax, dword [ebp - 0x2c]
mov dword [0x1009df98], eax
mov dword [0x1009df9c], esi
test edi, edi
je 0x10051526
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10051526
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10051526
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10088914
lea ecx, [ebp - 0x2c]
call fcn.10013c00
push 0x10099a4c
lea eax, [ebp - 0x2c]
push eax
call fcn.100577eb
int3