Function at 0x4506b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
mov ebx, eax
lea eax, [ebp - 0x44]
mov edx, dword [0x415db4]
call fcn.00406364
xor eax, eax
push ebp
push 0x450a4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], ebp
xor edx, edx
push ebp
push 0x4509e9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
jle 0x450710
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
dec eax
jne 0x450705
cmp byte [0x5bcc74], 0
je 0x450749
xor edx, edx
push ebp
push 0x45073f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 4], 0
je 0x450735
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x450749
mov ebx, fcn.0040552c
cmp word [ebx], 0x25ff
jne 0x45075c
add ebx, 2
mov eax, dword [ebx]
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp eax, ebx
jbe 0x45078e
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.0041aee0
cmp byte [ebp - 0x44], 0
je 0x45078e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x38]
cmp eax, edx
ja 0x45078e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.004055a8
cmp dword [ebp - 0x4c], 0
je 0x4509df
push 0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
add eax, 4
mov ecx, 4
call fcn.0041c534
test al, al
je 0x4509df
push 0
lea edx, [ebp - 0x50]
mov ecx, 4
mov eax, dword [ebp - 0x50]
call fcn.0041c534
test al, al
je 0x4509df
xor esi, esi
xor ebx, ebx
jmp 0x4507e7
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
inc ebx
cmp dword [ebp - 0x50], 0x24
jbe 0x450821
cmp ebx, 0xf
jge 0x450821
push 0
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x50]
sub eax, 0x24
mov ecx, 4
call fcn.0041c534
test al, al
je 0x450821
push 0
lea edx, [ebp - 0x54]
mov ecx, 4
mov eax, dword [ebp - 0x54]
call fcn.0041c534
test al, al
jne 0x4507dd
cmp esi, 0x2c
jbe 0x4509df
push 0
lea edx, [ebp - 0x54]
mov eax, esi
sub eax, 0x2c
mov ecx, 4
call fcn.0041c534
test al, al
je 0x4509df
push 0
lea edx, [ebp - 0x5c]
mov ecx, 8
mov eax, dword [ebp - 0x54]
call fcn.0041c534
test al, al
je 0x4509df
lea eax, [ebp - 0x5c]
mov edx, 0x450a60
movzx ecx, byte [eax]
inc ecx
call fcn.00403bc0
jne 0x4509df
lea edx, [ebp - 0x180]
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
call fcn.00404444
lea edx, [ebp - 0x180]
mov eax, dword [ebp + 0xc]
call fcn.0040580c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [esi + 6]
cmp eax, 0x45060c
je 0x4509df
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x6c]
call fcn.0042d4e4
lea eax, [ebp - 0x188]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00412738
mov ecx, dword [ebp - 0x188]
lea eax, [ebp - 0x184]
mov edx, 0x450a70
call fcn.004058c0
mov eax, dword [ebp - 0x184]
call fcn.00405a38
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.0040826c
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x4509df
xor eax, eax
push ebp
push 0x4509d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
push ebp
push 0x4509ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 6]
cmp eax, 0x45060c
je 0x4509a3
push 0x40
push 0x1000
push 0xc
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov byte [esi], 0xba
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 1], eax
mov byte [esi + 5], 0xb9
mov dword [esi + 6], 0x45060c
mov word [esi + 0xa], 0xe1ff
mov eax, dword [ebx + 4]
mov eax, dword [eax]
add eax, 4
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4509a3
mov dword [ebx], esi
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x50]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4509c1
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4509f3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, 8
call fcn.00403108
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450a55
lea eax, [ebp - 0x188]
mov edx, 2
call fcn.004055cc
lea eax, [ebp - 0x44]
mov edx, dword [0x415db4]
call fcn.00406434
ret