Function at 0x46a160
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x46a168
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46a4b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3a4], 0
jne 0x46a1bc
mov dl, 1
mov eax, dword [0x43e288]
call fcn.00448398
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0x3a4
mov edx, ebx
test edx, edx
je 0x46a1b7
sub edx, 0xffffffc0
call sub.rtl250.bpl__System__IntfCopy_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
mov eax, esi
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x3a4]
call sub.rtl250.bpl__System__IntfCopy_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x3c4], 0
je 0x46a479
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3a4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x46a479
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x3a4]
call sub.rtl250.bpl__System__IntfCopy_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x3a4]
mov ecx, 0x46a4c0
call sub.rtl250.bpl__System__IntfCast_qqrr44System__DelphiInterface_17System_IInterface_x44System__DelphiInterface_17System_IInterf
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
mov dword [ebp - 8], eax
push ebp
call fcn.00469ea8
pop ecx
lea ecx, [ebp - 0x14]
mov edx, 0x46a4dc
mov eax, dword [ebp - 0xc]
call fcn.00446d9c
mov ebx, dword [0x47b13c]
mov ebx, dword [ebx]
mov dl, 0x7c
mov eax, dword [ebp - 0x14]
call ebx
test eax, eax
jle 0x46a2fe
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
xor eax, eax
push ebp
push 0x46a2e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov ebx, dword [0x47b154]
mov ebx, dword [ebx]
mov cl, 0x7c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call ebx
mov eax, dword [0x47f3f4]
call sub.rtl250.bpl__System__DynArrayHigh_qqrpxv
mov esi, eax
test esi, esi
jl 0x46a2de
inc esi
xor ebx, ebx
mov edi, ebx
add edi, edi
add edi, edi
add edi, edi
sub edi, ebx
mov eax, dword [0x47f3f4]
mov eax, dword [eax + edi*4]
mov ecx, dword [0x47b070]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x10]
call ecx
test al, al
je 0x46a2da
mov eax, dword [0x47f3f4]
cmp byte [eax + edi*4 + 0x18], 0
je 0x46a2de
push ebp
mov eax, dword [0x47f3f4]
mov eax, dword [eax + edi*4]
mov edx, 0x46a4f0
call fcn.00469610
pop ecx
jmp 0x46a2de
inc ebx
dec esi
jne 0x46a295
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46a2f2
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x46a25e
mov eax, dword [ebp - 0xc]
call fcn.004448a4
test al, al
je 0x46a327
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x33c], 0
je 0x46a327
push ebp
mov edx, 0x46a4f0
mov eax, 0x46a534
call fcn.00469610
pop ecx
mov eax, dword [ebp - 0xc]
call fcn.004448c4
test al, al
je 0x46a350
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x33c], 0
je 0x46a350
push ebp
mov edx, 0x46a4f0
mov eax, 0x46a55c
call fcn.00469610
pop ecx
mov eax, dword [ebp - 0xc]
call fcn.004448e8
test al, al
je 0x46a376
cmp dword [0x47a57c], 0
je 0x46a376
push ebp
mov edx, 0x46a4f0
mov eax, 0x46a580
call fcn.00469610
pop ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
push ebp
push 0x46a3cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x46a3c2
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*8 + 4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov edx, dword [eax + edx*8]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x28]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x20]
jne 0x46a39f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46a3d6
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x418], 0
jne 0x46a479
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x419], 0
jne 0x46a407
call sub.kernel32.dll_GetCurrentThreadId
cmp eax, dword [0x47af44]
jne 0x46a43b
mov eax, 0xfa
call fcn.004341e0
test al, al
jne 0x46a43b
mov eax, dword [ebp - 0xc]
add eax, 0x3fc
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
push fcn.00468b10
push 0
push 0
call sub.kernel32.dll_CreateThread
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3f8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3f8]
test eax, eax
jne 0x46a471
mov eax, dword [ebp - 0xc]
call fcn.00443af4
test al, al
je 0x46a466
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x404]
mov cl, 1
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 0xc]
push eax
call fcn.00468b10
jmp 0x46a479
push 1
push eax
call sub.kernel32.dll_SetThreadPriority
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a4b9
lea eax, [ebp - 0x24]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
lea eax, [ebp - 0x18]
call sub.rtl250.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
lea eax, [ebp - 0x14]
mov edx, 2
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
mov edx, dword [0x4695d8]
call sub.rtl250.bpl__System__DynArrayClear_qqrrpvpv
ret