Function at 0x1006af80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x100b00f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
call fcn.1006a3e0
mov edx, dword [ebp - 0x64]
push edx
call fcn.1006a420
add esp, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.1006a420
add esp, 4
mov dword [ebp + 0xc], eax
push 0x58
push 0
lea ecx, [ebp - 0x5c]
push ecx
call fcn.10070380
add esp, 0xc
lea edx, [ebp - 0x5c]
push edx
push 5
mov eax, dword [ebp - 0x64]
push eax
call fcn.1006add0
add esp, 0xc
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 5
jb 0x1006b231
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.1006abb0
add esp, 8
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1006a8a0
add esp, 0x14
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x1006b22c
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea edx, [ebp - 0x78]
push edx
push 0x40
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1006b202
lea edx, [ebp - 0x74]
push edx
push 0x40
push 0x74
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1006b1d7
mov ecx, dword [ebp - 0x60]
add ecx, 0x2c
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x70], 0
jmp 0x1006b08c
mov edx, dword [ebp - 0x70]
add edx, 1
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jae 0x1006b0b7
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x70]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x70]
mov al, byte [edx]
mov byte [ecx + 0x4c], al
jmp 0x1006b083
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.1006a590
add esp, 8
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x60]
add eax, 0x2c
push eax
call fcn.1001d620
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x64]
jae 0x1006b100
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x7c], edx
jmp 0x1006b109
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 0x7fff0000
jbe 0x1006b178
mov edx, dword [ebp - 0x60]
add edx, 0xc
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.1006a590
add esp, 8
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x60]
add edx, 0xc
mov eax, dword [ebp - 0x68]
sub eax, edx
push eax
mov ecx, dword [ebp - 0x60]
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x60]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.1006a590
add esp, 8
mov dword [ebp - 0x68], eax
jmp 0x1006b191
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.1006a590
add esp, 8
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x6c]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
mov dword [ecx], edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x60]
add eax, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x74]
push edx
push 0x74
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x60]
cmp dword [ecx], 0
je 0x1006b217
mov edx, dword [ebp - 0x60]
add edx, 0x2c
mov eax, dword [ebp + 8]
mov dword [eax], edx
jmp 0x1006b22c
push 1
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.1006a970
add esp, 8
mov dword [ebp - 0x60], 0
call fcn.1006ab10
call fcn.1006a410
cmp dword [ebp - 0x60], 0
je 0x1006b245
mov dword [ebp - 0x80], 1
jmp 0x1006b24c
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006ddbb
mov esp, ebp
pop ebp
ret