Function at 0x4fda5c
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 0x4fe394
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x50d180], 0
je 0x4fdaad
xor eax, eax
call fcn.004e1478
mov byte [ebp - 0x21], 0
mov eax, dword [0x505da4]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5059f8]
setae byte [eax]
xor edx, edx
push ebp
push 0x4fe2d5
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x50d190], 0
je 0x4fdaeb
mov dl, 1
mov eax, dword [0x50d190]
call fcn.004b1b38
cmp byte [0x50d17e], 0
je 0x4fdb58
xor eax, eax
push ebp
push 0x4fdb2b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50d184], 0
jne 0x4fdb17
mov eax, 0x4fe3b0
call fcn.004b2620
jmp 0x4fdb21
mov eax, dword [0x50d184]
call fcn.004b2804
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fdb58
mov eax, 0x4fe418
call fcn.004b2860
lea eax, [ebp - 0x2c]
mov ecx, dword [0x50d168]
mov edx, 0x4fe494
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2860
lea eax, [ebp - 0x30]
mov ecx, dword [0x50d16c]
mov edx, 0x4fe4d4
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, 0x4fe500
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2860
call fcn.004e1540
xor eax, eax
call fcn.004fd388
mov dword [0x50d174], eax
mov dl, 1
mov eax, dword [0x4fc6b0]
call fcn.004b571c
mov dword [0x5059a8], eax
mov ecx, dword [0x50d16c]
mov edx, dword [0x50d174]
mov eax, dword [0x5059a8]
call fcn.004b8340
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5059a8]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004ab7d4
mov edx, dword [ebp - 0x3c]
mov eax, 0x50d178
call fcn.00406448
mov eax, dword [0x5059a8]
test byte [eax + 0x1d], 0x20
je 0x4fdc53
mov eax, dword [0x505ad8]
cmp byte [eax], 0
jne 0x4fdc53
push 1
push 1
mov eax, dword [0x50d178]
call fcn.004064d4
push eax
mov eax, dword [0x505e80]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e1e28
call fcn.00411848
mov eax, dword [0x5059a8]
test byte [eax + 0x1d], 1
je 0x4fdc96
call fcn.00480158
test al, al
jne 0x4fdc96
push 1
push 1
mov eax, dword [0x50d178]
call fcn.004064d4
push eax
mov eax, dword [0x505e80]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e1e28
call fcn.00411848
mov eax, dword [0x50d174]
xor edx, edx
mov dword [0x50d174], edx
call fcn.00404098
mov al, 2
call fcn.004fd388
mov dword [0x50d174], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050800
mov dx, 0x20
mov eax, dword [0x5059a8]
call fcn.004b5be8
test al, al
jne 0x4fdcdb
mov eax, 0x4fe540
call fcn.004ad778
cmp dword [0x50d190], 0
je 0x4fdcf6
lea eax, [ebp - 4]
mov edx, dword [0x505d50]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4fdd01
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004fd9fc
mov eax, dword [0x5059a8]
cmp byte [eax + 0x10], 0
je 0x4fdd29
mov eax, dword [0x505ad8]
cmp byte [eax], 0
jne 0x4fdd20
mov eax, 0x4fe5d8
call fcn.004ad778
mov al, 1
call fcn.004e2318
jmp 0x4fdd30
xor eax, eax
call fcn.004e2318
call fcn.004df5ec
cmp dword [ebp - 4], 0
je 0x4fde38
call fcn.004defc8
call fcn.004df924
mov eax, dword [0x505a08]
mov edx, dword [0x50d168]
call fcn.00406448
mov eax, dword [0x505de4]
mov edx, dword [0x5059a8]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x50d17f]
or al, byte [0x50d180]
mov edx, dword [0x505b68]
mov byte [edx], al
mov eax, dword [0x505fdc]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x505c90]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x505af4]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x505b94]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fddc1
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004fd944
mov dl, 1
mov eax, dword [0x4fa6bc]
call fcn.004faed4
mov edx, dword [0x505bb8]
mov dword [edx], eax
mov eax, 0x4e0f18
mov edx, dword [0x505bb8]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e1130
mov edx, dword [0x505bb8]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e113c
mov edx, dword [0x505bb8]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e1148
mov edx, dword [0x505bb8]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x505c54]
mov ecx, dword [ecx]
mov eax, dword [0x505bb8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004fafcc
xor edx, edx
push ebp
push 0x4fe281
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fe1b4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x505bb8]
cmp dword [eax], 0
je 0x4fdec7
xor edx, edx
push ebp
push 0x4fde9b
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 [0x505bb8]
mov eax, dword [eax]
mov edx, 0x4fe66c
call fcn.004fb188
pop dword fs:[0]
add esp, 8
jmp 0x4fdeb4
test al, al
jne 0x4fdec7
mov eax, 0x4fe6fc
call fcn.004b2860
call fcn.00411848
cmp byte [0x50d17f], 0
jne 0x4fdf01
cmp byte [0x50d180], 0
jne 0x4fdf01
push 0x124
push 1
push 6
mov eax, dword [0x5059a8]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d178]
mov al, 0x27
call fcn.004fca94
cmp eax, 6
je 0x4fdf01
call fcn.00411848
xor edx, edx
xor eax, eax
call fcn.004fd1fc
jmp 0x4fdf2f
push 0x31
push 1
push 2
mov eax, dword [0x5059a8]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d178]
mov al, 0xbd
call fcn.004fca94
dec eax
je 0x4fdf2f
call fcn.00411848
mov eax, dword [0x5059a8]
call fcn.004b5c3c
test al, al
jne 0x4fdf0c
jmp 0x4fdf52
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x505e70]
mov eax, dword [eax]
call fcn.0047c2d4
mov eax, dword [0x50605c]
cmp byte [eax], 0
jne 0x4fdf3f
mov eax, dword [0x5059f8]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5059a8]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004ab7d4
mov edx, dword [ebp - 0x48]
mov eax, dword [0x505e70]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004809ac
call fcn.004fc8d8
xor edx, edx
mov al, 1
call fcn.004fd1fc
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5059a8]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fcd18
mov dl, 1
mov eax, dword [0x5059a8]
call fcn.004b6a0c
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x505d98]
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, 0x4fe764
call fcn.004b2ae4
mov eax, dword [0x5059a8]
cmp byte [eax + 0x1c], 0
jne 0x4fdffd
mov eax, dword [0x5059a8]
test byte [eax + 0x1d], 8
jne 0x4fdffd
xor eax, eax
jmp 0x4fdfff
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x505bb8]
cmp dword [eax], 0
je 0x4fe09d
mov eax, dword [0x505bb8]
mov eax, dword [eax]
mov edx, 0x4fe790
call fcn.004fb078
test al, al
je 0x4fe09d
cmp byte [ebp - 0x23], 0
jne 0x4fe093
xor eax, eax
push ebp
push 0x4fe078
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 [0x505bb8]
mov eax, dword [eax]
mov edx, 0x4fe790
call fcn.004fb188
test al, al
je 0x4fe06e
mov byte [ebp - 0x23], 1
mov eax, 0x4fe7b4
call fcn.004b2860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe09d
mov eax, 0x4fe894
call fcn.004b2860
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x505d98]
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, 0x4fe94c
call fcn.004b2ae4
cmp byte [0x50d180], 0
jne 0x4fe0f8
mov eax, dword [0x505e70]
mov eax, dword [eax]
call fcn.0047c2d4
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4fe0f8
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4fe0c9
mov eax, dword [0x505b08]
mov eax, dword [eax]
mov edx, dword [0x505b08]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fd1fc
cmp byte [ebp - 0x23], 0
jne 0x4fe158
cmp byte [0x50d17f], 0
jne 0x4fe1a1
cmp byte [0x50d180], 0
jne 0x4fe1a1
push 0x10040
push 1
push 1
mov eax, dword [0x5059a8]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5059b4]
mov ecx, dword [0x50d178]
call fcn.004fca94
jmp 0x4fe1a1
cmp byte [0x50d181], 0
jne 0x4fe191
cmp byte [0x50d180], 0
jne 0x4fe18d
push 0x10024
push 1
push 6
mov eax, dword [0x5059a8]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x50d178]
mov al, 0xbb
call fcn.004fca94
cmp eax, 6
jne 0x4fe191
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4fe1a1
mov eax, 0x4fe990
call fcn.004b2860
mov dl, 1
mov al, 3
call fcn.004fd1fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe1c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe28b
xor edx, edx
push ebp
push 0x4fe203
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x505b08]
mov eax, dword [eax]
mov edx, dword [0x505b08]
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 0x4fe212
mov eax, dword [0x505bb8]
cmp dword [eax], 0
je 0x4fe26e
xor eax, eax
push ebp
push 0x4fe255
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 [0x505bb8]
mov eax, dword [eax]
mov edx, 0x4fe9ec
call fcn.004fb0d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe26e
mov eax, dword [0x505e70]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00480a3c
ret