Function at 0x495740
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call fcn.00401530
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00481f30
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
neg eax
push eax
mov eax, dword [ebp - 0x14]
neg eax
push eax
call fcn.00485690
cmp dword [ebx + 0xe78], 0
jne 0x4957c3
push dword [ebp - 0x1c]
lea eax, [ebx + 0xe24]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4957c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048f140
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
push 4
push ebx
call fcn.004827b0
push 1
push ebx
call fcn.00482150
push 0
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x58], 0xb
mov dword [ebp - 0x54], 0x494c60
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7f00
push 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x40], eax
mov eax, dword [str.DUCOMBOXLISTBOXWND]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0xc38]
call dword [sym.imp.USER32.dll_ClientToScreen]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [ebx + 0x109c]
sub ecx, dword [ebx + 0x1098]
mov edi, dword [ebx + 0x1088]
mov dword [ebp - 0x24], eax
test ecx, 0xfffffffc
je 0x49590f
push dword [ebx + 0xc38]
call fcn.00486050
test eax, eax
je 0x49590f
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x49590f
lea eax, [ebx + 0xe88]
push eax
call fcn.00484880
test eax, eax
je 0x49590f
push str.listbox
mov ecx, eax
call fcn.004ae0c0
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x49590f
push str.itemheight
push esi
call fcn.00486750
push 0x535a2c
push esi
mov edi, eax
call fcn.00486750
push str.bottom
push dword [ebp - 0x18]
mov esi, eax
call fcn.00486750
mov ecx, dword [ebx + 0x109c]
add esp, 0x18
sub ecx, dword [ebx + 0x1098]
sar ecx, 2
imul ecx, edi
mov edi, ecx
mov dword [ebp - 0x18], ecx
add edi, eax
mov eax, dword [ebx + 0x1088]
add edi, esi
cmp edi, eax
cmovg edi, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x3e9
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push edi
call fcn.00485740
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0x40000000
push 0x554938
push dword [0x56f034]
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x1090], eax
test eax, eax
je 0x495b79
cmp edi, 6
jg 0x495971
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
jmp 0x495a0c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x24], eax
xor esi, esi
mov eax, 0x66666667
mov dword [ebp - 0x18], esi
imul edi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
inc ecx
add ecx, edx
mov dword [ebp - 0x28], ecx
lea eax, [ecx + esi]
mov ecx, edi
cmp eax, edi
cmovl ecx, eax
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea ecx, [ebp - 0x14]
sub esi, dword [ebp - 0x24]
call fcn.00485740
mov ecx, dword [ebx + 0x1090]
push 0x52
cmp esi, 0xc8
ja 0x495a03
mov esi, dword [ebp - 0x60]
push esi
push eax
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x102
push 0
push 0
push dword [ebx + 0x1090]
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 6
jl 0x495993
jmp 0x495a12
push edi
push eax
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebx + 0xc38]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x40000000
je 0x495a45
nop word [eax + eax]
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x40000000
jne 0x495a30
mov edi, dword [ebx + 0x1090]
lea eax, [ebp - 0x48]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x495b3e
mov eax, dword [ebx]
push ebx
call dword [eax + 0x210]
test eax, eax
jne 0x495b3e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
jne 0x495b3e
mov eax, dword [ebp - 0x44]
cmp eax, 0x107
ja 0x495aaf
cmp eax, 0x100
jae 0x495af8
cmp eax, 0xa0
je 0x495af8
jbe 0x495afb
cmp eax, 0xa9
ja 0x495afb
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x495b54
cmp eax, 0x200
jb 0x495afb
cmp eax, 0x209
jbe 0x495ac6
cmp eax, 0x20a
jne 0x495afb
jmp 0x495af8
mov ecx, dword [ebp - 0x3c]
movsx eax, cx
mov dword [ebp - 0x2c], eax
shr ecx, 0x10
movsx eax, cx
push 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_MapWindowPoints]
movzx ecx, word [ebp - 0x28]
movzx eax, word [ebp - 0x2c]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x210]
test eax, eax
jne 0x495b3e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
jne 0x495b3e
push 0
push 0
push 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x495a63
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x44], 0x12
jne 0x495b54
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebx]
push 0
push ebx
call dword [eax + 0x214]
push 1
push ebx
mov dword [ebx + 0x1090], 0
call fcn.004827b0
push 1
push ebx
call fcn.00482150
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret 0xc