Function at 0x41cbc0
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.0041c9e8
pop ecx
test al, al
jne 0x41cfe2
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0041ca70
test al, al
je 0x41cfe2
xor edx, edx
push ebp
push 0x41cfd4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.0041ca90
test al, al
je 0x41cc2b
call fcn.00404a30
jmp 0x41cfe2
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041d16c
mov ebx, eax
test ebx, ebx
jne 0x41cc49
call fcn.00404a30
jmp 0x41cfe2
test ebx, ebx
jge 0x41cd8b
cmp ebx, 0xfffffffe
jne 0x41cc67
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, 4
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0x2c], edx
jmp 0x41cc70
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 0x41cd79
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 0x41ccd0
call fcn.00403edc
call fcn.0040304c
mov edi, eax
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x18], edi
mov edx, edi
mov ecx, 0x41cff0
mov eax, dword [ebp - 0x28]
call fcn.004172dc
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.0040f2ac
mov edx, 0x57a1c0
mov ecx, 2
mov eax, dword [ebp - 8]
call fcn.0040f1b0
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.0041b870
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, 0x41cff0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004172dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cd80
cmp dword [ebp - 0x28], 0
je 0x41cd78
mov edx, 0x20
mov eax, dword [ebp - 0x28]
call fcn.004030b8
ret
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x41cd97
call fcn.00403edc
call fcn.0040304c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x41cfac
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.0041ca98
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x41cf89
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x40
call fcn.0040f8a8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.0040f8a8
mov edx, eax
test edx, edx
jns 0x41cdfb
call fcn.00403edc
mov eax, dword [ebp - 0x1c]
call fcn.0041cb3c
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 0x41cf53
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, 0x41cff0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
call fcn.004172dc
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 0x41ce8c
call fcn.00403edc
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0041d354
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0041cb3c
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.0040f2ac
lea eax, [ebp - 0x14]
push eax
push 0x20
call fcn.0040f8a8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.0040f8a8
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.0040f2ac
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x41cefd
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.0041b870
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, 0x41cff0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004172dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cf5a
cmp dword [ebp - 0x28], 0
je 0x41cf52
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