Function at 0x41cab4
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 [ebp - 8]
mov dword [ebp - 0xc], eax
push ebp
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0041c8dc
pop ecx
test al, al
jne 0x41ced6
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0041c964
test al, al
je 0x41ced6
xor edx, edx
push ebp
push 0x41cec8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.0041c984
test al, al
je 0x41cb1f
call fcn.00404a30
jmp 0x41ced6
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041d060
mov ebx, eax
test ebx, ebx
jne 0x41cb3d
call fcn.00404a30
jmp 0x41ced6
test ebx, ebx
jge 0x41cc7f
cmp ebx, 0xfffffffe
jne 0x41cb5b
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, 4
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0x2c], edx
jmp 0x41cb64
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x2c], eax
mov eax, 0x20
call fcn.0040304c
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x41cc6d
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 0x41cbc4
call fcn.00403edc
call fcn.0040304c
mov edi, eax
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x18], edi
mov edx, edi
mov ecx, 0x41cee4
mov eax, dword [ebp - 0x28]
call fcn.004171d0
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.00403348
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, ebx
xor ecx, ecx
mov edx, esi
call fcn.0040f1a0
mov edx, 0x5551c0
mov ecx, 2
mov eax, dword [ebp - 8]
call fcn.0040f0a4
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.0041b764
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, 0x41cee4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004171d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cc74
cmp dword [ebp - 0x28], 0
je 0x41cc6c
mov edx, 0x20
mov eax, dword [ebp - 0x28]
call fcn.004030b8
ret
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x41cc8b
call fcn.00403edc
call fcn.0040304c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x41cea0
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.00403348
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0041c98c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x41ce7d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x40
call fcn.0040f79c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.0040f79c
mov edx, eax
test edx, edx
jns 0x41ccef
call fcn.00403edc
mov eax, dword [ebp - 0x1c]
call fcn.0041ca30
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, 0x20
call fcn.0040304c
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x41ce47
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, 0x41cee4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
call fcn.004171d0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.00403348
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x41cd80
call fcn.00403edc
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0041d248
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0041ca30
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.0040f1a0
lea eax, [ebp - 0x14]
push eax
push 0x20
call fcn.0040f79c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.0040f79c
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.0040f1a0
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x41cdf1
call fcn.00403edc
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.0041b764
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, 0x41cee4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004171d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce4e
cmp dword [ebp - 0x28], 0
je 0x41ce46
mov edx, 0x20
mov eax, dword [ebp - 0x28]
call fcn.004030b8
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4