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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov byte [ebp - 5], cl
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov word [eax + 0x4ac], 0
mov eax, dword [ebp + 0xc]
mov dword [0x58d978], eax
mov eax, dword [ebp + 8]
mov dword [0x58d97c], eax
mov byte [0x58d9b5], 0
cmp byte [ebp - 5], 1
sete al
and al, byte [0x58d850]
je 0x4b327a
mov eax, dword [0x532f8c]
mov eax, dword [eax]
call fcn.004e2568
jmp 0x4b3972
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov cl, byte [ebp + 0x10]
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.00490964
test al, al
jne 0x4b3972
cmp dword [0x58bc58], 0
je 0x4b3972
mov eax, dword [0x58bbe0]
mov eax, dword [eax + 0x28]
cmp eax, dword [0x58bbf0]
jne 0x4b3972
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x47c]
call fcn.00430198
mov eax, dword [ebp - 4]
call fcn.004c5004
test byte [ebp + 0x10], 0x10
je 0x4b3482
mov al, byte [0x4b3978]
cmp al, byte [ebp + 0x10]
jne 0x4b32f1
inc dword [0x58da00]
mov eax, dword [0x58da00]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x58bbf0]
call fcn.004c9770
mov dword [ebp - 0x20], eax
mov eax, dword [0x58da00]
cmp eax, dword [ebp - 0x1c]
je 0x4b3321
xor eax, eax
mov dword [0x58da00], eax
cmp dword [0x58d998], 0
je 0x4b333c
mov eax, dword [0x58d998]
cmp byte [eax + 0x12], 0
je 0x4b333c
xor eax, eax
mov dword [0x58d998], eax
cmp dword [ebp - 0x20], 0
je 0x4b339d
test byte [ebp + 0x10], 4
je 0x4b33a4
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x58d84c]
cmp eax, 0x3e8
jbe 0x4b33a4
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0
jne 0x4b33a4
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x30], 0
jne 0x4b33a4
mov byte [0x58da8c], 1
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 8]
push eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 0xa]
push eax
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, 0x52
mov eax, dword [ebp - 4]
call fcn.004b5440
jmp 0x4b3972
xor eax, eax
mov dword [0x58da00], eax
push 0x58d970
push 0x58d974
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x58bbf0]
call fcn.004c951c
mov eax, dword [0x58bc58]
movzx eax, word [eax + 8]
sub eax, dword [0x58d970]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x4b3462
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0xa]
sub eax, dword [0x58d974]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x4b3462
mov eax, dword [0x58d974]
push eax
mov eax, dword [0x58bc58]
movzx edx, word [eax + 0xa]
mov eax, dword [0x58bc58]
movzx eax, word [eax + 8]
mov ecx, dword [0x58d970]
call fcn.00511df0
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b7af0
test al, al
je 0x4b3482
mov eax, dword [ebp - 4]
call fcn.004b7a94
test al, al
je 0x4b3482
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x58bc58]
movzx ecx, word [eax + 8]
mov dx, 0xbc2
mov eax, dword [0x58bc58]
call fcn.0050694c
jmp 0x4b3482
mov byte [0x58d9c8], 1
mov eax, dword [0x58d970]
mov dword [0x58d980], eax
mov eax, dword [0x58d974]
mov dword [0x58d98c], eax
jmp 0x4b3972
test byte [ebp + 0x10], 8
je 0x4b3972
mov eax, dword [0x58da00]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x58bbf0]
call fcn.004c9770
mov dword [ebp - 0x20], eax
push 0x58d970
push 0x58d974
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x58bbf0]
call fcn.004c951c
xor eax, eax
mov dword [0x58d998], eax
cmp byte [0x58bca0], 0
je 0x4b35b4
cmp dword [ebp - 0x20], 0
jne 0x4b35b4
cmp byte [0x58bcb0], 0x13
jne 0x4b35b4
mov eax, dword [0x58d974]
push eax
mov eax, dword [0x58bc58]
movzx edx, word [eax + 0xa]
mov eax, dword [0x58bc58]
movzx eax, word [eax + 8]
mov ecx, dword [0x58d970]
call fcn.00511df0
and eax, 0xff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x58bc58]
movzx edx, word [eax + 0xa]
mov eax, dword [0x58bc58]
movzx eax, word [eax + 8]
mov ecx, dword [ebp - 0xc]
call fcn.00512118
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x58bc50]
call fcn.00510384
test al, al
je 0x4b3557
test byte [ebp + 0x10], 1
je 0x4b35b4
mov eax, dword [ebp - 4]
call fcn.004b7b4c
test al, al
je 0x4b35a8
mov eax, dword [ebp - 4]
call fcn.004b7a94
test al, al
je 0x4b35a8
mov eax, dword [ebp - 4]
call fcn.004b7bbc
test al, al
je 0x4b35a8
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x58bc58]
movzx ecx, word [eax + 8]
mov dx, 0xbc7
mov eax, dword [0x58bc58]
call fcn.0050694c
mov byte [0x58d9b5], 1
jmp 0x4b3972
test byte [ebp + 0x10], 2
je 0x4b36c4
mov eax, dword [0x58d974]
push eax
mov eax, dword [0x58bc58]
movzx edx, word [eax + 0xa]
mov eax, dword [0x58bc58]
movzx eax, word [eax + 8]
mov ecx, dword [0x58d970]
call fcn.00511df0
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b7af0
test al, al
je 0x4b36b5
mov eax, dword [ebp - 4]
call fcn.004b7a94
test al, al
je 0x4b36b5
mov eax, dword [0x58bc58]
cmp byte [eax + 0x22], 0
jne 0x4b36b5
mov ecx, dword [0x58d974]
mov edx, dword [0x58d970]
mov eax, dword [0x58bbf0]
call fcn.004ca874
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4b3688
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
push eax
mov ecx, dword [0x58d974]
mov edx, dword [0x58d970]
mov eax, dword [ebp - 4]
call fcn.004b6658
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x58bc58]
movzx ecx, word [eax + 8]
mov dx, 0xbc4
mov eax, dword [0x58bc58]
call fcn.0050694c
jmp 0x4b3972
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x58bc58]
movzx ecx, word [eax + 8]
mov dx, 0xbc4
mov eax, dword [0x58bc58]
call fcn.0050694c
mov dword [0x58d980], 0xffffffff
jmp 0x4b3972
cmp dword [ebp - 0x20], 0
jne 0x4b36d4
test byte [ebp + 0x10], 1
je 0x4b38c7
mov dword [0x58d980], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x4b37a4
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x58d84c]
cmp eax, 0x1f4
jbe 0x4b3721
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0x32
jne 0x4b3721
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, 0x3f2
mov eax, dword [ebp - 4]
call fcn.004b5440
jmp 0x4b3972
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x30], 0
jne 0x4b3972
mov eax, dword [ebp - 0x20]
mov dword [0x58d998], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0
je 0x4b3765
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0
je 0x4b3765
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0x32
je 0x4b3765
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x44]
mov eax, 0x4b3984
call fcn.00404c88
test eax, eax
je 0x4b378a
test byte [ebp + 0x10], 1
jne 0x4b378a
cmp byte [0x5a514d], 1
jne 0x4b377d
cmp byte [0x591926], 0
ja 0x4b378a
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x4c], 0x45
jne 0x4b3972
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004b2e2c
call sub.kernel32.dll_GetTickCount_1
mov dword [0x58d944], eax
jmp 0x4b3972
mov eax, dword [0x58d974]
push eax
mov eax, dword [0x58bc58]
movzx edx, word [eax + 0xa]
mov eax, dword [0x58bc58]
movzx eax, word [eax + 8]
mov ecx, dword [0x58d970]
call fcn.00511df0
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b7b4c
test al, al
je 0x4b38b8
mov eax, dword [ebp - 4]
call fcn.004b7a94
test al, al
je 0x4b38b8
mov eax, dword [ebp - 4]
call fcn.004b7bbc
test al, al
je 0x4b38b8
mov eax, 3
call fcn.00403198
add eax, 0xbc6
mov dword [ebp - 0x18], eax
cmp byte [0x58da89], 0
je 0x4b3830
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b2908
test al, al
je 0x4b3830
mov dword [ebp - 0x18], 0xbcb
cmp byte [0x58da8a], 0
je 0x4b385b
mov eax, dword [0x58bc58]
cmp word [eax + 0x68], 3
jb 0x4b385b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b29d0
test al, al
je 0x4b385b
mov dword [ebp - 0x18], 0xbd0
cmp byte [0x58da8d], 0
je 0x4b386b
mov dword [ebp - 0x18], 0xbd2
cmp byte [0x58da8e], 0
je 0x4b387b
mov dword [ebp - 0x18], 0xbd5
cmp byte [0x58da8f], 0
je 0x4b388b
mov dword [ebp - 0x18], 0xbd4
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x58bc58]
movzx ecx, word [eax + 8]
mov dx, word [ebp - 0x18]
mov eax, dword [0x58bc58]
call fcn.0050694c
call sub.kernel32.dll_GetTickCount_1
mov dword [0x58d848], eax
jmp 0x4b3972
mov eax, dword [0x58bc58]
movzx eax, word [eax + 8]
cmp eax, dword [0x58d970]
jne 0x4b3936
mov eax, dword [0x58bc58]
movzx eax, word [eax + 0xa]
cmp eax, dword [0x58d974]
jne 0x4b3936
mov eax, dword [0x58d974]
push eax
mov eax, dword [0x58bc58]
movzx edx, word [eax + 0xa]
mov eax, dword [0x58bc58]
movzx eax, word [eax + 8]
mov ecx, dword [0x58d970]
call fcn.00511df0
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b7af0
test al, al
je 0x4b3972
mov eax, dword [ebp - 4]
call fcn.004b7a94
test al, al
je 0x4b3972
mov eax, dword [ebp - 4]
call fcn.004b63c4
jmp 0x4b3972
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x58d848]
cmp eax, 0x3e8
jbe 0x4b3972
test byte [ebp + 0x10], 4
je 0x4b3957
mov byte [0x58d9c8], 1
jmp 0x4b395e
mov byte [0x58d9c8], 0
mov eax, dword [0x58d970]
mov dword [0x58d980], eax
mov eax, dword [0x58d974]
mov dword [0x58d98c], eax
mov esp, ebp
pop ebp
ret 0xc