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

Disassembly:
sub esp, 0x214
mov eax, dword [0x101fe070]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, edx
test ecx, ecx
je 0x100e7f94
test esi, esi
je 0x100e7f94
cmp byte [0x10204417], 0
push ebp
mov ebp, dword [ecx]
jne 0x100e7d45
push 0x10204428
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x10204417], 1
push ebx
push edi
push 0x10204428
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x100e7f3d
cmp dword [esi + 8], 0
je 0x100e7d77
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 0x100e7f31
mov eax, dword [esi]
mov edi, dword [ebp + eax*4]
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [0x10205284]
test eax, eax
jne 0x100e7dc1
push 0x1020526c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10205284], 0
jne 0x100e7db5
push 0
push 0
push 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x10205284], eax
push 0x1020526c
call ebx
mov eax, dword [0x10205284]
push 0x24
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100e7f81
mov eax, dword [esp + 0x14]
lea edx, [ebx + 0x20]
mov dword [edx], eax
lea ecx, [ebx + 6]
mov dword [ebx + 0x1c], ecx
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], edi
mov edi, 0x25ff
mov dword [ebx + 0x14], 0x10000000
mov dword [ebx + 2], eax
mov eax, 0x35ff
mov word [ebx + 7], ax
lea eax, [ebx + 0x18]
push 0x14
push ebx
mov word [ebx], di
mov byte [ecx], 0x58
mov dword [ebx + 9], eax
mov byte [ebx + 0xd], 0x50
mov word [ebx + 0xe], di
mov dword [ebx + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor al, al
xor edi, edi
mov byte [esp + 0x13], al
cmp edi, 3
jge 0x100e7eb0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 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 0x100e7e65
call fcn.10078060
jmp 0x100e7ea5
mov eax, dword [esi]
mov edx, ebx
mov eax, dword [ebp + eax*4]
mov dword [ebx + 0x18], eax
push eax
mov eax, dword [esi]
lea ecx, [eax*4]
add ecx, ebp
call fcn.100e7c70
mov ecx, dword [esi]
add esp, 4
mov byte [esp + 0x13], al
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
lea ecx, [ecx*4]
push 4
add ecx, ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [esp + 0x13]
inc edi
test al, al
je 0x100e7e32
jmp 0x100e7eb8
test al, al
je 0x100e7f5f
cmp byte [0x102056c0], 0
mov dword [esi + 8], ebx
jne 0x100e7f2b
push 0x208
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1015e8b0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100e7f1f
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x1c]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x100e7f16
push str.ERROR:_Failed_to_pin_module__n
jmp 0x100e7f24
mov byte [0x102056c0], 1
jmp 0x100e7f2b
push 0x101c8de0
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esi, 0xc
cmp dword [esi], 0xffffffff
jne 0x100e7d61
push 0x10204428
call ebx
xor eax, eax
pop edi
pop ebx
pop ebp
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1015c023
add esp, 0x214
ret
push ebx
push 0
push dword [0x10205284]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10204428
call eax
mov eax, 0x80004005
jmp 0x100e7f46
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10204428
call eax
mov eax, 0x8007000e
jmp 0x100e7f46
mov ecx, dword [esp + 0x214]
mov eax, 0x80070057
pop esi
xor ecx, esp
call fcn.1015c023
add esp, 0x214
ret