Function at 0x42aa15
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x28
push esi
xor esi, esi
push edi
mov edi, esi
test eax, eax
je 0x42aa2a
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42aa33
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x42aa3c
mov dword [eax], esi
cmp dword [ebp + 0xc], esi
jne 0x42aa49
push 0x57
pop eax
jmp 0x42acb3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42e618], eax
je 0x42aa61
mov eax, 0x10dd
jmp 0x42acb3
mov eax, dword [0x42e61c]
test eax, eax
jne 0x42acb3
mov eax, dword [ebp + 8]
test eax, eax
jne 0x42aa79
push 6
jmp 0x42aa43
mov ecx, dword [eax]
test ecx, ecx
jne 0x42aa94
push 6
pop ecx
mov dword [0x42e620], eax
mov eax, ecx
mov dword [0x42e61c], ecx
jmp 0x42acb3
push ebx
push 0
push ecx
mov ebx, esi
call fcn.0042a989
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.0042a989
mov ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, dword [ebp - 4]
jne 0x42aac7
cmp dword [0x42e610], ebx
jne 0x42aca8
jmp 0x42ac80
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 4]
test eax, eax
je 0x42aad3
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x42aadc
mov dword [eax], ecx
push 0x18
call fcn.004118e4
mov esi, eax
mov dword [ebp - 0x24], esi
pop ecx
test esi, esi
jne 0x42aaf5
push 8
pop edi
jmp 0x42ac80
push edi
call fcn.0042a4e7
mov ebx, eax
test ebx, ebx
je 0x42aaed
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42ab0a
mov dword [eax], ebx
lea eax, [ebx + 0x38]
mov ecx, ebx
and dword [eax], 0
mov esi, edi
and dword [eax + 4], 0
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x1e]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0xc], eax
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
push eax
push ecx
call fcn.0042b782
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov edx, esi
sub eax, dword [ebp - 0x1c]
sub edx, edi
add eax, esi
mov dword [ebp - 8], esi
add ecx, eax
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x14], ecx
mov al, dl
sub cl, bl
and al, 7
mov byte [ebp + 0xf], cl
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x18]
mov byte [eax], cl
mov ecx, dword [ebp - 0xc]
inc ecx
inc eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
cmp ecx, 8
jae 0x42ab97
push dword [ebp - 0x1c]
call fcn.0042a5f4
mov edx, dword [ebp + 0x18]
test eax, eax
jne 0x42ab97
mov ecx, dword [ebp + 0x14]
cmp edx, 5
jb 0x42ab29
mov esi, dword [ebp - 0x24]
cmp edx, 5
jae 0x42abc6
mov eax, dword [ebp - 8]
push eax
call fcn.0042a6ab
mov ecx, eax
test ecx, ecx
je 0x42ac74
mov eax, dword [ebp - 8]
add eax, ecx
mov edx, eax
mov dword [ebp - 8], eax
sub edx, edi
mov dword [ebp + 0x18], edx
cmp edx, 5
jb 0x42aba2
cmp dword [ebp - 0xc], 8
ja 0x42ac74
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jbe 0x42abd9
int3
mov al, byte [ebp + 0xf]
push edx
mov byte [ebx + 0x1e], al
lea eax, [ebx + 0x20]
push edi
push eax
mov byte [ebx + 0x36], dl
call fcn.004129f0
mov edi, dword [ebp + 0x18]
add esp, 0xc
cmp edi, 0x19
jbe 0x42abff
push 6
jmp 0x42aaef
movzx ecx, byte [ebx + 0x1e]
mov edx, dword [ebp - 4]
add ecx, ebx
mov eax, dword [ebp - 0x28]
add edx, edi
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
lea eax, [ecx + 5]
mov dword [ecx + 1], edx
push dword [ebp - 0x10]
push eax
call fcn.0042a683
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push edi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42ac4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42ac80
mov eax, dword [ebp + 8]
and dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], edi
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [0x42e628]
mov dword [esi], eax
xor eax, eax
mov dword [0x42e628], esi
jmp 0x42acb2
cmp dword [0x42e610], 0
push 9
pop edi
jne 0x42ac8a
mov dword [0x42e61c], edi
test ebx, ebx
je 0x42ac9a
push ebx
call fcn.0042a657
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42ac9a
and dword [eax], 0
test esi, esi
je 0x42aca8
push 0x18
push esi
call fcn.00411b65
pop ecx
pop ecx
mov eax, dword [ebp + 8]
mov dword [0x42e620], eax
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 0x14