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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov byte [0x1029d9d4], 1
cmp byte [0x1029d9d5], 0
push ebx
push esi
push edi
jne 0x100a132c
push 3
push 0x102792e4
mov ecx, 0x102a3990
call fcn.10091ab0
push 0x64
mov byte [0x102a2a81], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1029e0ac]
push 0x10299c34
mov eax, dword [ecx]
call dword [eax + 0x14]
call fcn.1009be60
cmp dword [0x1029c720], 0
je 0x100a1185
xor ecx, ecx
call fcn.1009bd60
test eax, eax
jne 0x100a1185
mov eax, dword [0x102a9d7c]
mov dword [0x102a9d7c], 0
test eax, eax
je 0x100a1132
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
nop word [eax + eax]
mov esi, dword [eax]
push 0x8000
push 0
push eax
call edi
mov eax, esi
test esi, esi
jne 0x100a1120
push dword [0x102a9d70]
push 0
push dword [0x1029c720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [0x1029c720]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x1029c720], 0
xor eax, eax
mov dword [0x102a9d70], 0
mov ecx, 0x1029c71c
mov dword [0x102a9d74], 0
mov dword [0x102a9d78], 0
xchg dword [ecx], eax
jmp 0x100a11a3
mov ecx, 0x1029c71c
xor eax, eax
xchg dword [ecx], eax
push 0x17
push str.C:UsersWraithDesktopFedoraware_masterFedorawareFedoraware_TF2_srcHooksHookManager.cpp
push str.MH_Uninitialize____MH_OK
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
push dword [0x102a96e4]
push 0xfffffffffffffffc
push dword [0x102a96e0]
call dword [sym.imp.USER32.dll_SetWindowLongW]
call fcn.10164790
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0x18], ecx
cmp ebx, ecx
je 0x100a1225
nop dword [eax]
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
cmp byte [eax + 0x20], 0
je 0x100a121e
mov esi, dword [eax + 0x1c]
mov edi, dword [eax]
lea eax, [esp + 0x14]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x10]
push esi
push dword [eax + 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov byte [eax + 0x20], 0
add ebx, 4
cmp ebx, ecx
jne 0x100a11d0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1029c3d4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x102a973c]
cmp eax, dword [ecx + 4]
jle 0x100a126e
push 0x102a973c
call fcn.101707aa
add esp, 4
cmp dword [0x102a973c], 0xffffffff
jne 0x100a126e
push 0x10182dc0
call fcn.10170b13
push 0x102a973c
call fcn.10170759
add esp, 8
mov eax, dword [0x1029e06c]
cmp eax, dword [0x1029e070]
je 0x100a1280
mov dword [0x1029e070], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor dl, dl
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.10155810
mov dl, 1
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.10155810
push str.cl_wpn_sway_interp
call fcn.1016c1e0
test eax, eax
je 0x100a12cc
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov dword [esp], 0
call dword [eax + 4]
push str.cl_wpn_sway_scale
call fcn.1016c1e0
test eax, eax
je 0x100a12ea
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov dword [esp], 0
call dword [eax + 4]
mov edx, dword [0x1029d9d0]
cmp dword [0x102a039c], 0xf
mov eax, dword [edx]
mov ecx, dword [eax + 0x5c]
mov eax, 0x102a0388
cmova eax, dword [0x102a0388]
push eax
push str._s_Unloaded__n
push 0x102a07a4
push edx
call ecx
mov ecx, dword [0x1029d9cc]
add esp, 0x10
mov eax, dword [ecx]
push str.voitemswheatley_sapperwheatley_sapper_hacked02.mp3
call dword [eax + 0x138]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret