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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x3e
push 0
push 0
dec ecx
jne 0x46d3b5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x44], eax
xor eax, eax
push ebp
push 0x46e54d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov dl, 1
mov eax, 0x46e56c
call fcn.0046ce40
pop ecx
mov dword [ebp - 0x48], 0xffffffff
call fcn.00465934
test al, al
jne 0x46d450
push ebp
mov dl, 1
mov eax, 0x46e598
call fcn.0046ce40
pop ecx
push ebp
push 0x46e5ec
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x7c]
call sub.rtl120.bpl__Sysutils_IntToStr_qqrj
push dword [ebp - 0x7c]
push 0x46e614
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x80]
call sub.rtl120.bpl__Sysutils_SysErrorMessage_qqrui
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x78]
mov dl, 1
call fcn.0046ce40
pop ecx
jmp 0x46e522
xor eax, eax
push ebp
push 0x46e51b
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004661d4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x46d4e4
push ebp
mov dl, 1
mov eax, 0x46e628
call fcn.0046ce40
pop ecx
push ebp
push 0x46e5ec
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x88]
call sub.rtl120.bpl__Sysutils_IntToStr_qqrj
push dword [ebp - 0x88]
push 0x46e614
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x8c]
call sub.rtl120.bpl__Sysutils_SysErrorMessage_qqrui
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x84]
mov dl, 1
call fcn.0046ce40
pop ecx
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x46e522
lea eax, [ebp - 0x34]
mov edx, 0x1c
call fcn.00401948
mov dword [ebp - 0x34], 0x1c
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x90]
call fcn.00406bfc
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0x3c]
mov ecx, 0x46e670
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
jmp 0x46e483
inc dword [ebp - 0x50]
push ebp
xor edx, edx
xor eax, eax
call fcn.0046ce40
pop ecx
push ebp
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x50]
call sub.rtl120.bpl__Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x46e688
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x94]
xor edx, edx
call fcn.0046ce40
pop ecx
mov edx, dword [0x407e48]
mov eax, 0x9d
call sub.rtl120.bpl__System__New_qqripv
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
call fcn.00408400
push ebp
lea edx, [ebp - 0xa0]
mov eax, 8
call fcn.0046ced4
pop ecx
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x4c]
add eax, 8
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0xa4]
mov edx, 0x46e698
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0xa4]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
lea edx, [ebp - 0xac]
mov eax, 7
call fcn.0046ced4
pop ecx
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0x4c]
add eax, 0xc
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0xc], 0
jne 0x46d627
mov eax, dword [ebp - 0x4c]
add eax, 0xc
mov edx, 0x46e6b8
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0xb0]
mov edx, 0x46e6d4
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0xb0]
xor edx, edx
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
mov edx, 0x46e6fc
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
jne 0x46d688
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
mov edx, 0x46e724
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
jne 0x46d688
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
mov edx, 0x46e740
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
je 0x46d692
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x93], 1
push ebp
lea edx, [ebp - 0xb4]
mov eax, 9
call fcn.0046ced4
pop ecx
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0x38]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov edx, 0x46e76c
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
push ebp
lea eax, [ebp - 0xb8]
mov ecx, dword [ebp - 0x38]
mov edx, 0x46e7c8
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0xb8]
xor edx, edx
call fcn.0046ce40
pop ecx
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [0x4bc5dc]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c2f8
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x4c]
add eax, 0x54
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x54], 0
jne 0x46d742
push 0
lea eax, [ebp - 0xc0]
push eax
mov ecx, 0x46e7f4
mov edx, dword [ebp - 0x38]
mov eax, 0x80000002
call fcn.0040660c
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x4c]
add eax, 0x54
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0xc8]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x54]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
call sub.rtl120.bpl__Sysutils_UpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x4c]
add eax, 0x54
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x54]
lea eax, [ebp - 0xcc]
mov edx, 0x46e824
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0xcc]
xor edx, edx
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x54]
call fcn.0046d184
test al, al
je 0x46d7bc
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax + 0x54]
mov eax, 0x46e848
call fcn.004067a4
dec eax
jne 0x46d7c6
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x93], 1
push ebp
mov eax, dword [ebp - 0x4c]
lea edx, [eax + 0x68]
mov eax, 0x1b
call fcn.0046cf5c
pop ecx
push ebp
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x68]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xd4]
call sub.rtl120.bpl__Sysutils_IntToStr_qqrj
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd0]
mov edx, 0x46e858
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0xd0]
xor edx, edx
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x68], 0
je 0x46d853
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 0x68]
test esi, 8
jne 0x46d849
test esi, 0x20
jne 0x46d849
test esi, 0x40
jne 0x46d849
test esi, 0x1000
jne 0x46d849
test esi, 0x2000
je 0x46d853
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x93], 1
push ebp
lea edx, [ebp - 0xdc]
mov eax, 0xc
call fcn.0046ced4
pop ecx
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x4c]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
lea eax, [ebp - 0xe0]
mov edx, 0x46e880
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0xe0]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
lea edx, [ebp - 0xe8]
xor eax, eax
call fcn.0046ced4
pop ecx
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x4c]
add eax, 4
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0xec]
mov edx, 0x46e8a0
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0xec]
xor edx, edx
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0
jne 0x46d914
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 4]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
lea edx, [ebp - 0xf4]
mov eax, 0xb
call fcn.0046ced4
pop ecx
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x4c]
add eax, 0x18
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x18]
lea eax, [ebp - 0xf8]
mov edx, 0x46e8c0
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0xf8]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
lea edx, [ebp - 0x100]
mov eax, 0xd
call fcn.0046ced4
pop ecx
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xfc]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x4c]
add eax, 0x50
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x50]
lea eax, [ebp - 0x104]
mov edx, 0x46e8e4
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x104]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
mov eax, dword [ebp - 0x4c]
lea edx, [eax + 0x64]
mov eax, 0x19
call fcn.0046cf5c
pop ecx
push ebp
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x64]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10c]
call sub.rtl120.bpl__Sysutils_IntToStr_qqrj
mov ecx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
mov edx, 0x46e90c
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x108]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
mov eax, dword [ebp - 0x4c]
lea edx, [eax + 0x6c]
mov eax, 0x1c
call fcn.0046cf5c
pop ecx
push ebp
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x6c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x114]
call sub.rtl120.bpl__Sysutils_IntToStr_qqrj
mov ecx, dword [ebp - 0x114]
lea eax, [ebp - 0x110]
mov edx, 0x46e934
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x110]
xor edx, edx
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x20]
mov dword [eax + 0x74], edi
push ebp
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x11c]
call sub.rtl120.bpl__Sysutils_IntToStr_qqrj
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov edx, 0x46e958
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x118]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
lea edx, [ebp - 0x68]
mov eax, 0x22
call fcn.0046cf5c
pop ecx
movzx eax, byte [ebp - 0x68]
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x7c], eax
push ebp
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x7c]
call sub.rtl120.bpl__Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x124]
lea eax, [ebp - 0x120]
mov edx, 0x46e980
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x120]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
lea ecx, [ebp - 0x12c]
mov dx, 0x2c
mov eax, 2
call fcn.0046cfd8
pop ecx
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x4c]
add eax, 0x5c
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x5c]
lea eax, [ebp - 0x130]
mov edx, 0x46e9a8
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x130]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
lea ecx, [ebp - 0x138]
mov dx, 0x2c
mov eax, 1
call fcn.0046cfd8
pop ecx
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x4c]
add eax, 0x60
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x60]
lea eax, [ebp - 0x13c]
mov edx, 0x46e9cc
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x13c]
xor edx, edx
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x60], 0
jne 0x46dbb9
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x93], 1
mov eax, dword [ebp - 0x4c]
add eax, 0x78
xor edx, edx
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax + 0x74]
lea eax, [ebp - 0x58]
xor ecx, ecx
call fcn.00466350
mov ebx, eax
test ebx, ebx
jne 0x46dc1f
cmp dword [ebp - 0x58], 0
jbe 0x46dc1f
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
call sub.rtl120.bpl__Sysutils_StrAlloc_qqrui
mov dword [ebp - 0x54], eax
push 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x74]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
call fcn.0046631c
mov ebx, eax
test ebx, ebx
jne 0x46dc17
mov eax, dword [ebp - 0x4c]
add eax, 0x78
mov edx, dword [ebp - 0x54]
call sub.rtl120.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov eax, dword [ebp - 0x54]
call sub.rtl120.bpl__Sysutils_StrDispose_qqrpb
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x78]
call sub.rtl120.bpl__Sysutils_UpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x140]
mov eax, 0x46e9f0
call fcn.004067a4
dec eax
jne 0x46dc4d
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x93], 1
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x78]
mov edx, 0x46ea08
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
je 0x46dc6b
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x91], 0
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x78]
lea eax, [ebp - 0x144]
mov edx, 0x46ea3c
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x144]
xor edx, edx
call fcn.0046ce40
pop ecx
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x78]
call fcn.0040933c
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x4c]
add eax, 0x99
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x74]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x5c]
call fcn.00466378
mov ebx, eax
cmp ebx, 0xd
setne al
mov edx, dword [ebp - 0x4c]
mov byte [edx + 0x80], al
push ebp
lea ecx, [ebp - 0x150]
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x80]
mov dl, 1
call sub.rtl120.bpl__Sysutils_BoolToStr_qqroo
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov edx, 0x46ea64
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x14c]
xor edx, edx
call fcn.0046ce40
pop ecx
push ebp
lea edx, [ebp - 0x64]
mov eax, 0xa
call fcn.0046cf5c
pop ecx
test al, al
jne 0x46dd3d
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x80], 0
jne 0x46dd3d
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x93], 1
mov eax, dword [ebp - 0x64]
and eax, 0x20
cmp eax, 0x20
jne 0x46dd52
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x8e], 1
push ebp
lea ecx, [ebp - 0x158]
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x8e]
mov dl, 1
call sub.rtl120.bpl__Sysutils_BoolToStr_qqroo
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov edx, 0x46ea8c
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x154]
xor edx, edx
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov dword [eax + 0x81], edx
test ebx, ebx
jne 0x46ddb8
mov eax, dword [ebp - 0x5c]
and eax, 0x400
cmp eax, 0x400
jne 0x46ddb8
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x60]
mov dword [eax + 0x81], edx
push ebp
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x81]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x160]
call sub.rtl120.bpl__Sysutils_IntToStr_qqrj
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 0x46eab4
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x15c]
xor edx, edx
call fcn.0046ce40
pop ecx
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [0x4bc628]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c2f8
mov ecx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x4c]
add eax, 0x70
mov edx, dword [ebp - 0x3c]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x70]
mov edx, dword [ebp - 0x3c]
call sub.rtl120.bpl__System__UStrEqual_qqrv
jne 0x46de71
push 0
lea eax, [ebp - 0x16c]
push eax
mov ecx, 0x46eadc
mov edx, dword [ebp - 0x38]
mov eax, 0x80000002
call fcn.0040660c
mov eax, dword [ebp - 0x16c]
lea edx, [ebp - 0x168]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov ecx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x4c]
add eax, 0x70
mov edx, dword [ebp - 0x3c]
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x70]
lea eax, [ebp - 0x170]
mov edx, 0x46eaf8
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x170]
xor edx, edx
call fcn.0046ce40
pop ecx
lea eax, [ebp - 0x174]
push eax
mov ecx, dword [0x4bc300]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c2f8
mov edx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x4c]
add eax, 0x20
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x20], 0
jne 0x46df05
push 0
lea eax, [ebp - 0x17c]
push eax
mov ecx, 0x46eb1c
mov edx, dword [ebp - 0x38]
mov eax, 0x80000002
call fcn.0040660c
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x4c]
add eax, 0x20
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x20]
lea eax, [ebp - 0x180]
mov edx, 0x46eb40
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x180]
xor edx, edx
call fcn.0046ce40
pop ecx
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [0x4bc2b8]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c2f8
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x4c]
add eax, 0x1c
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x1c], 0
jne 0x46df99
push 0
lea eax, [ebp - 0x18c]
push eax
mov ecx, 0x46eb6c
mov edx, dword [ebp - 0x38]
mov eax, 0x80000002
call fcn.0040660c
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x188]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x4c]
add eax, 0x1c
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x1c]
lea eax, [ebp - 0x190]
mov edx, 0x46eb94
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x190]
xor edx, edx
call fcn.0046ce40
pop ecx
lea eax, [ebp - 0x194]
push eax
mov ecx, dword [0x4bc360]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c2f8
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x4c]
add eax, 0x24
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x24], 0
jne 0x46e02d
push 0
lea eax, [ebp - 0x19c]
push eax
mov ecx, 0x46ebbc
mov edx, dword [ebp - 0x38]
mov eax, 0x80000002
call fcn.0040660c
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x4c]
add eax, 0x24
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x24]
lea eax, [ebp - 0x1a0]
mov edx, 0x46ebe4
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x1a0]
xor edx, edx
call fcn.0046ce40
pop ecx
mov ecx, dword [0x4bc5d0]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c368
mov eax, dword [ebp - 0x4c]
fstp qword [eax + 0x28]
wait
mov eax, dword [ebp - 0x4c]
fld qword [eax + 0x28]
fcomp dword [0x46ec00]
wait
fnstsw ax
sahf
jne 0x46e095
mov ecx, 0x46ec10
mov edx, dword [ebp - 0x38]
mov eax, 0x80000002
call fcn.0046d084
mov eax, dword [ebp - 0x4c]
fstp qword [eax + 0x28]
wait
push ebp
mov eax, dword [ebp - 0x4c]
fld qword [eax + 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x1a8]
call sub.rtl120.bpl__Sysutils_FloatToStr_qqrg
mov ecx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1a4]
mov edx, 0x46ec3c
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x1a4]
xor edx, edx
call fcn.0046ce40
pop ecx
mov ecx, dword [0x4bc3a0]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c4a8
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x85], eax
mov ecx, dword [0x4bc270]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c408
mov eax, dword [ebp - 0x4c]
fstp qword [eax + 0x3c]
wait
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x24], 0
jne 0x46e11f
mov eax, dword [ebp - 0x4c]
fld qword [eax + 0x28]
fcomp dword [0x46ec00]
wait
fnstsw ax
sahf
je 0x46e129
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x92], 1
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 8], 0
jne 0x46e142
mov eax, dword [ebp - 0x4c]
add eax, 8
mov edx, 0x46ec64
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x1ac]
mov edx, 0x46ecc0
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x1ac]
xor edx, edx
call fcn.0046ce40
pop ecx
xor eax, eax
push ebp
push 0x46e18d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
call sub.rtl120.bpl__Sysutils_StringToGUID_qqrx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e197
push ebp
lea edx, [ebp - 0x1b0]
lea eax, [ebp - 0x10]
call fcn.0046d130
pop ecx
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 0x4c]
add eax, 0x10
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push ebp
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x1b4]
mov edx, 0x46ece8
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x1b4]
xor edx, edx
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x10], 0
jne 0x46e1f7
mov eax, dword [ebp - 0x4c]
add eax, 0x10
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 0xc]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x14]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x74]
call fcn.00466288
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x80], 0
je 0x46e23f
xor edx, edx
xor eax, eax
call fcn.00407f6c
push eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x78]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov ecx, eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0046c6a4
mov edx, dword [ebp - 0x4c]
mov byte [edx + 0x8f], al
push ebp
lea ecx, [ebp - 0x1bc]
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x8f]
mov dl, 1
call sub.rtl120.bpl__Sysutils_BoolToStr_qqroo
mov ecx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b8]
mov edx, 0x46ed10
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x1b8]
xor edx, edx
call fcn.0046ce40
pop ecx
cmp byte [0x4b9e4c], 0
jne 0x46e396
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
mov edx, 0x46ed38
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
je 0x46e396
lea edx, [ebp - 0x1c0]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1c0]
push eax
lea edx, [ebp - 0x1c4]
mov eax, dword [0x4bc3e4]
mov eax, dword [eax]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1c4]
pop edx
call fcn.004067a4
dec eax
je 0x46e38f
lea edx, [ebp - 0x1c8]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1c8]
push eax
lea edx, [ebp - 0x1cc]
mov eax, dword [0x4bc3e4]
mov eax, dword [eax + 4]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1cc]
pop edx
call fcn.004067a4
dec eax
je 0x46e38f
lea edx, [ebp - 0x1d0]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1d0]
push eax
lea edx, [ebp - 0x1d4]
mov eax, dword [0x4bc3e4]
mov eax, dword [eax + 8]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1d4]
pop edx
call fcn.004067a4
dec eax
je 0x46e38f
lea edx, [ebp - 0x1d8]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1d8]
push eax
lea edx, [ebp - 0x1dc]
mov eax, dword [0x4bc3e4]
mov eax, dword [eax + 0xc]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1dc]
pop edx
call fcn.004067a4
dec eax
je 0x46e38f
xor eax, eax
jmp 0x46e391
mov al, 1
mov byte [0x4b9e4c], al
cmp byte [0x4b9e50], 0
jne 0x46e3f1
mov edx, 0x46ed38
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
je 0x46e3f1
lea edx, [ebp - 0x1e0]
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1e0]
push eax
lea edx, [ebp - 0x1e4]
mov eax, dword [0x4bc4a0]
mov eax, dword [eax]
call sub.rtl120.bpl__Sysutils_LowerCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1e4]
pop edx
call fcn.004067a4
dec eax
sete byte [0x4b9e50]
push ebp
lea edx, [ebp - 0x1e8]
mov eax, 4
call fcn.0046ced4
pop ecx
mov eax, dword [ebp - 0x1e8]
lea edx, [ebp - 0x40]
call sub.rtl120.bpl__Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x40]
call fcn.0046d274
test al, al
je 0x46e427
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x98], 1
mov edx, 0x46ed38
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
call sub.rtl120.bpl__Sysutils_SameText_qqrx20System_UnicodeStringt1
test al, al
je 0x46e451
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x80], 0
jne 0x46e451
mov eax, dword [ebp - 0x4c]
mov byte [eax + 0x93], 1
cmp byte [ebp + 8], 0
je 0x46e473
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x93], 0
je 0x46e473
mov edx, dword [0x407e48]
mov eax, dword [ebp - 0x4c]
call sub.rtl120.bpl__System__Dispose_qqrpvt1
jmp 0x46e483
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov edx, dword [ebp - 0x4c]
call fcn.0046ef80
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x18]
call fcn.00466204
test eax, eax
jne 0x46d525
push ebp
push 0x46ed54
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1f0]
call sub.rtl120.bpl__Sysutils_IntToStr_qqrj
push dword [ebp - 0x1f0]
push 0x46e614
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x1f4]
call sub.rtl120.bpl__Sysutils_SysErrorMessage_qqrui
push dword [ebp - 0x1f4]
lea eax, [ebp - 0x1ec]
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x1ec]
mov dl, 1
call fcn.0046ce40
pop ecx
mov eax, dword [ebp - 0x18]
call fcn.00466264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e522
call fcn.0046616c
push ebp
mov dl, 1
mov eax, 0x46ed84
call fcn.0046ce40
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e554
lea eax, [ebp - 0x1f4]
mov edx, 0x60
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x40]
mov edx, 3
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret