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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b2285
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x58bc58], 0
je 0x4b226a
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0x66]
mov dword [ebp - 0x10], eax
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0x68]
mov dword [ebp - 0xc], eax
cmp byte [0x5a5948], 1
jne 0x4b20de
mov eax, dword [0x58bc58]
cmp byte [eax + 0x16], 2
jne 0x4b20de
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, dword [0x5a58d1]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4b2053
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4b20de
jmp 0x4b205b
pop edx
pop eax
jl 0x4b20de
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x58d5f8]
imul edx, dword [0x5a58d5], 0x3e8
cmp eax, edx
jbe 0x4b20de
mov eax, dword [0x58d5f4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4b20de
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov eax, dword [0x58d5f4]
call fcn.00418724
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp word [eax + 8], 2
jne 0x4b20d6
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0xa]
push eax
push 2
push 0
mov eax, dword [0x58bc58]
movzx ecx, word [eax + 8]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.004b61fc
call sub.kernel32.dll_GetTickCount_1
mov dword [0x58d5f8], eax
jmp 0x4b20de
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x4b208c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x5a5162], 0
je 0x4b2180
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
imul eax, dword [ebp - 8], 0x2b
mov eax, dword [eax + 0x5a5189]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4b2114
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4b2180
jmp 0x4b2118
pop edx
pop eax
jl 0x4b2180
imul eax, dword [ebp - 8], 0x2b
cmp dword [eax + 0x5a518d], 2
jae 0x4b2133
imul eax, dword [ebp - 8], 0x2b
mov dword [eax + 0x5a518d], 2
call sub.kernel32.dll_GetTickCount_1
imul edx, dword [ebp - 8], 0x2b
sub eax, dword [edx + 0x5a5191]
imul edx, dword [ebp - 8], 0x2b
imul edx, dword [edx + 0x5a518d], 0x3e8
cmp eax, edx
jbe 0x4b2180
lea eax, [ebp - 0x1c]
imul edx, dword [ebp - 8], 0x2b
add edx, 0x5a516a
call fcn.004048e8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004b1e34
call sub.kernel32.dll_GetTickCount_1
imul edx, dword [ebp - 8], 0x2b
mov dword [edx + 0x5a5191], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 5
jne 0x4b20e3
mov dword [ebp - 8], 5
mov eax, dword [ebp - 8]
cmp byte [eax + 0x5a5162], 0
je 0x4b2212
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
imul eax, dword [ebp - 8], 0x2b
mov eax, dword [eax + 0x5a5189]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4b21c1
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4b2212
jmp 0x4b21c5
pop edx
pop eax
jl 0x4b2212
call sub.kernel32.dll_GetTickCount_1
imul edx, dword [ebp - 8], 0x2b
sub eax, dword [edx + 0x5a5191]
imul edx, dword [ebp - 8], 0x2b
imul edx, dword [edx + 0x5a518d], 0x3e8
cmp eax, edx
jbe 0x4b2212
lea eax, [ebp - 0x20]
imul edx, dword [ebp - 8], 0x2b
add edx, 0x5a516a
call fcn.004048e8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004b1e34
call sub.kernel32.dll_GetTickCount_1
imul edx, dword [ebp - 8], 0x2b
mov dword [edx + 0x5a5191], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 7
jne 0x4b2194
cmp byte [0x5a5169], 0
je 0x4b226a
cmp byte [0x5a53ff], 1
jae 0x4b2238
mov byte [0x5a53ff], 2
movzx eax, word [0x58bce0]
xor edx, edx
mov dl, byte [0x5a53ff]
inc edx
imul edx, edx, 0x3e8
cmp eax, edx
ja 0x4b226a
lea eax, [ebp - 0x24]
mov edx, 0x5a54a4
call fcn.004048e8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004b1e34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b228c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004046a8
ret