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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100634ed
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1007f098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push 8
mov edx, 0x10072cec
movq qword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x34]
call fcn.10019b50
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0xa
mov edx, 0x10072ce0
movq qword [ebp - 0x28], xmm0
call fcn.10019b50
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 0xb
mov edx, 0x10072cd4
movq qword [ebp - 0x1c], xmm0
call fcn.10019b50
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
sub eax, ebx
test eax, 0xfffffffc
jne 0x1001aa99
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
sub eax, esi
test eax, 0xfffffffc
jne 0x1001aa99
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
sub eax, edi
test eax, 0xfffffffc
jne 0x1001aa99
call fcn.10017fe0
mov edx, str.No_valid_locations_for_patching_were_found._Make_sure_youre_trying_this_on_the_right_game_version.
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
add esp, 4
jmp 0x1001ab61
call fcn.10017f30
mov edx, str.Patching_CoCreateInstance
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.10019c80
call fcn.10017f30
mov edx, str.Patching_PortAudio_MarshalStreamComPointers
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
add esp, 4
lea ecx, [ebp - 0x28]
mov edx, 0x10017ad0
call fcn.10019d90
call fcn.10017f30
mov edx, str.Patching_PortAudio_UnmarshalStreamComPointers
mov ecx, eax
call fcn.10002460
push eax
call fcn.10002700
add esp, 4
lea ecx, [ebp - 0x1c]
mov edx, 0x10017c30
call fcn.10019d90
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x38]
push eax
push 0x40
push 6
push 0x17b9518
call esi
test eax, eax
je 0x1001ab58
mov eax, dword [0x10072ccc]
mov ecx, 0x17b9518
push 6
push ecx
mov dword [ecx], eax
mov ax, word [0x10072cd0]
mov word [ecx + 4], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
push 6
push 0x17b9518
call esi
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x34]
test edi, edi
je 0x1001ab95
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1001ab8b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ac11
push ecx
push edi
call fcn.1003c10b
add esp, 8
test esi, esi
je 0x1001abc5
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1001abbb
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ac11
push ecx
push esi
call fcn.1003c10b
add esp, 8
test ebx, ebx
je 0x1001abf5
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1001abeb
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ac11
push ecx
push ebx
call fcn.1003c10b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c0aa
mov esp, ebp
pop ebp
ret
call fcn.10040a7f
int3