Function at 0x442108
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 + 0xc]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push ebp
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
call fcn.00441efc
pop ecx
test al, al
jne 0x44255c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00441f78
test al, al
je 0x44255c
xor edx, edx
push ebp
push 0x44254e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.00441f98
test al, al
je 0x442174
call fcn.004057d4
jmp 0x44255c
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004426f0
mov ebx, eax
test ebx, ebx
jne 0x442192
call fcn.004057d4
jmp 0x44255c
test ebx, ebx
jge 0x4422f9
cmp ebx, 0xfffffffe
jne 0x4421b0
mov eax, dword [ebp - 8]
mov edx, eax
sub edx, 4
mov edx, dword [edx]
add edx, eax
mov dword [ebp - 0x2c], edx
jmp 0x4421b9
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x2c], eax
mov eax, 0x20
call fcn.00403448
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x4422e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
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
call fcn.00403448
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x18]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
call fcn.0042ef18
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.004037a8
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, ebx
xor ecx, ecx
mov edx, esi
call fcn.00420a20
test edi, edi
je 0x44227b
lea edx, [ebp - 0x2c]
mov ecx, 4
mov eax, edi
call fcn.00420924
push 4
push edi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
cmp dword [ebp + 8], 0
je 0x442289
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [eax], edx
mov edx, 0x661040
mov ecx, 2
mov eax, dword [ebp - 8]
call fcn.00420924
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.0043e95c
xor eax, eax
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0042ef18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4422ee
cmp dword [ebp - 0x28], 0
je 0x4422e6
mov edx, 0x20
mov eax, dword [ebp - 0x28]
call fcn.004034b4
ret
mov eax, dword [ebp - 0x24]
call fcn.00403448
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x442526
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.004037a8
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00441fa0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x442503
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x40
call fcn.00422428
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.00422428
mov edx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00442094
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, 0x20
call fcn.00403448
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x4424c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
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
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
call fcn.0042ef18
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.004037a8
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004428d8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.00442094
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.00420a20
lea eax, [ebp - 0x14]
push eax
push 0x20
call fcn.00422428
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
call fcn.00422428
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
test edi, edi
je 0x442459
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, edi
call fcn.00420924
push 4
push edi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
cmp dword [ebp + 8], 0
je 0x442467
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00420a20
mov eax, dword [ebp - 0x24]
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.0043e95c
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0042ef18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4424d0
cmp dword [ebp - 0x28], 0
je 0x4424c8
mov edx, 0x20
mov eax, dword [ebp - 0x28]
call fcn.004034b4
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc