Function at 0x4fc560
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 0x4fce98
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50b178], 0
je 0x4fc5b1
xor eax, eax
call fcn.004e0248
mov byte [ebp - 0x21], 0
mov eax, dword [0x503d6c]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5039c8]
setae byte [eax]
xor edx, edx
push ebp
push 0x4fcdd9
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50b188], 0
je 0x4fc5ef
mov dl, 1
mov eax, dword [0x50b188]
call fcn.004b1b38
cmp byte [0x50b176], 0
je 0x4fc65c
xor eax, eax
push ebp
push 0x4fc62f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50b17c], 0
jne 0x4fc61b
mov eax, 0x4fceb4
call fcn.004b2620
jmp 0x4fc625
mov eax, dword [0x50b17c]
call fcn.004b2804
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fc65c
mov eax, 0x4fcf1c
call fcn.004b2860
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50b160]
mov edx, 0x4fcf80
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2860
lea eax, [ebp - 0x30]
mov ecx, dword [0x50b164]
mov edx, 0x4fcfc0
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004b2860
lea eax, [ebp - 0x38]
call fcn.0047f0a8
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4fcfec
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2860
call fcn.004e0310
xor eax, eax
call fcn.004fbe8c
mov dword [0x50b16c], eax
mov dl, 1
mov eax, dword [0x4fb1b4]
call fcn.004b571c
mov dword [0x503978], eax
mov ecx, dword [0x50b164]
mov edx, dword [0x50b16c]
mov eax, dword [0x503978]
call fcn.004b8340
lea ecx, [ebp - 0x3c]
mov eax, dword [0x503978]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004ab7d4
mov edx, dword [ebp - 0x3c]
mov eax, 0x50b170
call fcn.00406448
mov eax, dword [0x503978]
test byte [eax + 0x1d], 0x20
je 0x4fc757
mov eax, dword [0x503aa8]
cmp byte [eax], 0
jne 0x4fc757
push 1
push 1
mov eax, dword [0x50b170]
call fcn.004064d4
push eax
mov eax, dword [0x503e48]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e0bf8
call fcn.00411848
mov eax, dword [0x503978]
test byte [eax + 0x1d], 1
je 0x4fc79a
call fcn.00480158
test al, al
jne 0x4fc79a
push 1
push 1
mov eax, dword [0x50b170]
call fcn.004064d4
push eax
mov eax, dword [0x503e48]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e0bf8
call fcn.00411848
mov eax, dword [0x50b16c]
xor edx, edx
mov dword [0x50b16c], edx
call fcn.00404098
mov al, 2
call fcn.004fbe8c
mov dword [0x50b16c], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050800
mov dx, 0x20
mov eax, dword [0x503978]
call fcn.004b5be8
test al, al
jne 0x4fc7df
mov eax, 0x4fd02c
call fcn.004ad778
cmp dword [0x50b188], 0
je 0x4fc7fa
lea eax, [ebp - 4]
mov edx, dword [0x503d18]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4fc805
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004fc500
mov eax, dword [0x503978]
cmp byte [eax + 0x10], 0
je 0x4fc82d
mov eax, dword [0x503aa8]
cmp byte [eax], 0
jne 0x4fc824
mov eax, 0x4fd0c4
call fcn.004ad778
mov al, 1
call fcn.004e10e8
jmp 0x4fc834
xor eax, eax
call fcn.004e10e8
call fcn.004de3bc
cmp dword [ebp - 4], 0
je 0x4fc93c
call fcn.004ddd98
call fcn.004de6f4
mov eax, dword [0x5039d8]
mov edx, dword [0x50b160]
call fcn.00406448
mov eax, dword [0x503dac]
mov edx, dword [0x503978]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50b177]
or al, byte [0x50b178]
mov edx, dword [0x503b38]
mov byte [edx], al
mov eax, dword [0x503fa4]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x503c60]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x503ac4]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x503b64]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fc8c5
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004fc448
mov dl, 1
mov eax, dword [0x4f91c0]
call fcn.004f99d8
mov edx, dword [0x503b88]
mov dword [edx], eax
mov eax, 0x4dfce8
mov edx, dword [0x503b88]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4dff00
mov edx, dword [0x503b88]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4dff0c
mov edx, dword [0x503b88]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4dff18
mov edx, dword [0x503b88]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x503c24]
mov ecx, dword [ecx]
mov eax, dword [0x503b88]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004f9ad0
xor edx, edx
push ebp
push 0x4fcd85
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fccb8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x503b88]
cmp dword [eax], 0
je 0x4fc9cb
xor edx, edx
push ebp
push 0x4fc99f
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 [0x503b88]
mov eax, dword [eax]
mov edx, 0x4fd158
call fcn.004f9c8c
pop dword fs:[0]
add esp, 8
jmp 0x4fc9b8
test al, al
jne 0x4fc9cb
mov eax, 0x4fd1e8
call fcn.004b2860
call fcn.00411848
cmp byte [0x50b177], 0
jne 0x4fca05
cmp byte [0x50b178], 0
jne 0x4fca05
push 0x124
push 1
push 6
mov eax, dword [0x503978]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50b170]
mov al, 0x27
call fcn.004fb598
cmp eax, 6
je 0x4fca05
call fcn.00411848
xor edx, edx
xor eax, eax
call fcn.004fbd00
jmp 0x4fca33
push 0x31
push 1
push 2
mov eax, dword [0x503978]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50b170]
mov al, 0xbd
call fcn.004fb598
dec eax
je 0x4fca33
call fcn.00411848
mov eax, dword [0x503978]
call fcn.004b5c3c
test al, al
jne 0x4fca10
jmp 0x4fca56
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x503e38]
mov eax, dword [eax]
call fcn.0047c2d4
mov eax, dword [0x504020]
cmp byte [eax], 0
jne 0x4fca43
mov eax, dword [0x5039c8]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x503978]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004ab7d4
mov edx, dword [ebp - 0x48]
mov eax, dword [0x503e38]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004809ac
call fcn.004fb3dc
xor edx, edx
mov al, 1
call fcn.004fbd00
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x503978]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fb81c
mov dl, 1
mov eax, dword [0x503978]
call fcn.004b6a0c
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x503d60]
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, 0x4fd250
call fcn.004b2ae4
mov eax, dword [0x503978]
cmp byte [eax + 0x1c], 0
jne 0x4fcb01
mov eax, dword [0x503978]
test byte [eax + 0x1d], 8
jne 0x4fcb01
xor eax, eax
jmp 0x4fcb03
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x503b88]
cmp dword [eax], 0
je 0x4fcba1
mov eax, dword [0x503b88]
mov eax, dword [eax]
mov edx, 0x4fd27c
call fcn.004f9b7c
test al, al
je 0x4fcba1
cmp byte [ebp - 0x23], 0
jne 0x4fcb97
xor eax, eax
push ebp
push 0x4fcb7c
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 [0x503b88]
mov eax, dword [eax]
mov edx, 0x4fd27c
call fcn.004f9c8c
test al, al
je 0x4fcb72
mov byte [ebp - 0x23], 1
mov eax, 0x4fd2a0
call fcn.004b2860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fcba1
mov eax, 0x4fd380
call fcn.004b2860
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x503d60]
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, 0x4fd438
call fcn.004b2ae4
cmp byte [0x50b178], 0
jne 0x4fcbfc
mov eax, dword [0x503e38]
mov eax, dword [eax]
call fcn.0047c2d4
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4fcbfc
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4fcbcd
mov eax, dword [0x503ad8]
mov eax, dword [eax]
mov edx, dword [0x503ad8]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fbd00
cmp byte [ebp - 0x23], 0
jne 0x4fcc5c
cmp byte [0x50b177], 0
jne 0x4fcca5
cmp byte [0x50b178], 0
jne 0x4fcca5
push 0x10040
push 1
push 1
mov eax, dword [0x503978]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x503984]
mov ecx, dword [0x50b170]
call fcn.004fb598
jmp 0x4fcca5
cmp byte [0x50b179], 0
jne 0x4fcc95
cmp byte [0x50b178], 0
jne 0x4fcc91
push 0x10024
push 1
push 6
mov eax, dword [0x503978]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50b170]
mov al, 0xbb
call fcn.004fb598
cmp eax, 6
jne 0x4fcc95
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4fcca5
mov eax, 0x4fd47c
call fcn.004b2860
mov dl, 1
mov al, 3
call fcn.004fbd00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fcccc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fcd8f
xor edx, edx
push ebp
push 0x4fcd07
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x503ad8]
mov eax, dword [eax]
mov edx, dword [0x503ad8]
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 0x4fcd16
mov eax, dword [0x503b88]
cmp dword [eax], 0
je 0x4fcd72
xor eax, eax
push ebp
push 0x4fcd59
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 [0x503b88]
mov eax, dword [eax]
mov edx, 0x4fd4d8
call fcn.004f9bd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fcd72
mov eax, dword [0x503e38]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480a3c
ret