Function at 0x4e47c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54a580
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
mov eax, ebp
mov bl, byte [eax]
push 0
push eax
push 0
mov esi, eax
call fcn.004e4d90
mov ecx, eax
sub ecx, ebp
cmp bl, 0xe9
mov dword [esp + 0x10], ecx
je 0x4e484a
cmp bl, 0xe0
je 0x4e484a
cmp bl, 0xc2
je 0x4e484a
cmp bl, 0xc3
je 0x4e484a
cmp bl, 0xff
jne 0x4e4819
cmp byte [esi + 1], 0x25
je 0x4e484a
jmp 0x4e4843
cmp bl, 0x26
je 0x4e4837
cmp bl, 0x2e
je 0x4e4837
cmp bl, 0x36
je 0x4e4837
cmp bl, 0x3e
je 0x4e4837
cmp bl, 0x64
je 0x4e4837
cmp bl, 0x65
jne 0x4e4843
cmp byte [esi + 1], 0xff
jne 0x4e4843
cmp byte [esi + 2], 0x25
je 0x4e484a
cmp ecx, 5
jl 0x4e47e2
jmp 0x4e4853
cmp ecx, 5
jl 0x4e4a4c
cmp ecx, 0x1a
jg 0x4e4a4c
mov esi, dword [esp + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x20], 0
call edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4e48ae
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4e48ae
push 0x20
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4e48ae
lea eax, [esp + 0x20]
push eax
push 0x40
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
call edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
test edi, edi
mov dword [esp + 0x24], eax
je 0x4e4906
test ebp, ebp
je 0x4e4906
mov edi, dword [esp + 0x44]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4e48fa
lea ecx, [esp + 0x30]
push ecx
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, ecx
mov byte [esp + 0x3c], 1
je 0x4e4948
cmp dword [esp + 0x18], ecx
je 0x4e4948
cmp dword [esp + 0x1c], ecx
je 0x4e4948
cmp edi, ecx
mov dword [esp + 0x20], 0x40
je 0x4e49c8
cmp ebp, ecx
je 0x4e49c8
cmp dword [esp + 0x30], ecx
je 0x4e4a09
jmp 0x4e4a61
cmp dword [esp + 0x30], ecx
je 0x4e4981
cmp edi, ecx
je 0x4e4981
cmp ebp, ecx
je 0x4e4981
push ebp
push edi
push eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4e4981
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e4a4c
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e4a4c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e4a4c
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4e4a4c
lea ecx, [esp + 0x44]
jmp 0x4e4a36
cmp dword [esp + 0x30], ecx
je 0x4e4a09
cmp edi, ecx
je 0x4e4a09
cmp ebp, ecx
je 0x4e4a09
push ebp
push edi
push eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4e4a01
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e4a4c
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e4a4c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e4a4c
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4e4a4c
lea ecx, [esp + 0x44]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [esp + 0x44]
xor ecx, ecx
test ebx, ebx
mov edx, esi
jle 0x4e4a8d
push 0
push eax
push edx
call fcn.004e4d90
mov ebp, dword [esp + 0x44]
mov ecx, eax
sub ecx, ebp
cmp ecx, ebx
lea edx, [ecx + esi]
jl 0x4e4a6d
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
cmp ecx, ebx
je 0x4e4b30
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
je 0x4e4ad6
cmp edi, esi
je 0x4e4ad6
cmp ebp, esi
je 0x4e4ad6
mov edx, dword [esp + 0x24]
push ebp
push edi
push edx
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4e4ad6
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esp + 0x20], esi
je 0x4e4b1b
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x4e4b1b
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4e4b1b
push eax
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], esi
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x4e4b1b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov edi, dword [esp + 0x44]
push 5
lea eax, [ebx + edi]
push eax
push edx
call fcn.004e4c00
add esp, 0xc
test eax, eax
jne 0x4e4b7a
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], al
call fcn.004e4c50
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004e4c50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x4c]
push ebx
push ecx
push edi
mov byte [esi + 0x1f], bl
call fcn.004e4c00
add esp, 0xc
mov byte [esp + 0x3c], 0
test eax, eax
lea ecx, [esp + 0x24]
jne 0x4e4bc4
call fcn.004e4c50
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004e4c50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
call fcn.004e4c50
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004e4c50
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret