Function at 0x4fb960
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.004071ec
xor eax, eax
push ebp
push 0x4fc298
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50a174], 0
je 0x4fb9b1
xor eax, eax
call fcn.004dfb08
mov byte [ebp - 0x21], 0
mov eax, dword [0x502d44]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5029a8]
setae byte [eax]
xor edx, edx
push ebp
push 0x4fc1d9
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50a184], 0
je 0x4fb9ef
mov dl, 1
mov eax, dword [0x50a184]
call fcn.004b1958
cmp byte [0x50a172], 0
je 0x4fba5c
xor eax, eax
push ebp
push 0x4fba2f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50a178], 0
jne 0x4fba1b
mov eax, 0x4fc2b4
call fcn.004b2440
jmp 0x4fba25
mov eax, dword [0x50a178]
call fcn.004b2624
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fba5c
mov eax, 0x4fc31c
call fcn.004b2680
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50a15c]
mov edx, 0x4fc380
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2680
lea eax, [ebp - 0x30]
mov ecx, dword [0x50a160]
mov edx, 0x4fc3c0
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004b2680
lea eax, [ebp - 0x38]
call fcn.0047efac
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4fc3ec
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2680
call fcn.004dfbd0
xor eax, eax
call fcn.004fb28c
mov dword [0x50a168], eax
mov dl, 1
mov eax, dword [0x4fa5b4]
call fcn.004b553c
mov dword [0x502958], eax
mov ecx, dword [0x50a160]
mov edx, dword [0x50a168]
mov eax, dword [0x502958]
call fcn.004b8160
lea ecx, [ebp - 0x3c]
mov eax, dword [0x502958]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004ab628
mov edx, dword [ebp - 0x3c]
mov eax, 0x50a16c
call fcn.00406448
mov eax, dword [0x502958]
test byte [eax + 0x1d], 0x20
je 0x4fbb57
mov eax, dword [0x502a84]
cmp byte [eax], 0
jne 0x4fbb57
push 1
push 1
mov eax, dword [0x50a16c]
call fcn.004064d4
push eax
mov eax, dword [0x502e20]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e04b8
call fcn.00411830
mov eax, dword [0x502958]
test byte [eax + 0x1d], 1
je 0x4fbb9a
call fcn.0048005c
test al, al
jne 0x4fbb9a
push 1
push 1
mov eax, dword [0x50a16c]
call fcn.004064d4
push eax
mov eax, dword [0x502e20]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e04b8
call fcn.00411830
mov eax, dword [0x50a168]
xor edx, edx
mov dword [0x50a168], edx
call fcn.00404098
mov al, 2
call fcn.004fb28c
mov dword [0x50a168], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050500
mov dx, 0x20
mov eax, dword [0x502958]
call fcn.004b5a08
test al, al
jne 0x4fbbdf
mov eax, 0x4fc42c
call fcn.004ad5cc
cmp dword [0x50a184], 0
je 0x4fbbfa
lea eax, [ebp - 4]
mov edx, dword [0x502cf0]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4fbc05
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004fb900
mov eax, dword [0x502958]
cmp byte [eax + 0x10], 0
je 0x4fbc2d
mov eax, dword [0x502a84]
cmp byte [eax], 0
jne 0x4fbc24
mov eax, 0x4fc4c4
call fcn.004ad5cc
mov al, 1
call fcn.004e09a8
jmp 0x4fbc34
xor eax, eax
call fcn.004e09a8
call fcn.004ddc7c
cmp dword [ebp - 4], 0
je 0x4fbd3c
call fcn.004dd658
call fcn.004ddfb4
mov eax, dword [0x5029b8]
mov edx, dword [0x50a15c]
call fcn.00406448
mov eax, dword [0x502d84]
mov edx, dword [0x502958]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50a173]
or al, byte [0x50a174]
mov edx, dword [0x502b10]
mov byte [edx], al
mov eax, dword [0x502f78]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x502c38]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x502aa0]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x502b3c]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fbcc5
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004fb848
mov dl, 1
mov eax, dword [0x4f85c0]
call fcn.004f8dd8
mov edx, dword [0x502b60]
mov dword [edx], eax
mov eax, 0x4df5a8
mov edx, dword [0x502b60]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4df7c0
mov edx, dword [0x502b60]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4df7cc
mov edx, dword [0x502b60]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4df7d8
mov edx, dword [0x502b60]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x502bfc]
mov ecx, dword [ecx]
mov eax, dword [0x502b60]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004f8ed0
xor edx, edx
push ebp
push 0x4fc185
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fc0b8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x502b60]
cmp dword [eax], 0
je 0x4fbdcb
xor edx, edx
push ebp
push 0x4fbd9f
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 [0x502b60]
mov eax, dword [eax]
mov edx, 0x4fc558
call fcn.004f908c
pop dword fs:[0]
add esp, 8
jmp 0x4fbdb8
test al, al
jne 0x4fbdcb
mov eax, 0x4fc5e8
call fcn.004b2680
call fcn.00411830
cmp byte [0x50a173], 0
jne 0x4fbe05
cmp byte [0x50a174], 0
jne 0x4fbe05
push 0x124
push 1
push 6
mov eax, dword [0x502958]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a16c]
mov al, 0x27
call fcn.004fa998
cmp eax, 6
je 0x4fbe05
call fcn.00411830
xor edx, edx
xor eax, eax
call fcn.004fb100
jmp 0x4fbe33
push 0x31
push 1
push 2
mov eax, dword [0x502958]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a16c]
mov al, 0xbd
call fcn.004fa998
dec eax
je 0x4fbe33
call fcn.00411830
mov eax, dword [0x502958]
call fcn.004b5a5c
test al, al
jne 0x4fbe10
jmp 0x4fbe56
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x502e10]
mov eax, dword [eax]
call fcn.0047c1d8
mov eax, dword [0x502ff0]
cmp byte [eax], 0
jne 0x4fbe43
mov eax, dword [0x5029a8]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x502958]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004ab628
mov edx, dword [ebp - 0x48]
mov eax, dword [0x502e10]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004808b0
call fcn.004fa7dc
xor edx, edx
mov al, 1
call fcn.004fb100
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x502958]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fac1c
mov dl, 1
mov eax, dword [0x502958]
call fcn.004b682c
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x502d38]
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, 0x4fc650
call fcn.004b2904
mov eax, dword [0x502958]
cmp byte [eax + 0x1c], 0
jne 0x4fbf01
mov eax, dword [0x502958]
test byte [eax + 0x1d], 8
jne 0x4fbf01
xor eax, eax
jmp 0x4fbf03
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x502b60]
cmp dword [eax], 0
je 0x4fbfa1
mov eax, dword [0x502b60]
mov eax, dword [eax]
mov edx, 0x4fc67c
call fcn.004f8f7c
test al, al
je 0x4fbfa1
cmp byte [ebp - 0x23], 0
jne 0x4fbf97
xor eax, eax
push ebp
push 0x4fbf7c
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 [0x502b60]
mov eax, dword [eax]
mov edx, 0x4fc67c
call fcn.004f908c
test al, al
je 0x4fbf72
mov byte [ebp - 0x23], 1
mov eax, 0x4fc6a0
call fcn.004b2680
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fbfa1
mov eax, 0x4fc780
call fcn.004b2680
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x502d38]
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, 0x4fc838
call fcn.004b2904
cmp byte [0x50a174], 0
jne 0x4fbffc
mov eax, dword [0x502e10]
mov eax, dword [eax]
call fcn.0047c1d8
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4fbffc
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4fbfcd
mov eax, dword [0x502ab4]
mov eax, dword [eax]
mov edx, dword [0x502ab4]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fb100
cmp byte [ebp - 0x23], 0
jne 0x4fc05c
cmp byte [0x50a173], 0
jne 0x4fc0a5
cmp byte [0x50a174], 0
jne 0x4fc0a5
push 0x10040
push 1
push 1
mov eax, dword [0x502958]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x502964]
mov ecx, dword [0x50a16c]
call fcn.004fa998
jmp 0x4fc0a5
cmp byte [0x50a175], 0
jne 0x4fc095
cmp byte [0x50a174], 0
jne 0x4fc091
push 0x10044
push 1
push 6
mov eax, dword [0x502958]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50a16c]
mov al, 0xbb
call fcn.004fa998
cmp eax, 6
jne 0x4fc095
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4fc0a5
mov eax, 0x4fc87c
call fcn.004b2680
mov dl, 1
mov al, 3
call fcn.004fb100
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fc0cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc18f
xor edx, edx
push ebp
push 0x4fc107
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x502ab4]
mov eax, dword [eax]
mov edx, dword [0x502ab4]
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 0x4fc116
mov eax, dword [0x502b60]
cmp dword [eax], 0
je 0x4fc172
xor eax, eax
push ebp
push 0x4fc159
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 [0x502b60]
mov eax, dword [eax]
mov edx, 0x4fc8d8
call fcn.004f8fd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fc172
mov eax, dword [0x502e10]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480940
ret