Function at 0xa69e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov byte [ebp - 1], 0
cmp dword [0xb25c3c], 0
je 0xa69e78
cmp dword [0xb25c40], 0
je 0xa69e78
cmp dword [0xb25c44], 0
jne 0xa69eeb
push 0xb0f068
call fcn.00a6a1a0
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0xafdb8c
call fcn.00a732b0
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00a721d0
mov dword [0xb25c3c], eax
push 0
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0xafdb98
call fcn.00a732b0
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00a721d0
mov dword [0xb25c40], eax
push 0
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0xafdb80
call fcn.00a732b0
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.00a721d0
mov dword [0xb25c44], eax
cmp dword [0xb25c3c], 0
je 0xa6a199
cmp dword [0xb25c40], 0
je 0xa6a199
cmp dword [0xb25c44], 0
je 0xa6a199
mov eax, dword [ebp + 8]
push eax
push 0x33c
call fcn.00a6f1c0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0xa6a199
mov ecx, 0xb848
mov word [ebp - 0x2c8], cx
mov eax, dword [0xb25c3c]
cdq
mov dword [ebp - 0x2c6], eax
mov dword [ebp - 0x2c2], edx
mov byte [ebp - 0x2be], 0x50
mov byte [ebp - 0x2bd], 0x51
mov byte [ebp - 0x2bc], 0x52
mov edx, 0x5041
mov word [ebp - 0x2bb], dx
mov eax, 0x5141
mov word [ebp - 0x2b9], ax
mov dword [ebp - 0x2b7], 0x28ec8348
mov ecx, 0xb948
mov word [ebp - 0x2b3], cx
mov eax, dword [ebp - 0x4c]
cdq
mov dword [ebp - 0x2b1], eax
mov dword [ebp - 0x2ad], edx
mov edx, 0xba48
mov word [ebp - 0x2a9], dx
mov eax, dword [ebp - 0x4c]
add eax, 0x26c
cdq
mov dword [ebp - 0x2a7], eax
mov dword [ebp - 0x2a3], edx
mov eax, 0xe2ff
mov word [ebp - 0x29f], ax
mov dword [ebp - 0x29d], 0
mov dword [ebp - 0x299], 0
mov dword [ebp - 0x295], 0
mov ecx, dword [ebp - 0x2c6]
mov dword [ebp - 0x291], ecx
mov edx, dword [ebp - 0x2c2]
mov dword [ebp - 0x28d], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00a884db
add esp, 4
movzx ecx, ax
shl ecx, 1
mov word [ebp - 0x284], cx
movzx edx, word [ebp - 0x284]
add edx, 2
mov word [ebp - 0x282], dx
mov eax, dword [ebp - 0x4c]
add eax, 0x54
cdq
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x274]
push ecx
call fcn.00a88781
add esp, 8
mov eax, dword [0xb25c40]
cdq
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
mov eax, dword [0xb25c44]
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
lea edx, [ebp - 0x58]
push edx
push 0x26d
lea eax, [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0xa6a199
cmp dword [ebp - 0x58], 0x26d
jne 0xa6a199
lea eax, [ebp - 0x58]
push eax
push 0xcf
push 0xafdc90
mov ecx, dword [ebp - 0x4c]
add ecx, 0x26c
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0xa6a199
cmp dword [ebp - 0x58], 0xcf
jne 0xa6a199
lea eax, [ebp - 0x58]
push eax
push 5
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x291]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0xa6a199
cmp dword [ebp - 0x58], 5
jne 0xa6a199
lea ecx, [ebp - 0x58]
push ecx
push 5
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x4c]
add eax, 0x3f
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0xa6a199
cmp dword [ebp - 0x58], 5
jne 0xa6a199
lea edx, [ebp - 0x2cc]
push edx
push 0x40
push 5
mov eax, dword [ebp - 0x291]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0xa6a199
mov byte [ebp - 0x54], 0xe9
mov edx, dword [ebp - 0x291]
mov eax, dword [ebp - 0x4c]
sub eax, edx
sub eax, 5
mov dword [ebp - 0x53], eax
lea ecx, [ebp - 0x58]
push ecx
push 5
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x291]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [ebp - 0x2cc]
push edx
mov eax, dword [ebp - 0x2cc]
push eax
push 5
mov ecx, dword [ebp - 0x291]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret