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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov ecx, 7
lea eax, [ebp - 0x24]
mov edx, dword [0x40107c]
call fcn.00404378
xor eax, eax
push ebp
push 0x4b58bb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4bb6d0], 0
je 0x4b50b3
xor eax, eax
call fcn.0049c094
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x4b580f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x4bb6e0], 0
je 0x4b50da
mov dl, 1
mov eax, dword [0x4bb6e0]
call fcn.00478424
cmp byte [0x4bb6ce], 0
je 0x4b5147
xor eax, eax
push ebp
push 0x4b511a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bb6d4], 0
jne 0x4b5106
mov eax, 0x4b58d4
call fcn.00478dd0
jmp 0x4b5110
mov eax, dword [0x4bb6d4]
call fcn.00478f88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5147
mov eax, 0x4b5910
call fcn.00478ff0
lea eax, [ebp - 0x28]
mov ecx, dword [0x4bb6b8]
mov edx, 0x4b5940
call fcn.00403d84
mov eax, dword [ebp - 0x28]
call fcn.00478ff0
lea eax, [ebp - 0x2c]
mov ecx, dword [0x4bb6bc]
mov edx, 0x4b5964
call fcn.00403d84
mov eax, dword [ebp - 0x2c]
call fcn.00478ff0
lea eax, [ebp - 0x34]
call fcn.0044e2dc
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x4b597c
call fcn.00403d84
mov eax, dword [ebp - 0x30]
call fcn.00478ff0
call fcn.0049c140
xor eax, eax
call fcn.004b4a68
mov dword [0x4bb6c4], eax
mov dl, 1
mov eax, dword [0x4b3fa4]
call fcn.0047b22c
mov dword [0x4b957c], eax
mov ecx, dword [0x4bb6bc]
mov edx, dword [0x4bb6c4]
mov eax, dword [0x4b957c]
call fcn.0047d54c
lea ecx, [ebp - 0x38]
mov eax, dword [0x4b957c]
mov edx, dword [eax + 0x18]
mov al, 0xab
call fcn.004737e0
mov edx, dword [ebp - 0x38]
mov eax, 0x4bb6c8
call fcn.00403b0c
mov eax, dword [0x4b957c]
test byte [eax + 0x1d], 0x20
je 0x4b5242
mov eax, dword [0x4b9680]
cmp byte [eax], 0
jne 0x4b5242
push 1
push 1
mov eax, dword [0x4bb6c8]
call fcn.00403efc
push eax
mov eax, dword [0x4b995c]
mov eax, dword [eax + 0x2cc]
call fcn.00403efc
mov ecx, 0x30
pop edx
call fcn.0049c83c
call fcn.0040c3d8
mov eax, dword [0x4b957c]
test byte [eax + 0x1d], 1
je 0x4b5285
call fcn.0044f188
test al, al
jne 0x4b5285
push 1
push 1
mov eax, dword [0x4bb6c8]
call fcn.00403efc
push eax
mov eax, dword [0x4b995c]
mov eax, dword [eax + 0x1bc]
call fcn.00403efc
mov ecx, 0x30
pop edx
call fcn.0049c83c
call fcn.0040c3d8
mov eax, 0x4bb6c4
call fcn.0040d774
mov al, 2
call fcn.004b4a68
mov dword [0x4bb6c4], eax
lea eax, [ebp - 0x24]
push eax
push 6
mov ecx, 0x5020300
mov dx, 0x20
mov eax, dword [0x4b957c]
call fcn.0047b6a4
test al, al
jne 0x4b52c2
mov eax, 0x4b59a0
call fcn.00475000
cmp dword [0x4bb6e0], 0
je 0x4b52db
lea eax, [ebp - 0x24]
mov edx, dword [0x4b9880]
mov edx, dword [edx]
call fcn.00403b50
mov eax, dword [ebp - 0x20]
call fcn.00403d38
cmp eax, 0x20
je 0x4b52f2
mov eax, 0x4b59f0
call fcn.00475000
mov edx, 0x4bb6e8
mov eax, dword [ebp - 0x20]
mov ecx, 0x20
call fcn.00402834
mov eax, dword [0x4b9654]
mov dword [eax], 0x4bb6e8
mov eax, dword [0x4b957c]
cmp byte [eax + 0x10], 0
je 0x4b5337
mov eax, dword [0x4b9680]
cmp byte [eax], 0
jne 0x4b532e
mov eax, 0x4b5a18
call fcn.00475000
mov al, 1
call fcn.0049cca8
jmp 0x4b533e
xor eax, eax
call fcn.0049cca8
call fcn.0049a9bc
cmp dword [ebp - 0x24], 0
je 0x4b543e
call fcn.0049a54c
call fcn.0049acd4
mov eax, dword [0x4b95c0]
mov edx, dword [0x4bb6b8]
call fcn.00403b0c
mov eax, dword [0x4b98ec]
mov edx, dword [0x4b957c]
mov edx, dword [edx + 0x14]
call fcn.00403b0c
mov al, byte [0x4bb6cf]
or al, byte [0x4bb6d0]
mov edx, dword [0x4b96f4]
mov byte [edx], al
mov eax, dword [0x4b9a84]
mov edx, dword [ebp - 0x1c]
call fcn.00403b0c
mov eax, dword [0x4b97f0]
mov edx, dword [ebp - 0x18]
call fcn.00403b0c
mov eax, dword [0x4b969c]
mov edx, dword [ebp - 0x14]
call fcn.00403b0c
mov eax, dword [0x4b9714]
mov edx, dword [ebp - 0x10]
call fcn.00403b0c
mov eax, dword [ebp - 0xc]
call fcn.00403d38
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004b4fb4
mov dl, 1
mov eax, dword [0x4b248c]
call fcn.004b2a64
mov edx, dword [0x4b9730]
mov dword [edx], eax
mov eax, 0x49bb5c
mov edx, dword [0x4b9730]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x49bd44
mov edx, dword [0x4b9730]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x49bd50
mov edx, dword [0x4b9730]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x49bd5c
mov edx, dword [0x4b9730]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x4b97b8]
mov ecx, dword [ecx]
mov eax, dword [0x4b9730]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.004b2b28
xor edx, edx
push ebp
push 0x4b57cf
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4b5720
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4b9730]
cmp dword [eax], 0
je 0x4b54cd
xor edx, edx
push ebp
push 0x4b54a1
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 1
xor eax, eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea ecx, [ebp - 0x40]
mov eax, dword [0x4b9730]
mov eax, dword [eax]
mov edx, 0x4b5a64
call fcn.004b2cac
pop dword fs:[0]
add esp, 8
jmp 0x4b54ba
test al, al
jne 0x4b54cd
mov eax, 0x4b5abc
call fcn.00478ff0
call fcn.0040c3d8
xor edx, edx
xor eax, eax
call fcn.004b4948
jmp 0x4b54fb
push 0x31
push 1
push 2
mov eax, dword [0x4b957c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x4bb6c8]
mov al, 0xb1
call fcn.004b42dc
dec eax
je 0x4b54fb
call fcn.0040c3d8
mov eax, dword [0x4b957c]
call fcn.0047b6e0
test al, al
jne 0x4b54d8
call fcn.004b4170
xor edx, edx
mov al, 1
call fcn.004b4948
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
mov eax, dword [0x4b957c]
mov edx, dword [ebp - 8]
mov dword [eax + 0x24], edx
mov ecx, 0x4b4550
mov dl, 1
mov eax, dword [0x4b957c]
call fcn.0047c07c
mov ebx, eax
xor eax, eax
mov al, bl
mov edx, dword [0x4b98b0]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x40]
xor ecx, ecx
mov eax, 0x4b5af4
call fcn.004791f0
mov eax, dword [0x4b957c]
cmp byte [eax + 0x1c], 0
jne 0x4b557a
mov eax, dword [0x4b957c]
test byte [eax + 0x1d], 8
jne 0x4b557a
xor eax, eax
jmp 0x4b557c
mov al, 1
mov byte [ebp - 2], al
mov eax, dword [0x4b9730]
cmp dword [eax], 0
je 0x4b561a
mov eax, dword [0x4b9730]
mov eax, dword [eax]
mov edx, 0x4b5b0c
call fcn.004b2bb0
test al, al
je 0x4b561a
cmp byte [ebp - 2], 0
jne 0x4b5610
xor eax, eax
push ebp
push 0x4b55f5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
xor eax, eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea ecx, [ebp - 0x40]
mov eax, dword [0x4b9730]
mov eax, dword [eax]
mov edx, 0x4b5b0c
call fcn.004b2cac
test al, al
je 0x4b55eb
mov byte [ebp - 2], 1
mov eax, 0x4b5b2c
call fcn.00478ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b561a
mov eax, 0x4b5ba4
call fcn.00478ff0
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x4b98b0]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea edx, [ebp - 0x40]
xor ecx, ecx
mov eax, 0x4b5c04
call fcn.004791f0
cmp byte [0x4bb6d0], 0
jne 0x4b5676
mov eax, dword [0x4b9950]
mov eax, dword [eax]
call fcn.0044ad00
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, 0x3e8
jae 0x4b5676
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4b5647
mov eax, dword [0x4b96b4]
call fcn.0040d774
mov dl, 1
mov al, 2
call fcn.004b4948
cmp byte [ebp - 2], 0
jne 0x4b56c4
cmp byte [0x4bb6cf], 0
jne 0x4b570d
cmp byte [0x4bb6d0], 0
jne 0x4b570d
push 0x10040
push 1
push 1
mov eax, dword [0x4b957c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x4bb6c8]
mov al, byte [0x4b9589]
call fcn.004b42dc
jmp 0x4b570d
cmp byte [0x4bb6d1], 0
jne 0x4b56fd
cmp byte [0x4bb6d0], 0
jne 0x4b56f9
push 0x10044
push 1
push 6
mov eax, dword [0x4b957c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x4bb6c8]
mov al, 0xaf
call fcn.004b42dc
cmp eax, 6
jne 0x4b56fd
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
jne 0x4b570d
mov eax, 0x4b5c28
call fcn.00478ff0
mov dl, 1
mov al, 3
call fcn.004b4948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5734
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b57d9
xor eax, eax
push ebp
push 0x4b5763
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4b96b4]
call fcn.0040d774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5772
mov eax, dword [0x4b9730]
cmp dword [eax], 0
je 0x4b57ce
xor eax, eax
push ebp
push 0x4b57b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
xor eax, eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea ecx, [ebp - 0x40]
mov eax, dword [0x4b9730]
mov eax, dword [eax]
mov edx, 0x4b5c58
call fcn.004b2bcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b57ce
ret