Function at 0x100073f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
cmp esi, 0x7ff80000
jbe 0x1000740e
lea ebx, [esi - 0x7ff80000]
mov dword [ebp - 8], ebx
jmp 0x10007418
mov dword [ebp - 8], 0x10000
mov ebx, dword [ebp - 8]
cmp esi, 0x80000000
jae 0x1000742b
lea edi, [esi + 0x7ff80000]
mov dword [ebp - 4], edi
jmp 0x10007435
mov dword [ebp - 4], 0xfff80000
mov edi, dword [ebp - 4]
push edi
push esi
push ebx
push str.__p.._p.._p__n
call fcn.100071c0
mov ecx, dword [0x1001f2ac]
mov edx, dword [0x1001f2a8]
add esp, 0x10
test ecx, ecx
jne 0x10007461
test edx, edx
je 0x10007474
mov ecx, edx
mov dword [0x1001f2ac], ecx
mov eax, dword [ecx + 8]
test eax, eax
je 0x10007474
cmp eax, ebx
jb 0x10007474
cmp eax, edi
jbe 0x100076d0
mov ecx, edx
mov dword [0x1001f2ac], ecx
test edx, edx
je 0x100074a4
test ecx, ecx
je 0x10007497
mov eax, dword [ecx + 8]
test eax, eax
je 0x10007497
cmp eax, ebx
jb 0x10007497
cmp eax, edi
jbe 0x100076ca
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x10007484
mov dword [0x1001f2ac], ecx
mov eax, esi
and eax, 0xffff
sub esi, eax
push esi
push str._Looking_for_free_region_below__p:_n
call fcn.100071c0
add esp, 8
cmp esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, esi
jbe 0x1000756c
jmp 0x100074d0
push edi
push str.__Try__p_n
call fcn.100071c0
lea ecx, [edi - 0x70000000]
add esp, 8
cmp ecx, 0x10000000
ja 0x100074f1
mov edi, 0x6fff0000
push 0x1c
lea edx, [ebp - 0x40]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000756c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x40]
lea edx, [ecx + eax - 1]
push edx
push eax
push edi
push 0x10019174
call fcn.100071c0
mov eax, 0x10000
add esp, 0x14
cmp dword [ebp - 0x30], eax
jne 0x1000752f
cmp dword [ebp - 0x34], eax
jae 0x1000753f
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 8]
ja 0x100074d0
jmp 0x1000756c
push 0x40
push 0x3000
push eax
push edi
call ebx
mov dword [0x1001f2ac], eax
test eax, eax
jne 0x10007671
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Error:__p__d_n
call fcn.100071c0
add esp, 0xc
push esi
push str._Looking_for_free_region_above__p:_n
call fcn.100071c0
mov edi, dword [ebp - 4]
add esp, 8
cmp esi, edi
jae 0x1000765b
jmp 0x10007590
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100075a2
mov esi, 0x80010000
push 0x1c
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000765b
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push edx
lea edx, [ecx + eax - 1]
push edx
push eax
push esi
push 0x10019174
call fcn.100071c0
add esp, 0x14
cmp dword [ebp - 0x14], 0x10000
jne 0x1000764d
mov edx, dword [ebp - 0x18]
cmp edx, 0x10000
jb 0x1000764d
movzx ecx, si
test ecx, ecx
je 0x10007620
mov eax, 0x10000
sub eax, ecx
mov ecx, dword [ebp - 0x24]
add ecx, eax
sub edx, eax
push 0x10000
lea eax, [edx + ecx - 1]
push eax
push ecx
push esi
push str.__Try__p____p.._p__6x_n
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], ecx
call fcn.100071c0
mov esi, dword [ebp - 0x24]
add esp, 0x14
push 0x40
push 0x3000
push 0x10000
push esi
call ebx
mov dword [0x1001f2ac], eax
test eax, eax
jne 0x10007671
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error:__p__d_n
call fcn.100071c0
add esp, 0xc
mov esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x24]
cmp esi, edi
jb 0x10007590
push str.Couldnt_find_available_memory_region__n
call fcn.100071c0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1001f2a8]
lea edx, [eax + 0xffff]
push edx
push eax
push str.__Allocated_region__p.._p_n_n
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov dword [eax + 4], ecx
mov dword [0x1001f2a8], eax
call fcn.100071c0
mov ecx, dword [0x1001f2ac]
add esp, 0xc
xor edx, edx
lea eax, [ecx + 0xffe0]
mov esi, 0x7fd
mov dword [eax + 0x18], edx
mov edx, eax
sub eax, 0x20
dec esi
jne 0x100076b4
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x100076d0
mov dword [0x1001f2ac], ecx
mov eax, dword [ecx + 8]
cmp eax, ebx
jb 0x10007668
cmp eax, edi
ja 0x10007668
mov edx, dword [eax + 0x18]
mov dword [ecx + 8], edx
mov ecx, 0xcccccccc
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
pop edi
mov dword [eax + 0x14], ecx
pop esi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
pop ebx
mov esp, ebp
pop ebp
ret