Function at 0x4048d6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x4080b4], 0
push ebx
push esi
jne 0x404c1b
push 0x40
push 0x3000
push 0x20
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4080b4], eax
test eax, eax
je 0x404c1b
lea edx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x6c64746e
lea ecx, [ebp - 0xc]
mov word [ebp - 8], 0x6c
mov dword [ebp - 0x14], 0xd09c750
mov dword [ebp - 0x10], ebx
call fcn.0040475f
cmp al, 1
jne 0x404c17
mov esi, dword [0x4080b4]
mov ecx, esi
mov edx, dword [ebp - 0x14]
push 0x1e
call fcn.004035d8
add esp, 4
mov cl, bl
movzx eax, cl
cmp byte [eax + esi], 0xc2
je 0x40495d
inc cl
cmp cl, 0x20
jb 0x40494b
jmp 0x404964
movzx eax, cl
mov byte [eax + esi], 0xc3
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor esi, esi
lea ecx, [ebp - 4]
inc esi
mov edx, esi
call fcn.004052c4
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], esi
jne 0x404a1b
push 5
pop ecx
cmp eax, ecx
jne 0x4049b7
push 0x52
pop eax
push 3
pop ecx
push 0xc
mov word [0x4084c2], cx
pop ecx
push 0xe
mov word [0x4084c4], cx
pop ecx
jmp 0x404abd
push 6
pop edx
cmp eax, edx
jne 0x4049fc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404998
cmp eax, esi
je 0x404998
cmp eax, 2
jne 0x4049e2
push 0x53
pop eax
push 4
pop ecx
push 0xd
mov word [0x4084c2], cx
pop ecx
push 0xf
jmp 0x4049aa
cmp eax, 3
jne 0x404c1b
push 0x54
pop eax
push 0xe
mov word [0x4084c2], cx
pop ecx
push 0x10
jmp 0x4049aa
cmp eax, 0xa
je 0x404a0a
cmp eax, 0xb
jne 0x404c1b
push 0x55
pop eax
push 0xf
pop ecx
mov word [0x4084c2], dx
push 0x11
jmp 0x4049aa
cmp eax, 5
jne 0x404a6b
cmp dword [ebp + 0x10], esi
jne 0x404a43
push 0x25
pop eax
mov ecx, 0xb7
mov word [0x4084c2], cx
push 0x19
pop ecx
mov word [0x4084c4], cx
add ecx, 0x7e
jmp 0x404abd
cmp dword [ebp + 0x10], 2
jne 0x404c1b
push 0x27
pop eax
mov ecx, 0xbf
mov word [0x4084c2], cx
push 0x1b
pop ecx
mov word [0x4084c4], cx
lea ecx, [eax + 0x77]
jmp 0x404abd
cmp eax, 6
jne 0x404b19
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x404a9b
push 0x3c
pop eax
mov ecx, 0x102
mov word [0x4084c2], cx
push 0x30
pop ecx
mov word [0x4084c4], cx
mov ecx, 0xe1
jmp 0x404abd
cmp eax, esi
jne 0x404acf
push 0x42
pop eax
mov ecx, 0x111
mov word [0x4084c2], cx
push 0x32
pop ecx
mov word [0x4084c4], cx
mov ecx, 0xe7
mov word [0x4084c0], ax
mov word [0x4084c6], cx
jmp 0x404c21
cmp eax, 2
jne 0x404af2
mov eax, 0x163
mov dword [0x4084c0], 0x870163
mov dword [0x4084c4], 0xb30174
jmp 0x404c21
cmp eax, 3
jne 0x404c1b
mov eax, 0x168
mov dword [0x4084c0], 0x8a0168
mov dword [0x4084c4], 0xb60179
jmp 0x404c21
mov ecx, dword [ebp + 0x14]
cmp eax, 0xa
jne 0x404bba
cmp ecx, 0x2800
jne 0x404b4b
mov eax, 0x16e
mov dword [0x4084c0], 0x8c016e
mov dword [0x4084c4], 0xb80180
jmp 0x404c21
cmp ecx, 0x295a
jne 0x404b71
mov eax, 0x170
mov dword [0x4084c0], 0x8c0170
mov dword [0x4084c4], 0xb80183
jmp 0x404c21
cmp ecx, 0x3839
jne 0x404b97
mov eax, 0x172
mov dword [0x4084c0], 0x8d0172
mov dword [0x4084c4], 0xba0185
jmp 0x404c21
cmp ecx, 0x3ad7
jne 0x404bbf
mov eax, 0x175
mov dword [0x4084c0], 0x8d0175
mov dword [0x4084c4], 0xbb018a
jmp 0x404c21
cmp eax, 0xb
jne 0x404c1b
mov dword [0x4084c0], 0x8e0178
mov edx, 0xbc
mov word [0x4084c6], dx
mov eax, 0x178
cmp ecx, 0x3fab
je 0x404c02
cmp ecx, 0x42ee
je 0x404c02
cmp ecx, 0x4563
je 0x404c02
cmp ecx, 0x47ba
je 0x404c02
cmp ecx, 0x47bb
jne 0x404c10
mov ecx, 0x18d
mov word [0x4084c4], cx
jmp 0x404c21
mov ecx, 0x18e
jmp 0x404c07
xor al, al
jmp 0x404c27
mov ax, word [0x4084c0]
test ax, ax
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret