Function at 0x44de20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x34
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x3c]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [0x62261c]
push edi
mov edi, dword [esp + 0x48]
test eax, eax
je 0x44de60
nop word [eax + eax]
cmp dword [eax + 4], 0
jne 0x44df62
mov eax, dword [eax]
test eax, eax
jne 0x44de50
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x44df6a
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x44de92
mov ecx, dword [0x62261c]
mov dword [eax], ecx
mov dword [0x62261c], eax
push ebp
mov ebp, dword [eax + 4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov ecx, dword [ebp]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea eax, [esp + 0x1c]
push eax
call fcn.0044d9f0
add esp, 4
test eax, eax
je 0x44e048
push 0x28
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x44e048
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
and edi, 0xf
mov ecx, dword [esp + 0x34]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 8], eax
mov eax, edx
and eax, 1
shl edi, 3
or edi, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x3c]
and eax, 0xffffff80
or edi, eax
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], eax
test edx, edx
je 0x44df7e
mov eax, dword [ebx - 5]
mov dword [esi + 0xc], eax
mov ax, word [ebx - 1]
mov word [esi + 0x10], ax
mov al, byte [ebx + 1]
mov byte [esi + 0x12], al
jmp 0x44df89
test eax, eax
jne 0x44deb5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ebadf
add esp, 0x34
ret
mov eax, dword [ebx]
mov dword [esi + 0xc], eax
mov al, byte [ebx + 4]
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
shl edi, 0x1f
sar edi, 0x1f
test edi, edi
lea ebx, [eax - 5]
cmove ebx, eax
xor eax, eax
test edi, edi
push ecx
setne al
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x44dfe5
push ebp
call fcn.0044dd20
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ebadf
add esp, 0x34
ret
mov eax, dword [esp + 0x20]
sub eax, ebx
mov byte [ebx], 0xe9
sub eax, 5
mov dword [ebx + 1], eax
test edi, edi
je 0x44e001
mov eax, dword [esp + 0x1c]
mov word [eax], 0xf9eb
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44e033
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ebadf
add esp, 0x34
ret
push ebp
call fcn.0044dd20
mov ecx, dword [esp + 0x44]
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x34
ret