Function at 0x41cb38
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.0041c960
pop ecx
test al, al
jne 0x41cf5a
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0041c9e8
test al, al
je 0x41cf5a
xor edx, edx
push ebp
push 0x41cf4c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.0041ca08
test al, al
je 0x41cba3
call fcn.00404a30
jmp 0x41cf5a
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041d0e4
mov ebx, eax
test ebx, ebx
jne 0x41cbc1
call fcn.00404a30
jmp 0x41cf5a
test ebx, ebx
jge 0x41cd03
cmp ebx, 0xfffffffe
jne 0x41cbdf
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, 4
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0x2c], edx
jmp 0x41cbe8
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 0x41ccf1
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 0x41cc48
call fcn.00403edc
call fcn.0040304c
mov edi, eax
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x18], edi
mov edx, edi
mov ecx, 0x41cf68
mov eax, dword [ebp - 0x28]
call fcn.00417254
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.0040f224
mov edx, 0x5631c0
mov ecx, 2
mov eax, dword [ebp - 8]
call fcn.0040f128
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.0041b7e8
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, 0x41cf68
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00417254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ccf8
cmp dword [ebp - 0x28], 0
je 0x41ccf0
mov edx, 0x20
mov eax, dword [ebp - 0x28]
call fcn.004030b8
ret
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x41cd0f
call fcn.00403edc
call fcn.0040304c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x41cf24
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.0041ca10
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x41cf01
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x40
call fcn.0040f820
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.0040f820
mov edx, eax
test edx, edx
jns 0x41cd73
call fcn.00403edc
mov eax, dword [ebp - 0x1c]
call fcn.0041cab4
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 0x41cecb
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, 0x41cf68
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
call fcn.00417254
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 0x41ce04
call fcn.00403edc
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0041d2cc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0041cab4
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.0040f224
lea eax, [ebp - 0x14]
push eax
push 0x20
call fcn.0040f820
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.0040f820
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.0040f224
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x41ce75
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.0041b7e8
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov ecx, 0x41cf68
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00417254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ced2
cmp dword [ebp - 0x28], 0
je 0x41ceca
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