Function at 0x4fdf00
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 0x4fe838
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50d184], 0
je 0x4fdf51
xor eax, eax
call fcn.004e1920
mov byte [ebp - 0x21], 0
mov eax, dword [0x505da0]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5059f4]
setae byte [eax]
xor edx, edx
push ebp
push 0x4fe779
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50d194], 0
je 0x4fdf8f
mov dl, 1
mov eax, dword [0x50d194]
call fcn.004b1ea0
cmp byte [0x50d182], 0
je 0x4fdffc
xor eax, eax
push ebp
push 0x4fdfcf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50d188], 0
jne 0x4fdfbb
mov eax, 0x4fe854
call fcn.004b2988
jmp 0x4fdfc5
mov eax, dword [0x50d188]
call fcn.004b2b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fdffc
mov eax, 0x4fe8bc
call fcn.004b2bc8
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50d16c]
mov edx, 0x4fe934
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2bc8
lea eax, [ebp - 0x30]
mov ecx, dword [0x50d170]
mov edx, 0x4fe974
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004b2bc8
lea eax, [ebp - 0x38]
call fcn.0047f17c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4fe9a0
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2bc8
call fcn.004e19e8
xor eax, eax
call fcn.004fd82c
mov dword [0x50d178], eax
mov dl, 1
mov eax, dword [0x4fcb54]
call fcn.004b5a84
mov dword [0x5059a4], eax
mov ecx, dword [0x50d170]
mov edx, dword [0x50d178]
mov eax, dword [0x5059a4]
call fcn.004b86a4
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5059a4]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004abb3c
mov edx, dword [ebp - 0x3c]
mov eax, 0x50d17c
call fcn.00406448
mov eax, dword [0x5059a4]
test byte [eax + 0x1d], 0x20
je 0x4fe0f7
mov eax, dword [0x505ad4]
cmp byte [eax], 0
jne 0x4fe0f7
push 1
push 1
mov eax, dword [0x50d17c]
call fcn.004064d4
push eax
mov eax, dword [0x505e7c]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e22d0
call fcn.0041191c
mov eax, dword [0x5059a4]
test byte [eax + 0x1d], 1
je 0x4fe13a
call fcn.0048022c
test al, al
jne 0x4fe13a
push 1
push 1
mov eax, dword [0x50d17c]
call fcn.004064d4
push eax
mov eax, dword [0x505e7c]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e22d0
call fcn.0041191c
mov eax, dword [0x50d178]
xor edx, edx
mov dword [0x50d178], edx
call fcn.00404098
mov al, 2
call fcn.004fd82c
mov dword [0x50d178], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050900
mov dx, 0x20
mov eax, dword [0x5059a4]
call fcn.004b5f50
test al, al
jne 0x4fe17f
mov eax, 0x4fe9e0
call fcn.004adae0
cmp dword [0x50d194], 0
je 0x4fe19a
lea eax, [ebp - 4]
mov edx, dword [0x505d4c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4fe1a5
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004fdea0
mov eax, dword [0x5059a4]
cmp byte [eax + 0x10], 0
je 0x4fe1cd
mov eax, dword [0x505ad4]
cmp byte [eax], 0
jne 0x4fe1c4
mov eax, 0x4fea78
call fcn.004adae0
mov al, 1
call fcn.004e27c0
jmp 0x4fe1d4
xor eax, eax
call fcn.004e27c0
call fcn.004dfad8
cmp dword [ebp - 4], 0
je 0x4fe2dc
call fcn.004df4b4
call fcn.004dfe10
mov eax, dword [0x505a04]
mov edx, dword [0x50d16c]
call fcn.00406448
mov eax, dword [0x505de0]
mov edx, dword [0x5059a4]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50d183]
or al, byte [0x50d184]
mov edx, dword [0x505b64]
mov byte [edx], al
mov eax, dword [0x505fd8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x505c8c]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x505af0]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x505b90]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fe265
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004fdde8
mov dl, 1
mov eax, dword [0x4fab60]
call fcn.004fb378
mov edx, dword [0x505bb4]
mov dword [edx], eax
mov eax, 0x4e13c0
mov edx, dword [0x505bb4]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e15d8
mov edx, dword [0x505bb4]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e15e4
mov edx, dword [0x505bb4]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e15f0
mov edx, dword [0x505bb4]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x505c50]
mov ecx, dword [ecx]
mov eax, dword [0x505bb4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004fb470
xor edx, edx
push ebp
push 0x4fe725
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fe658
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x505bb4]
cmp dword [eax], 0
je 0x4fe36b
xor edx, edx
push ebp
push 0x4fe33f
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 [0x505bb4]
mov eax, dword [eax]
mov edx, 0x4feb0c
call fcn.004fb62c
pop dword fs:[0]
add esp, 8
jmp 0x4fe358
test al, al
jne 0x4fe36b
mov eax, 0x4feb9c
call fcn.004b2bc8
call fcn.0041191c
cmp byte [0x50d183], 0
jne 0x4fe3a5
cmp byte [0x50d184], 0
jne 0x4fe3a5
push 0x124
push 1
push 6
mov eax, dword [0x5059a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d17c]
mov al, 0x27
call fcn.004fcf38
cmp eax, 6
je 0x4fe3a5
call fcn.0041191c
xor edx, edx
xor eax, eax
call fcn.004fd6a0
jmp 0x4fe3d3
push 0x31
push 1
push 2
mov eax, dword [0x5059a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d17c]
mov al, 0xbd
call fcn.004fcf38
dec eax
je 0x4fe3d3
call fcn.0041191c
mov eax, dword [0x5059a4]
call fcn.004b5fa4
test al, al
jne 0x4fe3b0
jmp 0x4fe3f6
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x505e6c]
mov eax, dword [eax]
call fcn.0047c3a8
mov eax, dword [0x506058]
cmp byte [eax], 0
jne 0x4fe3e3
mov eax, dword [0x5059f4]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5059a4]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004abb3c
mov edx, dword [ebp - 0x48]
mov eax, dword [0x505e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480a80
call fcn.004fcd7c
xor edx, edx
mov al, 1
call fcn.004fd6a0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5059a4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fd1bc
mov dl, 1
mov eax, dword [0x5059a4]
call fcn.004b6d74
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x505d94]
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, 0x4fec04
call fcn.004b2e4c
mov eax, dword [0x5059a4]
cmp byte [eax + 0x1c], 0
jne 0x4fe4a1
mov eax, dword [0x5059a4]
test byte [eax + 0x1d], 8
jne 0x4fe4a1
xor eax, eax
jmp 0x4fe4a3
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x505bb4]
cmp dword [eax], 0
je 0x4fe541
mov eax, dword [0x505bb4]
mov eax, dword [eax]
mov edx, 0x4fec30
call fcn.004fb51c
test al, al
je 0x4fe541
cmp byte [ebp - 0x23], 0
jne 0x4fe537
xor eax, eax
push ebp
push 0x4fe51c
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 [0x505bb4]
mov eax, dword [eax]
mov edx, 0x4fec30
call fcn.004fb62c
test al, al
je 0x4fe512
mov byte [ebp - 0x23], 1
mov eax, 0x4fec54
call fcn.004b2bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe541
mov eax, 0x4fed34
call fcn.004b2bc8
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x505d94]
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, 0x4fedec
call fcn.004b2e4c
cmp byte [0x50d184], 0
jne 0x4fe59c
mov eax, dword [0x505e6c]
mov eax, dword [eax]
call fcn.0047c3a8
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4fe59c
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4fe56d
mov eax, dword [0x505b04]
mov eax, dword [eax]
mov edx, dword [0x505b04]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fd6a0
cmp byte [ebp - 0x23], 0
jne 0x4fe5fc
cmp byte [0x50d183], 0
jne 0x4fe645
cmp byte [0x50d184], 0
jne 0x4fe645
push 0x10040
push 1
push 1
mov eax, dword [0x5059a4]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5059b0]
mov ecx, dword [0x50d17c]
call fcn.004fcf38
jmp 0x4fe645
cmp byte [0x50d185], 0
jne 0x4fe635
cmp byte [0x50d184], 0
jne 0x4fe631
push 0x10024
push 1
push 6
mov eax, dword [0x5059a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d17c]
mov al, 0xbb
call fcn.004fcf38
cmp eax, 6
jne 0x4fe635
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4fe645
mov eax, 0x4fee30
call fcn.004b2bc8
mov dl, 1
mov al, 3
call fcn.004fd6a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe66c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe72f
xor edx, edx
push ebp
push 0x4fe6a7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x505b04]
mov eax, dword [eax]
mov edx, dword [0x505b04]
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 0x4fe6b6
mov eax, dword [0x505bb4]
cmp dword [eax], 0
je 0x4fe712
xor eax, eax
push ebp
push 0x4fe6f9
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 [0x505bb4]
mov eax, dword [eax]
mov edx, 0x4fee8c
call fcn.004fb578
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe712
mov eax, dword [0x505e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480b10
ret