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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x38], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x50]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.007ab378
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.0078f8c4
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x64]
call fcn.007ed554
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.0078f9c4
test al, al
je 0x780361
mov byte [edi + 0x10], 1
mov byte [edi + 0x68], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc], 0
jge 0x780840
mov eax, dword [ebp - 0x28]
mov edx, dword [0x7c0e90]
call sub.rtl140.bpl__System__IsClass_qqrp14System_TObjectp17System_TMetaClass
test al, al
je 0x78048a
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 0x40
je 0x7803a6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x48]
mov ebx, eax
jmp 0x7803bd
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
call fcn.0077dfd8
mov dl, 1
call sub.rtl140.bpl__System_TObject__bctr_qqrv
mov ebx, eax
push ebp
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.0077f014
pop ecx
mov dl, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x20]
test al, al
je 0x7803de
mov dword [edi + 0x34], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dl, 2
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0x24]
test al, al
je 0x780f6b
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 1
je 0x78046b
mov dl, 1
mov eax, dword [0x776628]
call sub.rtl140.bpl__System_TObject__bctr_qqrv
mov dword [ebp - 0x44], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x10], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x18]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x18], eax
mov eax, dword [edi + 0x20]
dec eax
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov si, 0xffd6
call sub.rtl140.bpl__System__CallDynaInst_qqrv
mov edx, dword [ebp - 0x44]
mov word [edx + 0x20], ax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x44]
call sub.rtl140.bpl__Classes_TList_Add_qqrpv
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.007ab378
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x58]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x38]
inc dword [eax + 0x58]
jmp 0x780f6b
mov edx, edi
mov eax, dword [ebp - 0x38]
call fcn.0077deac
lea eax, [ebp - 0x10]
push eax
push edi
mov edx, dword [ebp + 0xc]
mov cl, 1
mov eax, dword [ebp - 0x38]
call fcn.0077d470
mov eax, dword [edi + 0xb8]
call sub.rtl140.bpl__System_TObject_Free_qqrv
xor eax, eax
mov dword [edi + 0xb8], eax
mov eax, dword [ebp - 0x10]
add dword [edi + 4], eax
cmp dword [ebp + 0x14], 0
jle 0x7804ec
mov edx, dword [ebp + 0x14]
dec edx
mov eax, dword [ebp - 0x38]
call fcn.0078f8c4
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x64]
call fcn.007ed554
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 0xc]
call fcn.007d2364
add dword [edi + 8], eax
xor edx, edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x20]
test al, al
je 0x780521
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x64]
xor edx, edx
call fcn.007ed554
mov eax, dword [eax + 0x28]
mov edx, dword [ebp + 0xc]
call fcn.007d2364
add dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2c], eax
jmp 0x780569
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.0078f8c4
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x64]
call fcn.007ed554
mov eax, dword [eax + 0x28]
mov edx, dword [ebp + 0xc]
call fcn.007d2364
add dword [edi + 8], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x20]
call fcn.007d2354
mov dword [edi + 0x28], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x24]
call fcn.007d2354
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x28]
add eax, dword [edi + 0x2c]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x98]
sub edx, eax
mov dword [edi + 0x14], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
add dword [edi + 0x28], eax
mov eax, dword [edi + 0x28]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x28]
add eax, dword [edi + 0x14]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x5c], eax
mov ebx, dword [edi + 0xb4]
test ebx, ebx
je 0x78062a
mov eax, dword [edi + 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [edi + 0x28]
push eax
lea eax, [edi + 0x14]
push eax
push 1
mov eax, dword [ebp - 0x28]
call fcn.007c6db8
test al, al
jne 0x7805dc
mov eax, dword [ebp - 0x28]
call fcn.007c6d94
test al, al
jne 0x7805dc
xor eax, eax
jmp 0x7805de
mov al, 1
push eax
mov eax, dword [ebp - 0x28]
call fcn.007c6dc0
test al, al
jne 0x7805fb
mov eax, dword [ebp - 0x28]
call fcn.007c6d94
test al, al
jne 0x7805fb
xor eax, eax
jmp 0x7805fd
mov al, 1
push eax
mov eax, dword [edi + 0xb8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.00782eec
mov ecx, eax
mov edx, dword [edi + 0x38]
mov eax, ebx
call fcn.007d551c
mov dword [edi + 0x34], 0xffffffff
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
sub dword [edi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
add eax, dword [edi + 0x28]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 0x40
je 0x780661
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x48]
mov ebx, eax
jmp 0x780678
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
call fcn.0077dfd8
mov dl, 1
call sub.rtl140.bpl__System_TObject__bctr_qqrv
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov si, 0xfffd
call sub.rtl140.bpl__System__CallDynaInst_qqrv
test al, al
jne 0x780697
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov si, 0xffe8
call sub.rtl140.bpl__System__CallDynaInst_qqrv
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 0x80
setne al
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
movzx eax, byte [edi + 0x54]
push eax
movzx eax, byte [edi + 0x55]
push eax
movzx eax, byte [edi + 0xbe]
push eax
mov edx, dword [edi + 0x14]
mov ecx, ebx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0x54]
mov dl, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x20]
test al, al
je 0x7806ed
mov dword [edi + 0x34], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dl, 6
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0x24]
test al, al
jne 0x780729
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp + 0xc]
call fcn.007d2364
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x60]
mov edx, dword [ebp + 0xc]
call fcn.007d2354
mov edx, eax
mov eax, ebx
pop ecx
mov esi, dword [eax]
call dword [esi + 0x2c]
xor edx, edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x20]
test al, al
jne 0x780770
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 0x35]
dec al
je 0x780748
dec al
je 0x780753
jmp 0x78078b
mov eax, dword [edi + 0x14]
sub eax, dword [ebx + 0xc]
add dword [edi + 0x18], eax
jmp 0x78078b
mov eax, dword [edi + 0x14]
sub eax, dword [ebx + 0xc]
sar eax, 1
jns 0x780760
adc eax, 0
add dword [edi + 0x18], eax
cmp dword [edi + 0x18], 0
jge 0x78078b
xor eax, eax
mov dword [edi + 0x18], eax
jmp 0x78078b
mov eax, dword [edi + 0x14]
sub eax, dword [ebx + 0xc]
sar eax, 1
jns 0x78077d
adc eax, 0
add dword [edi + 0x18], eax
cmp dword [edi + 0x18], 0
jge 0x78078b
xor eax, eax
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x14]
push eax
push 0xffffffffffffffff
mov edx, dword [edi + 0x18]
add edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x28]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x5c]
jne 0x7807bd
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x7807b9
cmp dword [eax + 8], 0
jg 0x7807bd
xor eax, eax
jmp 0x7807bf
mov al, 1
neg al
sbb eax, eax
mov byte [ebx + 0x22], al
mov eax, dword [ebp - 0x38]
mov si, 0xfffd
call sub.rtl140.bpl__System__CallDynaInst_qqrv
test al, al
jne 0x7807df
mov eax, dword [edi + 0x20]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x28], eax
mov edx, dword [edi + 0x20]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xa0]
mov ecx, ebx
call fcn.007d4f28
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 1
je 0x78081e
mov eax, dword [ebp - 0x38]
add eax, 0x58
push eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x54]
push eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0x28]
mov si, 0xffd5
call sub.rtl140.bpl__System__CallDynaInst_qqrv
inc dword [edi + 0x20]
mov eax, dword [edi + 8]
add eax, dword [ebx + 0x10]
add eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x5c]
add dword [edi + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 8], eax
jmp 0x780f6b
mov eax, dword [ebp - 0x28]
test byte [eax + 0x14], 8
setne al
mov byte [ebp - 0x29], al
cmp byte [ebp - 0x29], 0
je 0x78086a
mov eax, dword [ebp - 0x58]
call sub.rtl140.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov dword [ebp - 0x14], eax
mov eax, ebx
call sub.rtl140.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov dword [ebp - 0x30], eax
jmp 0x78087f
mov eax, dword [ebp - 0x58]
call sub.rtl140.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov dword [ebp - 0x14], eax
mov eax, ebx
call sub.rtl140.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
push ebp
mov eax, dword [ebp - 0x28]
call fcn.0077f8f8
pop ecx
mov byte [ebp - 0x3e], 1
cmp dword [ebp - 0x18], 0
jne 0x780a76
mov eax, dword [edi + 0x6c]
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [eax + 0x54]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.0078f9c4
test al, al
je 0x780932
push ebp
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.0077e9f0
pop ecx
cmp dword [edi + 0x34], 0
jge 0x7808de
push ebp
mov eax, dword [ebp - 0x28]
call fcn.0077f8f8
pop ecx
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 - 0x24]
cmp byte [eax + 0x34], 3
je 0x780905
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x34], 2
jne 0x78091e
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x44]
jge 0x78091e
mov eax, dword [edi + 0x44]
mov dword [edi + 0xc], eax
mov edx, dword [edi + 8]
add edx, eax
add edx, dword [edi + 4]
mov eax, dword [edi + 0x78]
add eax, dword [edi + 0x24]
sub edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [edi + 8]
add eax, dword [edi + 0xc]
add dword [edi + 4], eax
mov eax, dword [edi + 0x7c]
sub eax, dword [edi + 0x24]
mov dword [edi + 8], eax
jmp 0x78095b
push ebp
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 dword [ebp - 0xc], edx
mov eax, dword [edi + 0x7c]
sub eax, dword [edi + 0x24]
cmp eax, dword [edi + 8]
jle 0x78095b
mov dword [edi + 8], eax
mov byte [edi + 0xbc], 0
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x34], 3
je 0x78097c
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x34], 2
jne 0x780982
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0x48]
jge 0x780982
mov eax, dword [edi + 0x48]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.0078f9c4
neg al
sbb eax, eax
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
call fcn.0077dfd8
mov ecx, dword [edi + 0x18]
add ecx, dword [edi]
mov dl, 1
call fcn.007d4d90
mov ebx, eax
cmp byte [ebx + 0x20], 0
je 0x7809ec
cmp byte [edi + 0xbd], 0
jne 0x7809e1
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x7809dd
cmp dword [eax + 8], 0
jg 0x7809e1
xor eax, eax
jmp 0x7809e3
mov al, 1
neg al
sbb eax, eax
mov byte [ebx + 0x22], al
jmp 0x780a05
mov edx, dword [edi + 0x20]
dec edx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xa0]
call fcn.007d50a0
movzx eax, byte [eax + 0x22]
mov byte [ebx + 0x22], al
mov dword [ebx + 0x18], 1
mov eax, dword [ebp - 8]
add dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp - 0x34]
call fcn.007e7ce4
cmp byte [eax + 0x1d], 0
je 0x780a37
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.007ab378
mov dword [eax + 0x20], 0xfffffffd
xor eax, eax
mov dword [ebx + 0x1c], eax
cmp byte [ebp - 0x3e], 0
je 0x780a5b
mov eax, dword [ebp - 0x38]
mov si, 0xfffd
call sub.rtl140.bpl__System__CallDynaInst_qqrv
test al, al
jne 0x780a5b
mov eax, dword [edi + 0x20]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x28], eax
mov edx, dword [edi + 0x20]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xa0]
mov ecx, ebx
call fcn.007d4f28
inc dword [edi + 0x20]
jmp 0x780f6b
cmp byte [ebp - 0x3e], 0
je 0x780a8b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.0078f9c4
test al, al
jne 0x780a8f
xor eax, eax
jmp 0x780a91
mov al, 1
mov byte [ebp - 0x3d], al
mov bl, 1
cmp dword [ebp - 0x18], 0
jle 0x780f3d
test byte [ebp - 0x3d], bl
je 0x780b19
push ebp
movzx edx, byte [edi + 0x10]
xor dl, 1
mov eax, dword [ebp - 0x28]
call fcn.0077e9f0
pop ecx
cmp dword [edi + 0x34], 0
jge 0x780ac6
push ebp
mov eax, dword [ebp - 0x28]
call fcn.0077f8f8
pop ecx
xor eax, eax
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 4
je 0x780b15
cmp byte [edi + 0x68], 0
jne 0x780b15
cmp byte [edi + 0x10], 0
jne 0x780b15
cmp dword [ebp - 0x18], 1
jle 0x780b15
cmp byte [ebp - 0x29], 0
je 0x780b04
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x20
jne 0x780b15
add dword [ebp - 0x14], 2
add dword [ebp - 0x30], 2
dec dword [ebp - 0x18]
jmp 0x780b15
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x20
jne 0x780b15
inc dword [ebp - 0x14]
inc dword [ebp - 0x30]
dec dword [ebp - 0x18]
mov byte [edi + 0x68], 0
mov byte [edi + 0xbc], 0
mov eax, dword [edi + 0x14]
sub eax, dword [edi]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x780b33
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x69], 0
cmp dword [edi + 0x50], 0
jle 0x780b5e
mov eax, dword [edi + 0x50]
cmp eax, dword [edi + 0x4c]
jg 0x780b5e
mov eax, dword [ebp - 0x24]
test byte [eax + 0x40], 1
jne 0x780b5e
cmp byte [edi + 0xb0], 0
je 0x780b5e
xor eax, eax
mov dword [ebp - 0x50], eax
jmp 0x780bc0
test bl, bl
jne 0x780ba4
push ebp
call fcn.0077fe30
pop ecx
mov edx, dword [ebp - 0x18]
sub edx, eax
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x18]
setl byte [ebp - 0x69]
cmp dword [edi + 0x50], 0
jle 0x780bc0
mov eax, dword [edi + 0x50]
sub eax, dword [edi + 0x4c]
cmp eax, dword [ebp - 0x50]
jge 0x780bc0
mov eax, dword [edi + 0x50]
sub eax, dword [edi + 0x4c]
cmp eax, dword [ebp - 0x18]
setle byte [ebp - 0x69]
mov eax, dword [edi + 0x50]
sub eax, dword [edi + 0x4c]
mov dword [ebp - 0x50], eax
jmp 0x780bc0
cmp byte [ebp - 0x29], 0
je 0x780bb6
push ebp
call fcn.0077e560
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x780bc0
push ebp
call fcn.0077e2b8
pop ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x50], 0
jne 0x780c2b
cmp byte [ebp - 0x3d], 0
jne 0x780bef
cmp byte [ebp - 0x3e], 0
je 0x780c18
cmp dword [ebp + 0x14], 0
jle 0x780c18
mov edx, dword [ebp + 0x14]
dec edx
mov eax, dword [ebp - 0x38]
call fcn.007a10e0
cmp eax, 0xfffffff5
jne 0x780c18
cmp byte [ebp - 0x69], 0
jne 0x780c2b
mov dword [ebp - 0x50], 1
mov eax, dword [0x9f1074]
movzx eax, byte [eax]
and al, byte [ebp - 0x29]
je 0x780c2b
push ebp
mov eax, dword [ebp - 0x50]
call fcn.0077e04c
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x780c2b
xor eax, eax
mov dword [edi], eax
mov byte [edi + 0x10], 0
mov byte [ebp - 0x3d], 1
mov bl, 1
jmp 0x780f33
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x18]
jge 0x780dc6
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xf8], 0
je 0x780dc6
cmp byte [ebp - 0x29], 0
je 0x780c75
mov eax, ebx
xor al, 1
push eax
mov eax, dword [ebp - 0x50]
inc eax
cmp eax, dword [ebp - 0x18]
sete cl
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x30]
call fcn.007b85d8
mov esi, eax
test esi, esi
je 0x780c9f
sub esi, dword [ebp - 0x30]
add esi, dword [ebp - 0x14]
jmp 0x780c9f
mov eax, dword [ebp - 0x50]
inc eax
cmp eax, dword [ebp - 0x18]
jne 0x780c8f
mov ecx, dword [ebp - 0x50]
mov dl, 0x20
mov eax, dword [ebp - 0x14]
call fcn.0077bdf8
mov esi, eax
jmp 0x780c9f
mov ecx, dword [ebp - 0x50]
inc ecx
mov dl, 0x20
mov eax, dword [ebp - 0x14]
call fcn.0077bdf8
mov esi, eax
test esi, esi
jne 0x780d02
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 4
je 0x780d02
cmp byte [ebp - 0x69], 0
jne 0x780d02
mov eax, dword [ebp - 0x50]
inc eax
cmp eax, dword [ebp - 0x18]
jl 0x780ccd
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.0078fa38
test al, al
jne 0x780d02
cmp byte [ebp - 0x29], 0
je 0x780ced
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
cmp word [eax + edx*2], 0x20
jne 0x780d02
mov esi, dword [ebp - 0x50]
add esi, esi
add esi, dword [ebp - 0x14]
inc dword [ebp - 0x50]
jmp 0x780d02
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
cmp byte [eax + edx], 0x20
jne 0x780d02
mov esi, dword [ebp - 0x14]
add esi, dword [ebp - 0x50]
inc dword [ebp - 0x50]
test esi, esi
je 0x780d6f
cmp byte [ebp - 0x29], 0
je 0x780d49
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 4
je 0x780d39
cmp word [esi], 0x20
jne 0x780d39
cmp esi, dword [ebp - 0x14]
je 0x780d39
sub esi, dword [ebp - 0x14]
sar esi, 1
jns 0x780d2d
adc esi, 0
mov dword [ebp - 0x50], esi
mov byte [edi + 0x68], 1
jmp 0x780dc6
sub esi, dword [ebp - 0x14]
sar esi, 1
jns 0x780d43
adc esi, 0
inc esi
mov dword [ebp - 0x50], esi
jmp 0x780dc6
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, 4
je 0x780d66
cmp esi, dword [ebp - 0x14]
je 0x780d66
sub esi, dword [ebp - 0x14]
mov dword [ebp - 0x50], esi
mov byte [edi + 0x68], 1
jmp 0x780dc6
sub esi, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x50], esi
jmp 0x780dc6
cmp byte [ebp - 0x3d], 0
jne 0x780dba
cmp byte [ebp - 0x3e], 0
je 0x780d92
cmp dword [ebp + 0x14], 0
jle 0x780d92
mov edx, dword [ebp + 0x14]
dec edx
mov eax, dword [ebp - 0x38]
call fcn.007a10e0
cmp eax, 0xfffffff5
je 0x780dba
push ebp
call fcn.0077fd7c
pop ecx
test al, al
jne 0x780dab
cmp byte [ebp - 0x69], 0
je 0x780dc6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
jmp 0x780dc6
mov byte [edi + 0x10], 0
mov byte [ebp - 0x3d], 1
mov bl, 1
jmp 0x780f33
cmp byte [ebp - 0x69], 0
je 0x780dc6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x49], 0
test bl, bl
je 0x780e3c
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xf8], 2
jne 0x780e3c
cmp dword [ebp - 0x50], 0
jle 0x780e3c
mov eax, dword [ebp - 0x24]
test byte [eax + 0x40], 1
jne 0x780e3c
cmp byte [edi + 0xb0], 0
je 0x780e3c
cmp byte [edi + 0x68], 0
je 0x780e01
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, dword [ebp - 0x50]
je 0x780e0f
cmp byte [edi + 0x68], 0
jne 0x780e3c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x50]
jne 0x780e3c
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
je 0x780e28
push ebp
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
call fcn.0077fe78
pop ecx
mov byte [ebp - 0x49], 1
push ebp
mov eax, dword [ebp - 8]
call fcn.0077fa38
pop ecx
mov ebx, eax
test bl, bl
je 0x780f33
mov bl, 1
cmp byte [ebp - 0x29], 0
je 0x780e8b
mov eax, dword [ebp - 0x58]
call sub.rtl140.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x14]
sub edx, eax
sar edx, 1
jns 0x780e58
adc edx, 0
inc edx
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x50]
add eax, eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x50]
add eax, eax
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x50]
sub dword [ebp - 0x18], eax
cmp byte [edi + 0x68], 0
je 0x780ec3
add dword [ebp - 0x14], 2
add dword [ebp - 0x30], 2
dec dword [ebp - 0x18]
jmp 0x780ec3
mov eax, dword [ebp - 0x58]
call sub.rtl140.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x14]
sub edx, eax
inc edx
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x50]
sub dword [ebp - 0x18], eax
cmp byte [edi + 0x68], 0
je 0x780ec3
inc dword [ebp - 0x14]
inc dword [ebp - 0x30]
dec dword [ebp - 0x18]
cmp byte [ebp - 0x3d], 0
jne 0x780ecf
cmp dword [ebp - 0x50], 0
je 0x780f2f
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x35], 3
je 0x780f14
cmp byte [ebp - 0x49], 0
jne 0x780f05
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jne 0x780ef8
mov eax, dword [ebp - 0x24]
test byte [eax + 0x40], 1
jne 0x780ef8
cmp byte [edi + 0xb0], 0
jne 0x780f05
push ebp
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
call fcn.0077fe78
pop ecx
push ebp
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
call fcn.0077ff0c
pop ecx
jmp 0x780f21
push ebp
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
call fcn.007801c4
pop ecx
mov byte [ebp - 0x3d], 1
mov byte [edi + 0x10], 0
mov byte [ebp - 0x3e], 0
jmp 0x780f33
mov byte [ebp - 0x3d], 1
cmp dword [ebp - 0x18], 0
jg 0x780aa0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp - 0x34]
call fcn.007e7ce4
cmp byte [eax + 0x1d], 0
je 0x780f6b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x38]
call fcn.007ab378
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x58]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x38]
inc dword [eax + 0x58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14