Function at 0x100f4d10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Print debug messages

Disassembly:
sub esp, 0x218
mov eax, dword [0x101a7008]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov esi, edx
test ecx, ecx
je 0x100f4fb9
test esi, esi
je 0x100f4fb9
cmp byte [0x101ac4d0], 0
push ebp
mov ebp, dword [ecx]
jne 0x100f4d55
push 0x101ac4d4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x101ac4d0], 1
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x101ac4d4
call edi
cmp dword [esi], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x100f4f64
cmp dword [esi + 8], 0
je 0x100f4d89
push str.WARNING:_Attempting_to_patch_two_different_VTables_with_the_same_VTable_information__or_patching_the_same_interface_on_multiple_threads_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x100f4f58
mov eax, dword [esi]
mov eax, dword [ebp + eax*4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [0x101ad3d8]
test eax, eax
jne 0x100f4dd3
push 0x101ad3c0
call edi
cmp dword [0x101ad3d8], 0
jne 0x100f4dc7
push 0
push 0
push 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x101ad3d8], eax
push 0x101ad3c0
call ebx
mov eax, dword [0x101ad3d8]
push 0x24
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x100f4fab
push eax
push 0x24
call fcn.10004680
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x20]
lea edi, [ebx + 0x18]
mov dword [edi], eax
lea edx, [ebx + 0x1c]
mov dword [ebx + 0x20], ecx
lea eax, [ebx + 0x20]
mov dword [ebx + 0x14], 0x10000000
lea ecx, [ebx + 6]
mov dword [edx], ecx
add esp, 8
mov ecx, 0x25ff
mov dword [ebx + 2], edx
mov edx, 0x35ff
mov word [ebx], cx
mov byte [ebx + 6], 0x58
push 0x14
push ebx
mov word [ebx + 7], dx
mov dword [ebx + 9], edi
mov byte [ebx + 0xd], 0x50
mov word [ebx + 0xe], cx
mov dword [ebx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor bl, bl
xor edi, edi
cmp edi, 3
jge 0x100f4ecd
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov eax, dword [esi]
push 0x40
push 4
lea eax, [eax*4]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100f4e86
call fcn.100974c0
jmp 0x100f4ec6
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + eax*4]
mov dword [edx + 0x18], eax
push eax
mov eax, dword [esi]
lea ecx, [eax*4]
add ecx, ebp
call fcn.100f4c80
mov ecx, dword [esi]
add esp, 4
mov bl, al
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
lea ecx, [ecx*4]
push 4
add ecx, ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc edi
test bl, bl
je 0x100f4e53
jmp 0x100f4ed5
test bl, bl
je 0x100f4f86
cmp byte [0x101ad82c], 0
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
jne 0x100f4f4c
push 0x208
lea eax, [esp + 0x20]
push 0
push eax
call fcn.10114770
add esp, 0xc
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100f4f40
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x20]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x100f4f37
push 0x10178b70
jmp 0x100f4f45
mov byte [0x101ad82c], 1
jmp 0x100f4f4c
push str.ERROR:_Could_not_get_module_path._n
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esi, 0xc
cmp dword [esi], 0xffffffff
jne 0x100f4d73
push 0x101ac4d4
call ebx
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10111f70
add esp, 0x218
ret
mov eax, dword [esp + 0x10]
push eax
push 0
push dword [0x101ad3d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x101ac4d4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
jmp 0x100f4f6d
push 0x101ac4d4
call ebx
mov eax, 0x8007000e
jmp 0x100f4f6d
mov ecx, dword [esp + 0x218]
mov eax, 0x80070057
pop esi
xor ecx, esp
call fcn.10111f70
add esp, 0x218
ret