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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x10243e1c]
sub esp, 0x10
mov eax, dword [ecx]
push ebx
push esi
push edi
mov eax, dword [eax + 0x1a8]
push str.play_vo_items_wheatley_sapper_wheatley_sapper_hacked02.mp3
call eax
push 0x64
mov byte [0x10243e44], 1
mov byte [0x10301348], 0
mov byte [0x1030104c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x102fda44]
push 0x10240ef0
mov eax, dword [ecx]
call dword [eax + 0x14]
call fcn.10188440
cmp dword [0x1024511c], 0
je 0x100652da
xor ecx, ecx
call fcn.10188340
test eax, eax
jne 0x100652da
mov eax, dword [0x1030880c]
mov dword [0x1030880c], 0
test eax, eax
je 0x10065287
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [eax]
push 0x8000
push 0
push eax
call edi
mov eax, esi
test esi, esi
jne 0x10065275
push dword [0x10308800]
push 0
push dword [0x1024511c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [0x1024511c]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x1024511c], 0
xor eax, eax
mov dword [0x10308800], 0
mov ecx, 0x10245118
mov dword [0x10308804], 0
mov dword [0x10308808], 0
xchg dword [ecx], eax
jmp 0x100652f8
mov ecx, 0x10245118
xor eax, eax
xchg dword [ecx], eax
push 0x17
push str.D:_aFedorawareFedorawareFedorawareFedoraware_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 [0x10308160]
push 0xfffffffffffffffc
push dword [0x1030815c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
call fcn.1017b820
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp ebx, ecx
je 0x1006536e
nop dword [eax]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
cmp byte [eax + 0x20], 0
je 0x10065367
mov esi, dword [eax + 0x1c]
mov edi, dword [eax]
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
push esi
push dword [eax + 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov byte [eax + 0x20], 0
add ebx, 4
cmp ebx, ecx
jne 0x10065320
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10243ad0]
pop edi
pop esi
pop ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x103081b8]
cmp eax, dword [ecx + 4]
jle 0x100653ba
push 0x103081b8
call fcn.10189be4
add esp, 4
cmp dword [0x103081b8], 0xffffffff
jne 0x100653ba
push 0x101a7e20
call fcn.10189b1d
push 0x103081b8
call fcn.10189b93
add esp, 8
mov eax, dword [0x102fdef4]
cmp eax, dword [0x102fdef8]
je 0x100653cc
mov dword [0x102fdef8], eax
cmp byte [0x102fe089], 0
je 0x100653ed
call dword [0x10243f74]
call dword [0x10243f78]
push dword [0x10243f7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xffffffff
call fcn.1016bb70
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xffffffff
call fcn.1016bc20
mov edx, dword [0x10243e20]
cmp dword [0x102fff00], 0x10
mov eax, dword [edx]
mov ecx, dword [eax + 0x5c]
mov eax, 0x102ffeec
cmovae eax, dword [0x102ffeec]
push eax
push str._s_Unloaded__n
push 0x10300034
push edx
call ecx
add esp, 0x10
mov esp, ebp
pop ebp
ret