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

Disassembly:
push 0xffffffffffffffff
push 0x40977c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.004079b0
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x13c], 0
call fcn.00408cc2
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x148]
push edx
mov byte [esp + 0x13c], 1
mov bp, word [ecx]
lea ecx, [esp + 0x1c]
call fcn.00408cc2
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x140], 2
call fcn.00408cc2
push ebp
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x148], 3
call fcn.00408cc2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 2
call fcn.00407be0
test eax, eax
jne 0x405474
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x14c]
mov dword [esp + 0x1c], eax
push ebp
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00408cc2
lea ecx, [esp + 0x18]
call fcn.004079f0
xor ecx, ecx
mov edi, eax
mov dword [esp + 0x21], ecx
push edi
lea edx, [esp + 0x24]
mov dword [esp + 0x29], ecx
push 0x40d558
push edx
mov byte [esp + 0x2c], 0
mov byte [esp + 0x35], cl
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
test edi, edi
je 0x405331
lea eax, [esp + 0x20]
lea ecx, [esi + 0x220]
push eax
push 2
push ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0x15f90
jbe 0x405346
test edi, edi
je 0x405352
cmp edi, 0xffffffff
je 0x405355
cmp edi, 0x64
jae 0x405355
jmp 0x4052d6
or edi, 0xffffffff
lea ebp, [esi + 0x7b0]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x7e0]
push ebp
dec edx
mov dword [esi + 0x7e0], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0xffffffff
push 0x100
jne 0x40539e
lea ecx, [esp + 0x34]
push ecx
push 0x40d54c
push 0x40d390
call fcn.004086d0
add esp, 0x10
lea edx, [esp + 0x30]
push edx
jmp 0x4053ba
lea eax, [esp + 0x34]
push eax
push 0x40d53c
push 0x40d390
call fcn.004086d0
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
push 2
push ebx
lea ecx, [esi + 0x220]
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esi + 0x7e0]
test eax, eax
jne 0x405437
lea edx, [esp + 0x30]
push 0x100
push edx
push 0x40d530
push 0x40d390
call fcn.004086d0
add esp, 0x10
lea eax, [esp + 0x30]
mov ecx, esi
push eax
push 0x421
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov byte [esi + 0x790], 0
push 1
push 0x40d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0x3f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.004079e0
xor eax, eax
jmp 0x405573
lea edi, [esi + 0x7b0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esi + 0x7e0]
push edi
dec ebp
mov dword [esi + 0x7e0], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x30]
push 0x100
push ecx
push 0x40d54c
push 0x40d390
call fcn.004086d0
mov eax, dword [esp + 0x15c]
add esp, 0x10
lea edx, [esp + 0x30]
lea ecx, [esi + 0x220]
push edx
push 2
push eax
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esi + 0x7e0]
test eax, eax
jne 0x40553a
lea ecx, [esp + 0x30]
push 0x100
push ecx
push 0x40d530
push 0x40d390
call fcn.004086d0
add esp, 0x10
lea edx, [esp + 0x30]
mov ecx, esi
push edx
push 0x421
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov byte [esi + 0x790], 0
push 1
push 0x40d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0x3f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], 0xffffffff
call fcn.004079e0
or eax, 0xffffffff
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret 0x10