Function at 0x4421b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x45e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x3c]
mov al, byte [edx]
mov byte [ebp - 0x2d], al
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0x2d], 0
jne 0x4421cf
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
jmp 0x442209
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ecx
jae 0x44237a
push 0x1c
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [0x45e454]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp dword [ebp - 0x14], 0x1000
je 0x44223d
jmp 0x442200
push 4
push 0x1000
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [0x45e454]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x2c]
push edx
mov eax, dword [0x45e454]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
mov ecx, dword [ebp - 8]
push ecx
push 4
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x2c]
push edx
mov eax, dword [0x45e454]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 0
jmp 0x4422c0
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x40]
add edx, 1
cmp dword [ebp - 0x38], edx
jae 0x442362
mov byte [ebp - 0x25], 1
mov dword [ebp - 0x34], 0
jmp 0x4422e8
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x40]
jae 0x442334
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x34]
movsx eax, byte [edx]
cmp eax, 0x3f
je 0x442321
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x34]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
movsx eax, byte [eax + ecx]
cmp edx, eax
je 0x442321
mov dword [ebp - 0x48], 0
jmp 0x442328
mov dword [ebp - 0x48], 1
movzx ecx, byte [ebp - 0x25]
and ecx, dword [ebp - 0x48]
mov byte [ebp - 0x25], cl
jmp 0x4422df
movzx edx, byte [ebp - 0x25]
cmp edx, 1
jne 0x44235d
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x38]
add eax, dword [ebp + 0x18]
push eax
call fcn.00409100
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
add eax, dword [ebp + 0x1c]
jmp 0x44237c
jmp 0x4422b7
push 0x8000
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x442200
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442680
mov esp, ebp
pop ebp
ret