Function at 0x4c221a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x4c2250
cmp dword [ebp + 0xc], 0
je 0x4c2250
xor eax, eax
jmp 0x4c2255
mov eax, 1
test eax, eax
je 0x4c2267
mov eax, 0
jmp 0x4c25da
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.004d68b0
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0x40
push dword [ebp - 0x10]
push 0xe
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4c22cf
push 0xda
push 0x403c66d
push 6
call fcn.004d51d7
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c22e6
mov eax, 0
jmp 0x4c25da
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x198
call fcn.004d6ab0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c2317
add eax, 8
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4c2341
push 0x17e
push 0x403c66d
push 6
call fcn.004d51d7
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4c2351
push ebx
call fcn.004d51cb
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0xf8a96e]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.004017df
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push 5
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4c23a2
push 0x1f2
push 0x403c66d
push 6
call fcn.004d51d7
add esp, 0xc
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0xf9b55c]
fstp qword [ebp - 0x1c]
fild dword [ebp + 8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0xf9b55c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 8]
fstp qword [ebp - 0x34]
fsub qword [ebp - 0x34]
fsub qword [0x537319]
fstp qword [ebp - 0x3c]
push 0x80000601
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 1
mov ebx, 0x9dc
call fcn.004d6790
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.004d6ab0
add esp, 0x10
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push 0x12df699
mov ecx, 2
call fcn.00401066
add esp, 8
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4c243d
push ebx
call fcn.004d51cb
add esp, 4
mov dword [ebp - 0x4c], esp
push 5
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4c244f
add eax, 8
push eax
fld qword [ebp - 0x1c]
call fcn.004017df
push eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x4c247f
push 0x2a4
push 0x403c66d
push 6
call fcn.004d51d7
add esp, 0xc
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4c248f
push ebx
call fcn.004d51cb
add esp, 4
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4c24c9
push 0x2f8
push 0x403c66d
push 6
call fcn.004d51d7
add esp, 0xc
fild dword [ebp + 0xc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [ebp + 8]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fsub qword [0xf9b55c]
fstp qword [ebp - 0x24]
push 0x80000601
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
mov ebx, 0x9dc
call fcn.004d6790
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.004d6ab0
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push 0x12df699
mov ecx, 2
call fcn.00401066
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4c2546
push ebx
call fcn.004d51cb
add esp, 4
mov dword [ebp - 0x34], esp
push 5
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4c2558
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4c2582
push 0x381
push 0x403c66d
push 6
call fcn.004d51d7
add esp, 0xc
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4c2592
push ebx
call fcn.004d51cb
add esp, 4
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push 5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4c25d2
push 0x3b8
push 0x403c66d
push 6
call fcn.004d51d7
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x4c25da
mov esp, ebp
pop ebp
ret 8