Function at 0x45e318
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x45e670
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 4], ebp
xor edx, edx
push ebp
push 0x45e60a
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jle 0x45e369
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
dec eax
jne 0x45e35e
cmp byte [0x530878], 0
je 0x45e3a2
xor edx, edx
push ebp
push 0x45e398
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 4], 0
je 0x45e38e
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45e3a2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x53087c]
jbe 0x45e3c0
cmp eax, dword [0x530880]
ja 0x45e3c0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.00404f44
cmp dword [ebp - 0xc], 0
je 0x45e600
push 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, 4
mov ecx, 4
call fcn.004172f8
test al, al
je 0x45e600
push 0x45e688
lea eax, [ebp - 0x1c]
call fcn.00404788
mov edx, eax
lea ecx, [ebp - 0x15]
mov eax, dword [ebp - 0x14]
call fcn.00432174
test al, al
je 0x45e600
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.004050e8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp byte [ebp - 0x15], 0
je 0x45e43f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp dword [eax + 8], 0
je 0x45e43f
mov esi, 2
jmp 0x45e444
mov esi, 1
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00414b24
mov ebx, 0x32
cmp byte [ebp - 0x60], 0
je 0x45e4bb
cmp byte [ebp - 0x5b], 0
je 0x45e47a
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x452ff
jne 0x45e47a
mov esi, 1
jmp 0x45e4bb
cmp byte [ebp - 0x5b], 0
je 0x45e498
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x852ff
jne 0x45e498
mov esi, 2
jmp 0x45e4bb
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x40]
call fcn.00414b24
push esi
lea esi, [ebp - 0x84]
lea edi, [ebp - 0x60]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop esi
dec ebx
jne 0x45e456
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x45e600
mov eax, dword [ebx + 6]
cmp eax, 0x45e274
je 0x45e600
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x28]
call fcn.00430e20
lea eax, [ebp - 0x8c]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040ab60
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x45e698
call fcn.00404aa4
mov eax, dword [ebp - 0x88]
call fcn.00404c58
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.004073f4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45e600
xor edx, edx
push ebp
push 0x45e5f9
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x45e5db
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 6]
cmp eax, 0x45e274
je 0x45e5c4
push 0x40
push 0x1000
push 0xc
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov byte [ebx], 0xba
mov byte [ebx + 5], 0xb9
mov word [ebx + 0xa], 0xe1ff
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov edx, dword [edx]
mov edx, dword [edx + esi*4]
mov dword [ebx + 1], edx
mov dword [ebx + 6], 0x45e274
mov eax, dword [eax + 4]
mov eax, dword [eax]
lea eax, [eax + esi*4]
mov dword [ebp - 0x14], eax
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.0045696c
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e5e2
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45e614
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, 8
call fcn.00402754
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e677
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.004047ac
lea eax, [ebp - 0x1c]
call fcn.00404788
ret