Function at 0x4c9040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push 0x40
push 0x1000
push 0x4148c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
movzx ecx, word [ebp - 0xb8]
mov edx, dword [ebp - 0x78]
sub edx, ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x8c], 0x430dd8
movzx eax, word [ebp - 0x94]
sub eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x74]
sub ecx, 0x90
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc8], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x44]
lea ecx, [eax + edx + 0x3c]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0xb4], 0x35
mov dword [ebp - 0x38], 0xb49e59f9
mov dx, word [ebp - 0x34]
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0x68], 0x90
ja 0x4c90dd
cmp dword [ebp - 8], 1
je 0x4c90e8
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xd8], eax
jmp 0x4c90f5
mov edx, 0x3b
mov ecx, dword [ebp - 0x68]
sar edx, cl
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0xb4], 0xbb
jne 0x4c910e
mov ax, word [ebp - 0xa4]
mov word [ebp - 0x6c], ax
jmp 0x4c9121
mov ecx, dword [ebp - 0xc8]
sub ecx, dword [ebp - 0xd8]
mov word [ebp - 0xd4], cx
mov dword [ebp - 0xa8], 0x5736313d
mov dword [ebp - 0x34], 0xb3ba8151
movzx edx, byte [ebp - 0xa]
cmp edx, 0xc2
jl 0x4c9156
cmp dword [ebp - 0xb4], 0x4b
jb 0x4c916c
cmp dword [ebp - 0x10], 0
ja 0x4c916c
cmp dword [ebp - 0xd8], 0
jbe 0x4c916c
movzx eax, word [ebp - 0x5c]
mov ecx, dword [ebp - 0xa8]
lea edx, [ecx + eax + 0x87]
mov dword [ebp - 0x68], edx
jmp 0x4c9184
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0xc8]
or eax, dword [ebp - 0xc4]
mov byte [ebp - 0x96], al
mov dword [ebp - 0xc4], 0x54101d73
movzx ecx, word [ebp - 0xac]
mov edx, dword [ebp - 0x24]
sub edx, ecx
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc8], 0xa9
jbe 0x4c91b6
mov ax, word [ebp - 0x24]
mov word [ebp - 0x9c], ax
jmp 0x4c91cc
movzx ecx, byte [ebp - 0xb]
movzx edx, word [ebp - 0x6c]
add ecx, edx
and ecx, 0xba
mov byte [ebp - 0x81], cl
mov dword [ebp - 0xc8], 0
jmp 0x4c91e7
mov eax, dword [ebp - 0xc8]
add eax, 1
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0x15b2
jae 0x4c936b
cmp dword [ebp - 0x34], 0
je 0x4c920c
mov ecx, dword [ebp - 0x10]
add ecx, 0x8a
mov word [ebp - 0x80], cx
jmp 0x4c9212
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x44], edx
movzx eax, word [ebp - 0xb8]
mov ecx, dword [ebp - 4]
sub ecx, eax
add ecx, dword [ebp - 0x54]
mov word [ebp - 0x58], cx
mov edx, dword [ebp - 0x38]
xor edx, dword [ebp - 0xa8]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x74]
movzx edx, word [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xa8]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x54], 0x75
mov dword [ebp - 4], 0xf8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
mov edx, dword [ebp - 0xa8]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax + 0x34]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x30], 0
je 0x4c92b9
movzx eax, word [ebp - 0x6c]
cmp eax, 0xfc
je 0x4c92b9
movzx ecx, word [ebp - 0x28]
cmp ecx, 0x10
je 0x4c92b9
mov dx, word [ebp - 0xb4]
mov word [ebp - 0x60], dx
jmp 0x4c92c0
mov dword [ebp - 0x68], 0x2e
mov eax, dword [ebp - 0xa8]
xor eax, dword [ebp - 0x38]
mov dword [ebp - 0xa8], eax
mov ecx, 0xcb
sub ecx, dword [ebp - 0xc4]
add ecx, dword [ebp - 0xa8]
mov byte [ebp - 0x19], cl
mov edx, dword [ebp - 0xc4]
shr edx, 0x5e
mov dword [ebp - 0xa4], edx
movzx eax, byte [ebp - 0x49]
movzx ecx, byte [ebp - 0xb]
sub eax, ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 0xb4], 0
ja 0x4c9311
cmp dword [ebp - 0x50], 0xaa
ja 0x4c9322
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0xb4]
mov dword [ebp - 0x68], edx
jmp 0x4c9328
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x34], ecx
movzx edx, word [ebp - 0xa0]
mov eax, 0x115
sub eax, edx
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + ecx*4]
sub eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
jmp 0x4c91d8
mov ax, word [ebp - 0xd8]
mov word [ebp - 0x94], ax
movzx ecx, byte [ebp - 0x49]
mov edx, 0xf2
sub edx, ecx
add edx, dword [ebp - 0xc8]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x24]
add eax, 0x3a00
mov esp, ebp
pop ebp
ret