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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x6284]
push ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x57f4]
cmp eax, 4
ja case.default.0x41408e
jmp dword [eax*4 + 0x414350]
mov edi, dword [ebp + 8]
add edi, 0x130
call fcn.00415160
jmp 0x414151
cmp dword [esi + 0x585c], 0
jne 0x4140b8
mov ecx, esi
call fcn.0047aa40
mov edi, dword [ebp + 8]
add edi, 0x15c
call fcn.00415160
jmp 0x414151
cmp dword [esi + 0x1444], 1
jne 0x4140db
mov ecx, esi
call fcn.00466210
cmp dword [esi + 0x585c], 0
jne 0x414136
mov eax, 2
cmp dword [esi + 0x5878], eax
je 0x414118
mov dword [esi + 0x5878], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x2710
push ebx
mov dword [esi + 0x587c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.0047ad70
mov ecx, esi
call fcn.0047aa40
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
mov edi, esi
call fcn.00414bf0
mov edi, ebx
add edi, 0x188
call fcn.00415160
mov ebx, dword [esp + 0xc]
cmp dword [esi + 0x57f4], 0
je 0x4141f1
mov eax, dword [ebp + 8]
push eax
mov edi, esi
call fcn.00414ac0
test al, al
je 0x4141f1
cmp dword [esi + 0x5858], 0
jne 0x4141f1
mov edx, dword [esi + 0x582c]
mov ecx, 0x802
push 6
lea eax, [esp + 0x10]
mov word [esp + 0x10], cx
mov ecx, dword [0x587968]
push eax
mov dword [esp + 0x16], edx
call fcn.004ed2d0
cmp dword [esi + 0x5880], 1
je 0x4141f1
mov edx, dword [esi + 0x582c]
mov eax, dword [esi + 0x5800]
mov ecx, 0x302
mov word [esp + 0x14], cx
mov ecx, dword [esi + 0x5804]
mov dword [esp + 0x1e], ecx
push 0x13
lea ecx, [esp + 0x18]
mov dword [esp + 0x1a], edx
mov dl, byte [esi + 0x18]
mov dword [esp + 0x1e], eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [0x587970]
mov byte [esp + 0x2a], dl
mov dword [esp + 0x2b], eax
call fcn.004ed210
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.00455280
mov edi, esi
mov esi, dword [0x587964]
call fcn.00411600
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x1444], 1
jne 0x414225
mov ecx, esi
call fcn.00466210
lea ecx, [esi + 0x1818]
call fcn.004d3200
cmp dword [esi + 0x585c], 0
je 0x4140e4
mov ebx, dword [ebp + 8]
mov edi, esi
call fcn.00414bf0
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x41414d
lea edi, [eax + 0x38]
jmp 0x414148
cmp dword [esi + 0x1444], 1
jne 0x41426d
mov ecx, esi
call fcn.00466210
cmp dword [esi + 0x585c], 0
jne 0x4142c0
cmp dword [esi + 0x5878], 0
jne 0x414118
mov dword [esi + 0x5878], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x2710
mov edi, esi
mov dword [esi + 0x587c], eax
call fcn.00456610
lea ecx, [esi + 0x1634]
call fcn.00487030
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
mov edi, esi
call fcn.00414bf0
mov edi, dword [esi + 0xe0]
mov ebx, dword [esp + 0xc]
test edi, edi
je 0x414151
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add edi, 0x18c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x414309
push eax
mov eax, esi
call fcn.0041c980
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x414151
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x57f4]
mov ecx, dword [0x587970]
lea edx, [esi + 0x184]
push edx
push eax
add ecx, 0xe0
push str.LeaveUser___not_where______s
push ecx
call fcn.004efdc0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4