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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
mov ecx, 7
lea eax, [ebp - 0x20]
mov edx, dword [0x4010ac]
call fcn.004071dc
xor eax, eax
push ebp
push 0x4f7aa8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x505094], 0
je 0x4f71b5
xor eax, eax
call fcn.004db884
mov byte [ebp - 0x21], 0
mov eax, dword [0x4fecc0]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x4fe940]
setae byte [eax]
xor edx, edx
push ebp
push 0x4f79e9
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x5050a4], 0
je 0x4f71f3
mov dl, 1
mov eax, dword [0x5050a4]
call fcn.004af210
cmp byte [0x505092], 0
je 0x4f7260
xor eax, eax
push ebp
push 0x4f7233
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x505098], 0
jne 0x4f721f
mov eax, 0x4f7ac4
call fcn.004afcf8
jmp 0x4f7229
mov eax, dword [0x505098]
call fcn.004afedc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7260
mov eax, 0x4f7b2c
call fcn.004aff38
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50507c]
mov edx, 0x4f7b90
call fcn.00406904
mov eax, dword [ebp - 0x2c]
call fcn.004aff38
lea eax, [ebp - 0x30]
mov ecx, dword [0x505080]
mov edx, 0x4f7bd0
call fcn.00406904
mov eax, dword [ebp - 0x30]
call fcn.004aff38
lea eax, [ebp - 0x38]
call fcn.0047eb7c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4f7bfc
call fcn.00406904
mov eax, dword [ebp - 0x34]
call fcn.004aff38
call fcn.004db94c
xor eax, eax
call fcn.004f6a90
mov dword [0x505088], eax
mov dl, 1
mov eax, dword [0x4f5db8]
call fcn.004b2df4
mov dword [0x4fe8f8], eax
mov ecx, dword [0x505080]
mov edx, dword [0x505088]
mov eax, dword [0x4fe8f8]
call fcn.004b5a18
lea ecx, [ebp - 0x3c]
mov eax, dword [0x4fe8f8]
mov edx, dword [eax + 0x18]
mov al, 0xab
call fcn.004a932c
mov edx, dword [ebp - 0x3c]
mov eax, 0x50508c
call fcn.00406448
mov eax, dword [0x4fe8f8]
test byte [eax + 0x1d], 0x20
je 0x4f735b
mov eax, dword [0x4fea14]
cmp byte [eax], 0
jne 0x4f735b
push 1
push 1
mov eax, dword [0x50508c]
call fcn.004064d4
push eax
mov eax, dword [0x4fed8c]
mov eax, dword [eax + 0x2cc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004dc234
call fcn.00411a50
mov eax, dword [0x4fe8f8]
test byte [eax + 0x1d], 1
je 0x4f739e
call fcn.0047fb78
test al, al
jne 0x4f739e
push 1
push 1
mov eax, dword [0x50508c]
call fcn.004064d4
push eax
mov eax, dword [0x4fed8c]
mov eax, dword [eax + 0x1bc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004dc234
call fcn.00411a50
mov eax, dword [0x505088]
xor edx, edx
mov dword [0x505088], edx
call fcn.00404098
mov al, 2
call fcn.004f6a90
mov dword [0x505088], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85040200
mov dx, 0x20
mov eax, dword [0x4fe8f8]
call fcn.004b32c0
test al, al
jne 0x4f73e3
mov eax, 0x4f7c3c
call fcn.004ab2d0
cmp dword [0x5050a4], 0
je 0x4f73fe
lea eax, [ebp - 4]
mov edx, dword [0x4fec6c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4f7409
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004f7104
mov eax, dword [0x4fe8f8]
cmp byte [eax + 0x10], 0
je 0x4f7431
mov eax, dword [0x4fea14]
cmp byte [eax], 0
jne 0x4f7428
mov eax, 0x4f7cd4
call fcn.004ab2d0
mov al, 1
call fcn.004dc724
jmp 0x4f7438
xor eax, eax
call fcn.004dc724
call fcn.004d9fbc
cmp dword [ebp - 4], 0
je 0x4f7540
call fcn.004d9a60
call fcn.004da2f4
mov eax, dword [0x4fe950]
mov edx, dword [0x50507c]
call fcn.00406448
mov eax, dword [0x4fed00]
mov edx, dword [0x4fe8f8]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x505093]
or al, byte [0x505094]
mov edx, dword [0x4feaa0]
mov byte [edx], al
mov eax, dword [0x4feee8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x4febc0]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x4fea30]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x4feac8]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4f74c9
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004f704c
mov dl, 1
mov eax, dword [0x4f3dc8]
call fcn.004f45e0
mov edx, dword [0x4feaec]
mov dword [edx], eax
mov eax, 0x4db328
mov edx, dword [0x4feaec]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4db540
mov edx, dword [0x4feaec]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4db54c
mov edx, dword [0x4feaec]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4db558
mov edx, dword [0x4feaec]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x4feb84]
mov ecx, dword [ecx]
mov eax, dword [0x4feaec]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004f46d8
xor edx, edx
push ebp
push 0x4f7995
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4f78c8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4feaec]
cmp dword [eax], 0
je 0x4f75cf
xor edx, edx
push ebp
push 0x4f75a3
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 1
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x4feaec]
mov eax, dword [eax]
mov edx, 0x4f7d68
call fcn.004f4894
pop dword fs:[0]
add esp, 8
jmp 0x4f75bc
test al, al
jne 0x4f75cf
mov eax, 0x4f7df8
call fcn.004aff38
call fcn.00411a50
cmp byte [0x505093], 0
jne 0x4f7609
cmp byte [0x505094], 0
jne 0x4f7609
push 0x124
push 1
push 6
mov eax, dword [0x4fe8f8]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50508c]
mov al, 0x22
call fcn.004f619c
cmp eax, 6
je 0x4f7609
call fcn.00411a50
xor edx, edx
xor eax, eax
call fcn.004f6904
jmp 0x4f7637
push 0x31
push 1
push 2
mov eax, dword [0x4fe8f8]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50508c]
mov al, 0xb1
call fcn.004f619c
dec eax
je 0x4f7637
call fcn.00411a50
mov eax, dword [0x4fe8f8]
call fcn.004b3314
test al, al
jne 0x4f7614
jmp 0x4f7666
push 0
push 0
mov eax, dword [0x50508c]
call fcn.004064d4
mov edx, eax
mov eax, 0x4f7e54
mov ecx, 0x10
call fcn.004dc234
mov eax, dword [0x4fef58]
cmp byte [eax], 0
jne 0x4f7647
mov eax, dword [0x4fe940]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x4fe8f8]
mov edx, dword [eax + 0x18]
mov al, 0xb5
call fcn.004a932c
mov edx, dword [ebp - 0x48]
mov eax, dword [0x4fed7c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004802f8
call fcn.004f5fe0
xor edx, edx
mov al, 1
call fcn.004f6904
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x4fe8f8]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4f6420
mov dl, 1
mov eax, dword [0x4fe8f8]
call fcn.004b40e4
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x4fecb4]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x4f7f18
call fcn.004b01bc
mov eax, dword [0x4fe8f8]
cmp byte [eax + 0x1c], 0
jne 0x4f7711
mov eax, dword [0x4fe8f8]
test byte [eax + 0x1d], 8
jne 0x4f7711
xor eax, eax
jmp 0x4f7713
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x4feaec]
cmp dword [eax], 0
je 0x4f77b1
mov eax, dword [0x4feaec]
mov eax, dword [eax]
mov edx, 0x4f7f44
call fcn.004f4784
test al, al
je 0x4f77b1
cmp byte [ebp - 0x23], 0
jne 0x4f77a7
xor eax, eax
push ebp
push 0x4f778c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x4feaec]
mov eax, dword [eax]
mov edx, 0x4f7f44
call fcn.004f4894
test al, al
je 0x4f7782
mov byte [ebp - 0x23], 1
mov eax, 0x4f7f68
call fcn.004aff38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f77b1
mov eax, 0x4f8048
call fcn.004aff38
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x4fecb4]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x4f8100
call fcn.004b01bc
cmp byte [0x505094], 0
jne 0x4f780c
mov eax, dword [0x4fed7c]
mov eax, dword [eax]
call fcn.0047bdfc
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4f780c
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4f77dd
mov eax, dword [0x4fea44]
mov eax, dword [eax]
mov edx, dword [0x4fea44]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004f6904
cmp byte [ebp - 0x23], 0
jne 0x4f786c
cmp byte [0x505093], 0
jne 0x4f78b5
cmp byte [0x505094], 0
jne 0x4f78b5
push 0x10040
push 1
push 1
mov eax, dword [0x4fe8f8]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x4fe904]
mov ecx, dword [0x50508c]
call fcn.004f619c
jmp 0x4f78b5
cmp byte [0x505095], 0
jne 0x4f78a5
cmp byte [0x505094], 0
jne 0x4f78a1
push 0x10044
push 1
push 6
mov eax, dword [0x4fe8f8]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50508c]
mov al, 0xaf
call fcn.004f619c
cmp eax, 6
jne 0x4f78a5
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4f78b5
mov eax, 0x4f8144
call fcn.004aff38
mov dl, 1
mov al, 3
call fcn.004f6904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f78dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f799f
xor edx, edx
push ebp
push 0x4f7917
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4fea44]
mov eax, dword [eax]
mov edx, dword [0x4fea44]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7926
mov eax, dword [0x4feaec]
cmp dword [eax], 0
je 0x4f7982
xor eax, eax
push ebp
push 0x4f7969
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x4feaec]
mov eax, dword [eax]
mov edx, 0x4f81a0
call fcn.004f47e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7982
mov eax, dword [0x4fed7c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480388
ret