Function at 0x1006e380
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
cmp dword [ebp + 8], 0x7ff80000
jbe 0x1006e39c
mov eax, dword [ebp + 8]
sub eax, 0x7ff80000
mov dword [ebp - 0x5c], eax
jmp 0x1006e3a3
mov dword [ebp - 0x5c], 0x10000
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0x80000000
jae 0x1006e3c0
mov edx, dword [ebp + 8]
add edx, 0x7ff80000
mov dword [ebp - 0x60], edx
jmp 0x1006e3c7
mov dword [ebp - 0x60], 0xfff80000
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
cmp dword [0x100a92c4], 0
jne 0x1006e3f2
cmp dword [0x100a92c0], 0
je 0x1006e3f2
mov ecx, dword [0x100a92c0]
mov dword [0x100a92c4], ecx
cmp dword [0x100a92c4], 0
je 0x1006e46f
mov edx, dword [0x100a92c4]
cmp dword [edx + 8], 0
je 0x1006e46f
mov eax, dword [0x100a92c4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x1006e46f
mov edx, dword [0x100a92c4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1006e46f
mov ecx, dword [0x100a92c4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jb 0x1006e43e
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jbe 0x1006e445
xor eax, eax
jmp 0x1006e6bd
mov edx, dword [0x100a92c4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edx + 8], ecx
push 0x20
push 0xcc
mov edx, dword [ebp - 0x10]
push edx
call fcn.10056550
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x1006e6bd
mov eax, dword [0x100a92c0]
mov dword [0x100a92c4], eax
jmp 0x1006e48a
mov ecx, dword [0x100a92c4]
mov edx, dword [ecx + 4]
mov dword [0x100a92c4], edx
cmp dword [0x100a92c4], 0
je 0x1006e4c9
cmp dword [0x100a92c4], 0
je 0x1006e4c7
mov eax, dword [0x100a92c4]
cmp dword [eax + 8], 0
je 0x1006e4c7
mov ecx, dword [0x100a92c4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 8]
jb 0x1006e4c7
mov eax, dword [0x100a92c4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0xc]
ja 0x1006e4c7
jmp 0x1006e422
jmp 0x1006e47b
mov edx, dword [ebp + 8]
and edx, 0xffff
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jbe 0x1006e601
cmp dword [ebp - 4], 0x70000000
jb 0x1006e505
cmp dword [ebp - 4], 0x80000000
ja 0x1006e505
mov dword [ebp - 4], 0x6fff0000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1006e51e
jmp 0x1006e601
cmp dword [ebp - 0x1c], 0x10000
jne 0x1006e5f0
cmp dword [ebp - 0x20], 0x10000
jb 0x1006e5f0
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x100a92c4], eax
cmp dword [0x100a92c4], 0
je 0x1006e5ee
mov eax, dword [0x100a92c4]
mov dword [eax], 0x52727464
mov ecx, dword [0x100a92c4]
mov dword [ecx + 8], 0
mov edx, dword [0x100a92c4]
mov eax, dword [0x100a92c0]
mov dword [edx + 4], eax
mov ecx, dword [0x100a92c4]
mov dword [0x100a92c0], ecx
mov dword [ebp - 0x30], 0
mov edx, dword [0x100a92c4]
add edx, 0x20
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x34], 0x7fe
jmp 0x1006e5b7
mov eax, dword [ebp - 0x34]
sub eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jle 0x1006e5db
mov ecx, dword [ebp - 0x34]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov dword [edx + ecx + 0x18], eax
mov ecx, dword [ebp - 0x34]
shl ecx, 5
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
jmp 0x1006e5ae
mov edx, dword [0x100a92c4]
mov eax, dword [ebp - 0x30]
mov dword [edx + 8], eax
jmp 0x1006e422
jmp 0x1006e601
mov ecx, dword [ebp - 0x28]
sub ecx, 0x10000
mov dword [ebp - 4], ecx
jmp 0x1006e4e0
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x1006e6bb
cmp dword [ebp - 4], 0x70000000
jb 0x1006e62c
cmp dword [ebp - 4], 0x80000000
ja 0x1006e62c
mov dword [ebp - 4], 0x80010000
push 0x1c
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1006e642
jmp 0x1006e6bb
cmp dword [ebp - 0x40], 0x10000
jne 0x1006e6ad
cmp dword [ebp - 0x44], 0x10000
jb 0x1006e6ad
mov eax, dword [ebp - 4]
and eax, 0xffff
mov dword [ebp - 0x54], eax
je 0x1006e684
mov ecx, 0x10000
sub ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x58]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 4], ecx
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x100a92c4], eax
cmp dword [0x100a92c4], 0
je 0x1006e6ad
jmp 0x1006e560
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
jmp 0x1006e607
xor eax, eax
mov esp, ebp
pop ebp
ret