Function at 0x47db48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ddc4
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor eax, eax
mov dword [ebx], eax
cmp dword [ebp - 4], 0
je 0x47ddae
push 0x40
push 0x1000
push 0x3000
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47ddae
mov eax, 0x670
call fcn.00402704
mov dword [ebx], eax
mov edx, dword [ebx]
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.0047c4c8
cmp dword [ebp - 0x14], 0
je 0x47ddab
mov eax, fcn.0047c2fc
sub eax, fcn.0047b088
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push fcn.0047b088
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + 0x2000]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
lea edx, [eax + 0x17c]
xor eax, eax
add dword [edx + eax*4], ecx
inc eax
cmp eax, 0x20
jne 0x47dbff
mov eax, dword [ebx]
lea edx, [eax + 0x1fc]
xor eax, eax
mov ecx, dword [ebp - 0x18]
add dword [edx + eax*4], ecx
inc eax
cmp eax, 8
jne 0x47dc12
lea eax, [ebp - 8]
push eax
push 0x670
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x10]
mov edx, 0x28
call fcn.0040476c
lea eax, [ebp - 0x10]
call fcn.00404638
mov dword [eax], 0x4c483
lea eax, [ebp - 0xc]
push eax
push 0x25
lea eax, [ebp - 0x10]
call fcn.00404638
add eax, 3
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x100]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov eax, dword [ebp - 0x10]
cmp byte [eax + 3], 0xe8
jne 0x47ddab
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x10], 0xf
jne 0x47ddab
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x11], 0x84
jne 0x47ddab
lea eax, [ebp - 0x10]
call fcn.00404638
add eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
call fcn.00404638
add eax, 4
mov edx, dword [ebx]
mov edx, dword [edx + 0x100]
add edx, dword [ebp - 0xc]
add edx, 5
mov ecx, dword [ebx]
sub edx, dword [ecx + 0x1f4]
sub edx, 5
sub edx, 3
mov dword [eax], edx
lea eax, [ebp - 0x10]
call fcn.00404638
add eax, 0x12
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
call fcn.00404638
mov byte [eax + 0x11], 0x85
lea eax, [ebp - 0x10]
call fcn.00404638
add eax, 0x12
mov edx, dword [ebx]
mov edx, dword [edx + 0x100]
add edx, dword [ebp - 0xc]
add edx, 0xd
add edx, 5
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x1f4]
add ecx, 3
add ecx, 0xd
sub edx, ecx
sub edx, 5
mov dword [eax], edx
lea eax, [ebp - 0x10]
call fcn.00404638
mov byte [eax + 0x16], 0xe9
lea eax, [ebp - 0x10]
call fcn.00404638
add eax, 0x17
mov edx, dword [ebx]
mov edx, dword [edx + 0x100]
add edx, 0x13
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x1f4]
add ecx, 0x16
sub edx, ecx
sub edx, 5
mov dword [eax], edx
lea eax, [ebp - 8]
push eax
push 0x28
lea eax, [ebp - 0x10]
call fcn.00404638
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x1f4]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebx]
mov eax, dword [eax + 0x1f4]
mov edx, dword [ebx]
sub eax, dword [edx + 0x100]
sub eax, 5
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x100]
inc eax
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov edi, dword [ebp - 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ddcb
lea eax, [ebp - 0x10]
call fcn.00404120
ret