Function at 0x4577d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4577dc
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x457c99
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, dword [0x4080a0]
call sub.rtl160.bpl__System__DynArrayClear_qqrrpvpv
lea eax, [ebp - 8]
mov edx, dword [0x4080a0]
call sub.rtl160.bpl__System__DynArrayClear_qqrrpvpv
xor eax, eax
push ebp
push 0x457c2b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0043253c
lea edx, [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.00435dc4
movzx eax, byte [ebx + 0x14]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
push eax
lea edx, [ebp - 0x14]
mov esi, dword [ebx + 0x10]
mov eax, esi
call fcn.00446e00
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x34]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
movzx eax, byte [ebx + 8]
mov ecx, esi
mov edx, dword [ebx + 0xc]
call fcn.0045ed64
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov ecx, 0x457ca8
call sub.rtl160.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInte
mov eax, dword [ebp - 0x18]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp byte [ebx + 8], 2
jne 0x4578b4
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xd]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.004409cc
jmp 0x4578dd
mov byte [ebp - 0xd], 0
mov edx, 0x5355d8
mov eax, 0x5355d0
mov ecx, 0x48
call sub.rtl160.bpl__System_Move_qqrpxvpvi
call fcn.00432a64
mov dword [0x5355d0], eax
mov dword [0x5355d4], edx
cmp byte [ebp - 0xd], 0
jne 0x4578f6
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xd]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004409cc
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov ecx, 0x457ca8
call sub.rtl160.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInte
mov eax, dword [ebp - 0x1c]
mov dl, 2
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp byte [ebp - 0xd], 0
jne 0x457c21
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x314]
cmp al, 1
je 0x45796e
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x38]
test al, al
je 0x45796e
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x537004]
je 0x45794d
cmp byte [0x53559c], 0
je 0x45796e
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov ecx, 0x457ca8
call sub.rtl160.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInte
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, eax
mov al, 1
call fcn.00440f40
xor eax, eax
push ebp
push 0x457c1a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0xd], 0
jne 0x4579d1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x380]
test al, al
je 0x45799f
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x358]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x378]
test al, al
je 0x4579be
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x354]
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xd]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004409cc
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov ecx, 0x457ca8
call sub.rtl160.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInte
mov eax, dword [ebp - 0x2c]
mov dl, 3
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp byte [ebp - 0xd], 0
jne 0x457a04
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xd]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004409cc
cmp byte [ebp - 0xd], 0
je 0x457a1d
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
jne 0x457bc9
cmp byte [ebp - 0xd], 0
jne 0x457acc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
jne 0x457a4b
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
jne 0x457a4b
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
test al, al
je 0x457a5d
mov edx, 0x457538
mov cl, 1
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x368]
cmp byte [0x535538], 0
jne 0x457a79
cmp byte [0x5354f9], 0
je 0x457ac1
mov eax, dword [sym.imp.rtl160.bpl__System_IsConsole]
cmp byte [eax], 0
je 0x457ac1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x398]
cmp al, 4
je 0x457acc
cmp byte [0x535538], 0
jne 0x457a9e
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x3a8]
jmp 0x457acc
cmp dword [ebx + 0x24], 0
je 0x457acc
lea ecx, [ebp - 0x30]
mov dl, 1
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x354]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x24]
call sub.rtl160.bpl__System__LStrAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
jmp 0x457acc
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x3a8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
je 0x457b0e
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x398]
cmp al, 4
je 0x457b0e
cmp byte [0x535538], 0
jne 0x457b0e
cmp byte [0x5354f9], 0
je 0x457bb9
mov eax, dword [sym.imp.rtl160.bpl__System_IsConsole]
cmp byte [eax], 0
je 0x457bb9
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x58]
call fcn.00433a0c
test al, al
jne 0x457b3f
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
jne 0x457b67
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x50]
call fcn.00433a0c
test al, al
jne 0x457b67
mov byte [ebp - 0xe], 0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xe]
push eax
mov cl, 0xa
mov dl, 1
xor eax, eax
call fcn.004409cc
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.004576d8
call fcn.0044f4b8
jmp 0x457bb9
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x50]
call fcn.00433a0c
test al, al
je 0x457ba2
mov byte [ebp - 0xe], 0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xe]
push eax
mov cl, 9
mov dl, 1
xor eax, eax
call fcn.004409cc
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.004576d8
xor eax, eax
call fcn.0044f284
jmp 0x457bb9
mov byte [ebp - 0xe], 0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0xe]
push eax
mov cl, 8
mov dl, 1
xor eax, eax
call fcn.004409cc
cmp byte [ebp - 0xd], 0
jne 0x457bc9
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.004576d8
xor eax, eax
mov dword [0x535d04], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457c21
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x314]
cmp al, 1
je 0x457c19
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x38]
test al, al
je 0x457c19
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x537004]
je 0x457c10
cmp byte [0x53559c], 0
je 0x457c19
xor edx, edx
xor eax, eax
call fcn.00440f40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x457c35
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457ca0
lea eax, [ebp - 0x30]
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x2c]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x28]
call sub.rtl160.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x24]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x20]
mov edx, dword [0x4318c8]
mov ecx, 3
call sub.rtl160.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x14]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0xc]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 8]
mov edx, dword [0x4080a0]
mov ecx, 2
call sub.rtl160.bpl__System__FinalizeArray_qqrpvt1ui
ret