Function at 0x42bf80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov eax, dword [0x5957f0]
cmp byte [eax], 0
je 0x42bfbe
mov eax, 0x42c458
call fcn.0042a418
mov eax, dword [ebp - 8]
call fcn.0042a600
mov eax, esi
call fcn.0042a600
mov eax, edi
call fcn.0042a600
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42c431
push dword fs:[edx]
mov dword fs:[edx], esp
push ebp
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0042bca8
pop ecx
test al, al
jne 0x42bff7
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0042bd88
test al, al
jne 0x42c001
call fcn.00407404
jmp 0x42c43f
xor edx, edx
push ebp
push 0x42c400
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.0042be04
test al, al
je 0x42c02a
call fcn.00407404
call fcn.00407404
jmp 0x42c43f
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0042c6f8
mov ebx, eax
test ebx, ebx
jne 0x42c04d
call fcn.00407404
call fcn.00407404
jmp 0x42c43f
test ebx, ebx
jge 0x42c1a3
mov eax, dword [0x5957f0]
cmp byte [eax], 0
je 0x42c069
mov eax, 0x42c4a4
call fcn.0042a418
cmp ebx, 0xfffffffe
jne 0x42c07f
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, 4
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0x2c], edx
jmp 0x42c088
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x2c], eax
mov eax, 0x20
call fcn.004048e0
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x42c191
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x28]
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ebx, 7
mov dword [eax + 0x1c], ebx
mov eax, ebx
test eax, eax
jns 0x42c0e8
call fcn.00405fc0
call fcn.004048e0
mov edi, eax
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x18], edi
mov edx, edi
mov ecx, 0x42c4d8
mov eax, dword [ebp - 0x28]
call fcn.0041e83c
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x18]
mov ebx, dword [ebp - 8]
sub ebx, 5
mov eax, ebx
call fcn.00404bcc
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, ebx
xor ecx, ecx
mov edx, esi
call fcn.00412cac
mov edx, 0x58e490
mov ecx, 2
mov eax, dword [ebp - 8]
call fcn.00412bb0
push 7
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004294d0
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, 0x42c4d8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0041e83c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c198
cmp dword [ebp - 0x28], 0
je 0x42c190
mov edx, 0x20
mov eax, dword [ebp - 0x28]
call fcn.0040494c
ret
mov eax, dword [0x5957f0]
cmp byte [eax], 0
je 0x42c1b7
mov eax, 0x42c4e8
call fcn.0042a418
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x42c1c3
call fcn.00405fc0
call fcn.004048e0
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x42c3d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
call fcn.00404bcc
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0042be58
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x42c3b5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x40
call fcn.004131f8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.004131f8
mov edx, eax
test edx, edx
jns 0x42c227
call fcn.00405fc0
mov eax, dword [ebp - 0x1c]
call fcn.0042befc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, 0x20
call fcn.004048e0
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x42c37f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x28]
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14], ebx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x1c], edx
mov ecx, 0x42c4d8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
call fcn.0041e83c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.00404bcc
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x42c2b8
call fcn.00405fc0
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0042ca3c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0042befc
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
add eax, ebx
sub eax, 5
xor ecx, ecx
call fcn.00412cac
lea eax, [ebp - 0x14]
push eax
push 0x20
call fcn.004131f8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.004131f8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00412cac
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x42c329
call fcn.00405fc0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004294d0
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, 0x42c4d8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0041e83c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c386
cmp dword [ebp - 0x28], 0
je 0x42c37e
mov edx, 0x20
mov eax, dword [ebp - 0x28]
call fcn.0040494c
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4