Function at 0x469180
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov byte [ebp - 1], 0
cmp dword [0x524bfc], 0
je 0x4691a8
cmp dword [0x524c00], 0
je 0x4691a8
cmp dword [0x524c04], 0
jne 0x46921b
push 0x50de78
call fcn.004694d0
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x4fcb7c
call fcn.004725e0
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00471500
mov dword [0x524bfc], eax
push 0
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x4fcb88
call fcn.004725e0
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00471500
mov dword [0x524c00], eax
push 0
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x4fcb70
call fcn.004725e0
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.00471500
mov dword [0x524c04], eax
cmp dword [0x524bfc], 0
je 0x4694c9
cmp dword [0x524c00], 0
je 0x4694c9
cmp dword [0x524c04], 0
je 0x4694c9
mov eax, dword [ebp + 8]
push eax
push 0x33c
call fcn.0046e4f0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4694c9
mov ecx, 0xb848
mov word [ebp - 0x2c8], cx
mov eax, dword [0x524bfc]
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.0048772b
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.004879d1
add esp, 8
mov eax, dword [0x524c00]
cdq
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
mov eax, dword [0x524c04]
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 0x4694c9
cmp dword [ebp - 0x58], 0x26d
jne 0x4694c9
lea eax, [ebp - 0x58]
push eax
push 0xcf
push 0x4fcc80
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 0x4694c9
cmp dword [ebp - 0x58], 0xcf
jne 0x4694c9
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 0x4694c9
cmp dword [ebp - 0x58], 5
jne 0x4694c9
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 0x4694c9
cmp dword [ebp - 0x58], 5
jne 0x4694c9
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 0x4694c9
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