Function at 0x40b4a0
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, eax
mov dword [esp + 0x18], ebx
cmp byte [edi + 0x30], bl
je 0x40b718
cmp byte [edi + 0x31], bl
jne 0x40b718
cmp byte [edi + 0x32], bl
jne 0x40b4e2
push ebx
call fcn.0041c5e8
add esp, 4
push edx
push eax
push str._d_tIn_condition_show._n
push 0x1a
call fcn.004c8fc0
add esp, 0x10
jmp 0x40b506
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x40]
push eax
mov eax, dword [edi + 0x38]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.004c2c30
cmp eax, ebx
je 0x40b6ea
mov edx, dword [edi + 0x4c]
push edx
push 0x406970
call dword [sym.imp.USER32.dll_EnumWindows]
push str.In_condition__show.
push 7
mov dword [0x5164c0], ebx
call fcn.004ce850
mov eax, dword [edi + 0x4c]
add esp, 8
push 0x90a
push eax
mov byte [edi + 0x31], 1
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [0x51947d], bl
jne 0x40b54b
push edi
call fcn.0040c7e0
mov ecx, dword [edi + 0x4c]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x32
push 0x90b
push ecx
call esi
push ebx
call fcn.0041c5e8
add esp, 4
push edx
push eax
push str._d_tPrepare_to_show__center_screen._n
push 0x1a
call fcn.004c8fc0
mov edx, dword [edi + 0x4c]
add esp, 0x10
push ebx
push 0x32
push 0x90c
push edx
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x70]
mov dword [0x519484], eax
mov eax, dword [edi + 0x6c]
lea esi, [edi + 0x7c]
push esi
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], ecx
call fcn.004c49a0
add esp, 4
test al, al
jne 0x40b5c2
push esi
call fcn.004c4940
add esp, 4
test al, al
jne 0x40b5c2
mov ecx, edi
call fcn.0040abe0
mov esi, dword [edi + 0x4c]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push esi
call ebp
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
and eax, 0xf7ffffff
push eax
push 0xffffffffffffffec
push esi
call ebx
mov edx, dword [edi + 0x4c]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0xe70]
mov esi, dword [eax + 0x220]
test esi, esi
je 0x40b613
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b613
push str._startAutoTurn___
push esi
call fcn.004c2d20
mov eax, dword [edi + 0xe6c]
test eax, eax
je 0x40b629
mov ecx, dword [eax + 0x20]
push 4
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 0xe80], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [edi + 0x4c]
push 0
push 0
push edx
mov dword [edi + 0xe4c], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.0040acb0
push 0
call fcn.0041c5e8
add esp, 4
push edx
push eax
push str._d_tShow_finish._n
push 0x1a
call fcn.004c8fc0
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
add esp, 0x10
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x2000
mov dword [esp + 0x24], 0xffffffff
call esi
cmp dword [esp + 0x14], 0
je 0x40b69c
push 3
push 0
push 0
push 0x2001
call esi
push str.Set_self_foreground.
push 7
call fcn.004ce850
add esp, 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [edi + 0x4c]
push ecx
mov dword [edi + 0x58], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [edi + 0x4c]
push 0xffffffffffffffec
push edi
call ebp
and eax, 0xfffffff7
push eax
push 0xffffffffffffffec
push edi
call ebx
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x18], ebx
je 0x40b718
cmp byte [edi + 0x32], bl
je 0x40b718
push 0x4fc084
push 0xa
call fcn.004ce840
mov edx, dword [edi + 0x4c]
add esp, 8
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
mov dword [edi + 0x4c], ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret