Function at 0x46cc84
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46ce9d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5e57f0], 0
je 0x46cd50
mov eax, esi
call sub.dac170.bpl__Memutils_GetGCHandleTarget_qqrpv
mov esi, eax
push esi
push 0x111
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
push eax
mov ecx, dword [esi + 0x14]
mov dl, 1
mov eax, dword [0x44e5c4]
call fcn.0046d038
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x46cd27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
call fcn.0046d14c
mov edx, ebx
mov eax, dword [ebp - 0x20]
call fcn.0046d2fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cd2e
mov eax, dword [ebp - 8]
mov byte [eax + 0x1c], 0
mov eax, dword [ebp - 0x20]
call sub.rtl170.bpl__System_TObject_Free_qqrv
ret
mov eax, dword [0x5e3a1c]
mov eax, dword [eax]
call sub.dac170.bpl__Memutils_GetGCHandleTarget_qqrpv
mov ecx, eax
mov dl, 1
mov eax, dword [0x44c538]
call fcn.00465eac
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
mov edx, 0x46cebc
call sub.rtl170.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0xc]
add eax, 0x28
mov edx, dword [ebp - 4]
call sub.rtl170.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0xc]
mov word [eax + 0x30], 8
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x44bd30]
call fcn.0046223c
mov edi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov edx, edi
call sub.rtl170.bpl__System_Classes_TList_Add_qqrpv
lea eax, [edi + 0xc]
mov edx, 0x46cef0
call sub.rtl170.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 8]
call fcn.004622d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
call sub.dac170.bpl__Memutils_OrdinalToPtr_qqrrpv
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x46ce7e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 0x14]
push eax
push 4
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x10]
push eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x18]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00469b14
xor edx, edx
call fcn.00449470
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x1d]
mov dword [ebp - 0x1c], eax
push ebx
push 0x20
push 0
lea eax, [ebp - 0x1c]
push eax
push 5
mov eax, dword [ebp - 0x18]
push eax
call fcn.0046f12c
add esp, 0x18
xor edx, edx
call fcn.00449470
mov eax, esi
call sub.dac170.bpl__Memutils_GetGCHandleTarget_qqrpv
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
push 0
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00469b98
xor edx, edx
call fcn.00449470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ce85
mov eax, dword [ebp - 8]
mov byte [eax + 0x1c], 0
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System_TObject_Free_qqrv
mov eax, dword [ebp - 0x14]
call sub.dac170.bpl__Memutils_FreeOrdinal_qqrpv
ret