Function at 0x501d9dbc
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAddRef_qqrpv
lea esi, [ebp - 0x1c]
xor eax, eax
push ebp
push 0x501da076
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax + 0x268], 1
xor edx, edx
push ebp
push 0x501da059
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Controls_TControl_SetText_qqrx20System_UnicodeString
add dword [esi + 0xc], 4
mov edx, esi
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Controls_TControl_UpdateBoundsRect_qqrrx11Types_TRect
lea ecx, [ebp - 0x24]
mov edx, dword [esi + 4]
mov eax, dword [esi]
call sub.rtl120.bpl__Types_Point_qqrii
lea edx, [ebp - 0x24]
mov eax, dword [sym.vcl120.bpl__Forms_Screen]
mov eax, dword [eax]
xor ecx, ecx
call sym.vcl120.bpl__Forms_TScreen_MonitorFromPoint_qqrrx12Types_TPoint23Forms_TMonitorDefaultTo
mov ebx, eax
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetWidth_qqrv
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x48]
jge 0x501d9e5e
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetWidth_qqrv
mov edx, eax
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Controls_TControl_SetWidth_qqri
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetHeight_qqrv
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x4c]
jge 0x501d9e7e
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetHeight_qqrv
mov edx, eax
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Controls_TControl_SetHeight_qqri
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetTop_qqrv
mov edi, eax
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetHeight_qqrv
add edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
add eax, dword [esi + 4]
cmp edi, eax
jge 0x501d9eb8
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetTop_qqrv
mov edi, eax
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetHeight_qqrv
add edi, eax
mov eax, dword [ebp - 8]
sub edi, dword [eax + 0x4c]
mov dword [esi + 4], edi
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetLeft_qqrv
mov edi, eax
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetWidth_qqrv
add edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
add eax, dword [esi]
cmp edi, eax
jge 0x501d9ef0
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetLeft_qqrv
mov edi, eax
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetWidth_qqrv
add edi, eax
mov eax, dword [ebp - 8]
sub edi, dword [eax + 0x48]
mov dword [esi], edi
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetLeft_qqrv
cmp eax, dword [esi]
jle 0x501d9f04
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetLeft_qqrv
mov dword [esi], eax
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetTop_qqrv
cmp eax, dword [esi + 0xc]
jle 0x501d9f1a
mov eax, ebx
call sym.vcl120.bpl__Forms_TMonitor_GetTop_qqrv
mov dword [esi + 4], eax
mov eax, dword [sym.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
mov edx, dword [eax + 0x170]
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Controls_TWinControl_SetParentWindow_qqrp6HWND__
push 0x10
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_SetWindowPos
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 8]
sub eax, dword [edx + 0x26c]
cmp eax, 0xfa
jbe 0x501d9f99
mov eax, dword [ebp - 4]
test eax, eax
je 0x501d9f88
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x501d9f88
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__InternalUStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
test eax, eax
je 0x501d9f91
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
setl al
jmp 0x501d9f9b
xor eax, eax
test al, al
je 0x501da018
cmp dword [sym.vcl120.bpl__Controls_AnimateWindowProc], 0
je 0x501da018
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1016
call sub.user32.dll_SystemParametersInfoW
cmp dword [ebp - 0xc], 0
je 0x501da018
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1018
call sub.user32.dll_SystemParametersInfoW
cmp dword [ebp - 0xc], 0
je 0x501d9fdc
mov bl, 2
jmp 0x501d9ff7
lea edx, [ebp - 0x24]
mov eax, dword [sym.vcl120.bpl__Controls_Mouse]
call sym.vcl120.bpl__Controls_TMouse_GetCursorPos_qqrv
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 4]
jle 0x501d9ff5
xor ebx, ebx
jmp 0x501d9ff7
mov bl, 1
movzx eax, bl
mov eax, dword [eax*4 + 0x50243764]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call dword [sym.vcl120.bpl__Controls_AnimateWindowProc]
push 4
mov eax, dword [ebp - 8]
call sym.vcl120.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501da060
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 8]
mov dword [edx + 0x26c], eax
mov eax, dword [ebp - 8]
mov byte [eax + 0x268], 0
ret