Function at 0x4ff0e8
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 0x4ffa20
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x510184], 0
je 0x4ff139
xor eax, eax
call fcn.004e15c8
mov byte [ebp - 0x21], 0
mov eax, dword [0x508da0]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5089f4]
setae byte [eax]
xor edx, edx
push ebp
push 0x4ff961
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x510194], 0
je 0x4ff177
mov dl, 1
mov eax, dword [0x510194]
call fcn.004b1b48
cmp byte [0x510182], 0
je 0x4ff1e4
xor eax, eax
push ebp
push 0x4ff1b7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x510188], 0
jne 0x4ff1a3
mov eax, 0x4ffa3c
call fcn.004b2630
jmp 0x4ff1ad
mov eax, dword [0x510188]
call fcn.004b2814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff1e4
mov eax, 0x4ffaa4
call fcn.004b2870
lea eax, [ebp - 0x2c]
mov ecx, dword [0x51016c]
mov edx, 0x4ffb1c
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004b2870
lea eax, [ebp - 0x30]
mov ecx, dword [0x510170]
mov edx, 0x4ffb5c
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004b2870
lea eax, [ebp - 0x38]
call fcn.00480b0c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x4ffb88
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004b2870
call fcn.004e1690
xor eax, eax
call fcn.004fea14
mov dword [0x510178], eax
mov dl, 1
mov eax, dword [0x4fdd3c]
call fcn.004b572c
mov dword [0x5089a4], eax
mov ecx, dword [0x510170]
mov edx, dword [0x510178]
mov eax, dword [0x5089a4]
call fcn.004b834c
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.00484118
mov edx, dword [ebp - 0x3c]
mov eax, 0x51017c
call fcn.00406448
mov eax, dword [0x5089a4]
test byte [eax + 0x1d], 0x20
je 0x4ff2df
mov eax, dword [0x508ad4]
cmp byte [eax], 0
jne 0x4ff2df
push 1
push 1
mov eax, dword [0x51017c]
call fcn.004064d4
push eax
mov eax, dword [0x508e7c]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e1f78
call fcn.004122cc
mov eax, dword [0x5089a4]
test byte [eax + 0x1d], 1
je 0x4ff322
call fcn.00481bbc
test al, al
jne 0x4ff322
push 1
push 1
mov eax, dword [0x51017c]
call fcn.004064d4
push eax
mov eax, dword [0x508e7c]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e1f78
call fcn.004122cc
mov eax, dword [0x510178]
xor edx, edx
mov dword [0x510178], edx
call fcn.00404098
mov al, 2
call fcn.004fea14
mov dword [0x510178], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050900
mov dx, 0x20
mov eax, dword [0x5089a4]
call fcn.004b5bf8
test al, al
jne 0x4ff367
mov eax, 0x4ffbc8
call fcn.004855a8
cmp dword [0x510194], 0
je 0x4ff382
lea eax, [ebp - 4]
mov edx, dword [0x508d4c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x4ff38d
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.004ff088
mov eax, dword [0x5089a4]
cmp byte [eax + 0x10], 0
je 0x4ff3b5
mov eax, dword [0x508ad4]
cmp byte [eax], 0
jne 0x4ff3ac
mov eax, 0x4ffc60
call fcn.004855a8
mov al, 1
call fcn.004e2468
jmp 0x4ff3bc
xor eax, eax
call fcn.004e2468
call fcn.004df780
cmp dword [ebp - 4], 0
je 0x4ff4c4
call fcn.004df15c
call fcn.004dfab8
mov eax, dword [0x508a04]
mov edx, dword [0x51016c]
call fcn.00406448
mov eax, dword [0x508de0]
mov edx, dword [0x5089a4]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x510183]
or al, byte [0x510184]
mov edx, dword [0x508b64]
mov byte [edx], al
mov eax, dword [0x508fd8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x508c8c]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x508af0]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x508b90]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x4ff44d
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.004fefd0
mov dl, 1
mov eax, dword [0x4fa808]
call fcn.004fb020
mov edx, dword [0x508bb4]
mov dword [edx], eax
mov eax, 0x4e1068
mov edx, dword [0x508bb4]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e1280
mov edx, dword [0x508bb4]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e128c
mov edx, dword [0x508bb4]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e1298
mov edx, dword [0x508bb4]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x508c50]
mov ecx, dword [ecx]
mov eax, dword [0x508bb4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.004fb118
xor edx, edx
push ebp
push 0x4ff90d
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4ff840
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x508bb4]
cmp dword [eax], 0
je 0x4ff553
xor edx, edx
push ebp
push 0x4ff527
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 [0x508bb4]
mov eax, dword [eax]
mov edx, 0x4ffcf4
call fcn.004fb2d4
pop dword fs:[0]
add esp, 8
jmp 0x4ff540
test al, al
jne 0x4ff553
mov eax, 0x4ffd84
call fcn.004b2870
call fcn.004122cc
cmp byte [0x510183], 0
jne 0x4ff58d
cmp byte [0x510184], 0
jne 0x4ff58d
push 0x124
push 1
push 6
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x51017c]
mov al, 0x27
call fcn.004fe120
cmp eax, 6
je 0x4ff58d
call fcn.004122cc
xor edx, edx
xor eax, eax
call fcn.004fe888
jmp 0x4ff5bb
push 0x31
push 1
push 2
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x51017c]
mov al, 0xbd
call fcn.004fe120
dec eax
je 0x4ff5bb
call fcn.004122cc
mov eax, dword [0x5089a4]
call fcn.004b5c4c
test al, al
jne 0x4ff598
jmp 0x4ff5de
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x508e6c]
mov eax, dword [eax]
call fcn.0047dd38
mov eax, dword [0x509058]
cmp byte [eax], 0
jne 0x4ff5cb
mov eax, dword [0x5089f4]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.00484118
mov edx, dword [ebp - 0x48]
mov eax, dword [0x508e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00482410
call fcn.004fdf64
xor edx, edx
mov al, 1
call fcn.004fe888
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5089a4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x4fe3a4
mov dl, 1
mov eax, dword [0x5089a4]
call fcn.004b6a1c
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x508d94]
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, 0x4ffdec
call fcn.004b2af4
mov eax, dword [0x5089a4]
cmp byte [eax + 0x1c], 0
jne 0x4ff689
mov eax, dword [0x5089a4]
test byte [eax + 0x1d], 8
jne 0x4ff689
xor eax, eax
jmp 0x4ff68b
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x508bb4]
cmp dword [eax], 0
je 0x4ff729
mov eax, dword [0x508bb4]
mov eax, dword [eax]
mov edx, 0x4ffe18
call fcn.004fb1c4
test al, al
je 0x4ff729
cmp byte [ebp - 0x23], 0
jne 0x4ff71f
xor eax, eax
push ebp
push 0x4ff704
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 [0x508bb4]
mov eax, dword [eax]
mov edx, 0x4ffe18
call fcn.004fb2d4
test al, al
je 0x4ff6fa
mov byte [ebp - 0x23], 1
mov eax, 0x4ffe3c
call fcn.004b2870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff729
mov eax, 0x4fff1c
call fcn.004b2870
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x508d94]
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, 0x4fffd4
call fcn.004b2af4
cmp byte [0x510184], 0
jne 0x4ff784
mov eax, dword [0x508e6c]
mov eax, dword [eax]
call fcn.0047dd38
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x4ff784
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4ff755
mov eax, dword [0x508b04]
mov eax, dword [eax]
mov edx, dword [0x508b04]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.004fe888
cmp byte [ebp - 0x23], 0
jne 0x4ff7e4
cmp byte [0x510183], 0
jne 0x4ff82d
cmp byte [0x510184], 0
jne 0x4ff82d
push 0x10040
push 1
push 1
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5089b0]
mov ecx, dword [0x51017c]
call fcn.004fe120
jmp 0x4ff82d
cmp byte [0x510185], 0
jne 0x4ff81d
cmp byte [0x510184], 0
jne 0x4ff819
push 0x10024
push 1
push 6
mov eax, dword [0x5089a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x51017c]
mov al, 0xbb
call fcn.004fe120
cmp eax, 6
jne 0x4ff81d
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x4ff82d
mov eax, 0x500018
call fcn.004b2870
mov dl, 1
mov al, 3
call fcn.004fe888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff917
xor edx, edx
push ebp
push 0x4ff88f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x508b04]
mov eax, dword [eax]
mov edx, dword [0x508b04]
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 0x4ff89e
mov eax, dword [0x508bb4]
cmp dword [eax], 0
je 0x4ff8fa
xor eax, eax
push ebp
push 0x4ff8e1
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 [0x508bb4]
mov eax, dword [eax]
mov edx, 0x500074
call fcn.004fb220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff8fa
mov eax, dword [0x508e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004824a0
ret