Function at 0x10007e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x1001f2b4]
cmp ecx, eax
je 0x10007e66
push ecx
push str.transaction_conflict_with_thread_id_d_n
call fcn.100071c0
add esp, 8
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x1001f2b8]
cmp eax, esi
je 0x10007e89
push eax
push str.pending_transaction_error_d_n
call fcn.100071c0
mov eax, dword [0x1001f2b8]
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x10007ea9
push str.ppPointer_is_null_n
call fcn.100071c0
add esp, 4
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [eax]
cmp edi, esi
jne 0x10007ee0
push eax
push str.ppPointer_is_null__ppPointer_p__n
mov dword [0x1001f2b8], 6
mov dword [0x1001f2bc], eax
call fcn.100071c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_DebugBreak]
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov dword [ebp - 8], esi
call fcn.10007320
mov edi, dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call fcn.10007320
mov edi, eax
mov dword [ebp + 0xc], edi
cmp edi, ebx
jne 0x10007f10
cmp dword [0x1001f2b0], esi
jne 0x1000812e
jmp 0x100080ff
push 0x18
call fcn.10008dce
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x10007f2d
mov dword [ebp - 4], 8
jmp 0x10008105
mov eax, ebx
call fcn.100073f0
mov esi, eax
test esi, esi
jne 0x10007f46
mov dword [ebp - 4], 8
jmp 0x100080ff
push edi
push esi
push str.detours:_pbTramp_p__pDetour_p_n
call fcn.100071c0
add esp, 0xc
mov edi, ebx
xor ebx, ebx
lea esp, [esp]
lea eax, [ebx + esi]
push edi
push eax
push str._DetourCopyInstructionEx__p__p__n
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
call fcn.100071c0
add esp, 0xc
lea eax, [ebx + esi]
push eax
lea edx, [ebp - 4]
mov ecx, edi
call fcn.10008190
mov edi, eax
sub eax, dword [ebp - 0xc]
push eax
push edi
push str._DetourCopyInstructionEx_____p___d_bytes__n
call fcn.100071c0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x10007fcb
mov ecx, dword [ebp - 0xc]
mov ebx, edi
sub ebx, dword [ebp - 0x10]
call fcn.100073a0
test eax, eax
jne 0x10007fcb
cmp ebx, 5
jl 0x10007f60
cmp ebx, 0x12
jbe 0x10007fe9
mov dword [ebp - 4], 6
jmp 0x100080ff
cmp ebx, 5
jge 0x10007fba
cmp dword [0x1001f2b0], 0
mov dword [ebp - 4], 9
jne 0x10008113
jmp 0x100080ff
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x1c], edx
lea ecx, [ebx + edi]
mov dword [esi + 0x18], ecx
lea eax, [esi + 0x17]
lea edx, [ebx + esi + 5]
mov byte [eax], bl
sub ecx, edx
mov byte [ebx + esi], 0xe9
mov dword [ebx + esi + 1], ecx
lea ecx, [ebx + esi + 5]
call fcn.100072f0
lea eax, [ebp - 0x14]
push eax
push 0x40
push ebx
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100080f6
movzx ecx, byte [edi + 0xb]
movzx edx, byte [edi + 0xa]
movzx eax, byte [edi + 9]
push ecx
movzx ecx, byte [edi + 8]
push edx
movzx edx, byte [edi + 7]
push eax
movzx eax, byte [edi + 6]
push ecx
movzx ecx, byte [edi + 5]
push edx
movzx edx, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push ecx
movzx ecx, byte [edi + 2]
push edx
movzx edx, byte [edi + 1]
push eax
movzx eax, byte [edi]
push ecx
push edx
push eax
push edi
push str.detours:_pbTarget_p:__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x_n
call fcn.100071c0
movzx ecx, byte [esi + 0xb]
movzx edx, byte [esi + 0xa]
movzx eax, byte [esi + 9]
push ecx
movzx ecx, byte [esi + 8]
push edx
movzx edx, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 5]
push edx
movzx edx, byte [esi + 4]
push eax
movzx eax, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 2]
push edx
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
push edx
push eax
push esi
push str.detours:_pbTramp__p:__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x_n
call fcn.100071c0
add esp, 0x70
mov ecx, edi
call fcn.10007740
mov ebx, eax
test ebx, ebx
je 0x10008151
mov ecx, 0x6544
cmp word [ebx + 0x1c], cx
je 0x10008151
lea edx, [ebp + 0xc]
push edx
push 0x40
push 0x40
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10008143
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp - 4]
mov dword [0x1001f2b8], eax
call dword [sym.imp.KERNEL32.dll_DebugBreak]
test esi, esi
je 0x1000811e
mov eax, esi
call fcn.10007710
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000812e
push eax
call fcn.10008c37
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
pop ebx
pop edi
mov dword [0x1001f2bc], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [ebx + 0x1c], 0x6f746544
mov dword [ebx + 0x20], 0x21737275
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [0x1001f2c4]
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], edi
mov dword [eax + 4], 0
mov edx, dword [ebp - 0x14]
pop ebx
pop edi
mov dword [eax + 0x14], edx
mov dword [eax], ecx
mov dword [0x1001f2c4], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8