Function at 0x460cc0
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 - 0x84], ebx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
mov ebx, eax
lea eax, [ebp - 0x44]
mov edx, dword [0x40ff94]
call sub.rtl160.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x461088
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], ebp
xor edx, edx
push ebp
push 0x461018
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
jle 0x460d26
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
dec eax
jne 0x460d1b
cmp byte [0x535e10], 0
je 0x460d5f
xor edx, edx
push ebp
push 0x460d55
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 4], 0
je 0x460d4b
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460d5f
mov ebx, 0x401238
cmp word [ebx], 0x25ff
jne 0x460d72
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 0x460da4
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.00415454
cmp byte [ebp - 0x44], 0
je 0x460da4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x38]
cmp eax, edx
ja 0x460da4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call sub.rtl160.bpl__System__LStrClr_qqrpv
cmp dword [ebp - 0x4c], 0
je 0x46100e
push 0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
add eax, 4
mov ecx, 4
call fcn.00416c78
test al, al
je 0x46100e
push 0
lea edx, [ebp - 0x50]
mov ecx, 4
mov eax, dword [ebp - 0x50]
call fcn.00416c78
test al, al
je 0x46100e
xor esi, esi
xor ebx, ebx
jmp 0x460dfd
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
inc ebx
cmp dword [ebp - 0x50], 0x30
jbe 0x460e37
cmp ebx, 0xf
jge 0x460e37
push 0
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x50]
sub eax, 0x30
mov ecx, 4
call fcn.00416c78
test al, al
je 0x460e37
push 0
lea edx, [ebp - 0x54]
mov ecx, 4
mov eax, dword [ebp - 0x54]
call fcn.00416c78
test al, al
jne 0x460df3
cmp esi, 0x38
jbe 0x46100e
push 0
lea edx, [ebp - 0x54]
mov eax, esi
sub eax, 0x38
mov ecx, 4
call fcn.00416c78
test al, al
je 0x46100e
push 0
lea edx, [ebp - 0x5c]
mov ecx, 8
mov eax, dword [ebp - 0x54]
call fcn.00416c78
test al, al
je 0x46100e
lea eax, [ebp - 0x5c]
mov edx, 0x461098
movzx ecx, byte [eax]
inc ecx
call sub.rtl160.bpl__System__AStrCmp_qqrv
jne 0x46100e
lea edx, [ebp - 0x84]
mov edi, dword [ebp - 0x4c]
mov eax, dword [edi + 4]
mov eax, dword [eax]
call sub.rtl160.bpl__System_TObject_ClassName_qqrv
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp + 0xc]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, 2
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 6]
cmp eax, 0x460c1c
je 0x46100e
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x6c]
call fcn.00432aa8
lea eax, [ebp - 0x8c]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040ba28
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x4610ac
call sub.rtl160.bpl__System__LStrCat3_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__t2
mov eax, dword [ebp - 0x88]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00402d38
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x46100e
xor eax, eax
push ebp
push 0x461007
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 0x460fe9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 6]
cmp eax, 0x460c1c
je 0x460fd2
push 0x40
push 0x1000
push 0xc
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov byte [esi], 0xba
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov dword [esi + 1], eax
mov byte [esi + 5], 0xb9
mov dword [esi + 6], 0x460c1c
mov word [esi + 0xa], 0xe1ff
mov eax, dword [edi + 4]
mov eax, dword [eax]
lea eax, [eax + ebx*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 0x460fc3
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
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 0x460ff0
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 0x461022
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, 8
call sub.rtl160.bpl__System__GetMem_qqri
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 0x46108f
lea eax, [ebp - 0x8c]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x84]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x44]
mov edx, dword [0x40ff94]
call sub.rtl160.bpl__System__FinalizeRecord_qqrpvt1
ret