Function at 0x77ff0c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov edi, dword [edi + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x24]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
call fcn.0077dfd8
mov dl, 1
call sub.rtl140.bpl__System_TObject__bctr_qqrv
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 8]
cmp byte [eax - 0x3d], 0
jne 0x77ff9c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [edi + 0x78]
add eax, dword [edi + 0x24]
call fcn.0077ef70
pop ecx
mov eax, dword [edi + 0x78]
add eax, dword [edi + 0x24]
mov edx, dword [edi + 4]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax - 0xc], edx
mov byte [ebx + 0x20], 0
mov edx, dword [edi + 0x20]
dec edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0xa0]
call fcn.007d50a0
movzx eax, byte [eax + 0x22]
mov byte [ebx + 0x22], al
jmp 0x780041
mov byte [ebx + 0x20], 0xff
cmp dword [ebp - 4], 1
jg 0x77ffbb
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
call fcn.0078f9c4
test al, al
jne 0x77ffbf
xor eax, eax
jmp 0x77ffc1
mov al, 1
neg al
sbb eax, eax
mov byte [ebx + 0x21], al
cmp byte [edi + 0xbd], 0
jne 0x77ffe5
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x77ffe1
cmp dword [eax + 8], 0
jg 0x77ffe5
xor eax, eax
jmp 0x77ffe7
mov al, 1
neg al
sbb eax, eax
mov byte [ebx + 0x22], al
xor eax, eax
mov dword [edi], eax
mov eax, dword [edi + 0x78]
add eax, dword [edi + 0x24]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
cmp byte [eax + 0x34], 3
je 0x78001b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
cmp byte [eax + 0x34], 2
jne 0x780038
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x44]
jge 0x780038
mov eax, dword [edi + 0x44]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
add eax, dword [edi + 0xc]
add eax, dword [edi + 4]
mov edx, dword [edi + 0x78]
add edx, dword [edi + 0x24]
sub eax, edx
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
mov eax, dword [edi + 8]
add eax, dword [edi + 0xc]
add dword [edi + 4], eax
mov eax, dword [edi + 0x18]
add eax, dword [edi]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], esi
add dword [edi + 0x4c], esi
mov edx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0xa0]
mov ecx, ebx
call fcn.007d4f28
mov eax, dword [ebp + 8]
cmp byte [eax - 0x3e], 0
je 0x7800a8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov si, 0xfffd
call sub.rtl140.bpl__System__CallDynaInst_qqrv
test al, al
jne 0x7800a8
mov eax, dword [edi + 0x20]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x28]
mov dword [edx + 0x28], eax
inc dword [edi + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 1
je 0x780170
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov eax, dword [eax + 0x60]
call fcn.007e7ce4
cmp byte [eax + 0x1d], 0
je 0x780170
mov dl, 1
mov eax, dword [0x776628]
call sub.rtl140.bpl__System_TObject__bctr_qqrv
mov edx, dword [ebp + 8]
mov dword [edx - 0x44], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x44]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x44]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x44]
mov dword [edx + 0x18], eax
mov eax, dword [edi + 0x20]
dec eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x44]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
mov eax, dword [eax + 0x60]
call fcn.007e7ce4
movzx eax, word [eax + 0x1e]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x44]
mov word [edx + 0x20], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x44]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov eax, dword [eax + 0x54]
call sub.rtl140.bpl__Classes_TList_Add_qqrpv
mov eax, dword [ebp + 8]
cmp byte [eax - 0x3d], 0
jne 0x780184
mov eax, dword [edi + 0x7c]
sub eax, dword [edi + 0x24]
cmp eax, dword [edi + 8]
jle 0x78018d
mov eax, dword [edi + 0x7c]
sub eax, dword [edi + 0x24]
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
cmp byte [eax + 0x34], 3
je 0x7801ad
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
cmp byte [eax + 0x34], 2
jne 0x7801b3
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0x48]
jge 0x7801b3
mov eax, dword [edi + 0x48]
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add dword [edi], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret