Function at 0x4a8930
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d818
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5954a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x10]
call fcn.0044f320
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
push 0x1020
call fcn.004b304f
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4a8999
jmp 0x4a89b0
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x28], 5
jb 0x4a897b
cmp dword [ebp - 0x1c], 0
jne 0x4a89d4
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov eax, dword [ebp - 0x40]
jmp 0x4a8bd9
mov edx, 0x4141
mov word [ebp - 0x30], dx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [0x59d730]
add eax, 1
mov dword [0x59d730], eax
movzx ecx, word [ebp - 0x30]
add ecx, dword [0x59d730]
mov word [ebp - 0x30], cx
movzx edx, word [ebp - 0x30]
cmp edx, 0x5050
je 0x4a8a29
movzx eax, word [ebp - 0x30]
and eax, 0xff00
je 0x4a8a29
movzx ecx, word [ebp - 0x30]
and ecx, 0xff
jne 0x4a8a48
mov edx, dword [0x59d730]
add edx, 1
mov dword [0x59d730], edx
movzx eax, word [ebp - 0x30]
add eax, dword [0x59d730]
mov word [ebp - 0x30], ax
jmp 0x4a8a06
mov dword [ebp - 0x34], 0
jmp 0x4a8a69
mov ecx, dword [ebp - 0x34]
add ecx, 0x1000
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x1000
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0x10]
jae 0x4a8bae
lea ecx, [ebp - 0x28]
push ecx
push 0x1000
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4a8a9b
jmp 0x4a8a51
mov dword [ebp - 0x38], 0
jmp 0x4a8aad
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0x1000
jge 0x4a8ba9
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x38]
cmp dword [eax], 0x6e6e7552
jne 0x4a8ba4
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x38]
movzx edx, word [ecx - 4]
cmp edx, 0x5050
jne 0x4a8b06
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x38]
movzx ecx, word [eax + 4]
cmp ecx, 0x6e69
jne 0x4a8b06
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx - 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], 1
jmp 0x4a8b3d
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x38]
movzx eax, word [edx - 3]
cmp eax, 0x5050
jne 0x4a8b3d
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x38]
movzx edx, word [ecx + 4]
cmp edx, 0x6e69
jne 0x4a8b3d
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax - 3]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 0
je 0x4a8ba4
lea eax, [ebp - 0x14]
push eax
push 0x40
push 2
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push 2
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.004b305a
add esp, 4
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov eax, dword [ebp - 0x48]
jmp 0x4a8bd9
jmp 0x4a8aa4
jmp 0x4a8a51
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b305a
add esp, 4
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f990
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret