Function at 0x506880
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 0x5071b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x527184], 0
je 0x5068d1
xor eax, eax
call fcn.004e8d60
mov byte [ebp - 0x21], 0
mov eax, dword [0x51fda0]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x51f9f4]
setae byte [eax]
xor edx, edx
push ebp
push 0x5070f9
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x527194], 0
je 0x50690f
mov dl, 1
mov eax, dword [0x527194]
call fcn.004b92e0
cmp byte [0x527182], 0
je 0x50697c
xor eax, eax
push ebp
push 0x50694f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x527188], 0
jne 0x50693b
mov eax, 0x5071d4
call fcn.004b9dc8
jmp 0x506945
mov eax, dword [0x527188]
call fcn.004b9fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50697c
mov eax, 0x50723c
call fcn.004ba008
lea eax, [ebp - 0x2c]
mov ecx, dword [0x52716c]
mov edx, 0x5072b4
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004ba008
lea eax, [ebp - 0x30]
mov ecx, dword [0x527170]
mov edx, 0x5072f4
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004ba008
lea eax, [ebp - 0x38]
call fcn.00487b9c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x507320
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004ba008
call fcn.004e8e28
xor eax, eax
call fcn.005061ac
mov dword [0x527178], eax
mov dl, 1
mov eax, dword [0x5054d4]
call fcn.004bcec4
mov dword [0x51f9a4], eax
mov ecx, dword [0x527170]
mov edx, dword [0x527178]
mov eax, dword [0x51f9a4]
call fcn.004bfae4
lea ecx, [ebp - 0x3c]
mov eax, dword [0x51f9a4]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.0048ad9c
mov edx, dword [ebp - 0x3c]
mov eax, 0x52717c
call fcn.00406448
mov eax, dword [0x51f9a4]
test byte [eax + 0x1d], 0x20
je 0x506a77
mov eax, dword [0x51fad4]
cmp byte [eax], 0
jne 0x506a77
push 1
push 1
mov eax, dword [0x52717c]
call fcn.004064d4
push eax
mov eax, dword [0x51fe7c]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e9710
call fcn.00419a9c
mov eax, dword [0x51f9a4]
test byte [eax + 0x1d], 1
je 0x506aba
call fcn.00488c4c
test al, al
jne 0x506aba
push 1
push 1
mov eax, dword [0x52717c]
call fcn.004064d4
push eax
mov eax, dword [0x51fe7c]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004e9710
call fcn.00419a9c
mov eax, dword [0x527178]
xor edx, edx
mov dword [0x527178], edx
call fcn.00404098
mov al, 2
call fcn.005061ac
mov dword [0x527178], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050900
mov dx, 0x20
mov eax, dword [0x51f9a4]
call fcn.004bd390
test al, al
jne 0x506aff
mov eax, 0x507360
call fcn.0048d514
cmp dword [0x527194], 0
je 0x506b1a
lea eax, [ebp - 4]
mov edx, dword [0x51fd4c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x506b25
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.00506820
mov eax, dword [0x51f9a4]
cmp byte [eax + 0x10], 0
je 0x506b4d
mov eax, dword [0x51fad4]
cmp byte [eax], 0
jne 0x506b44
mov eax, 0x5073f8
call fcn.0048d514
mov al, 1
call fcn.004e9c00
jmp 0x506b54
xor eax, eax
call fcn.004e9c00
call fcn.004e6f18
cmp dword [ebp - 4], 0
je 0x506c5c
call fcn.004e68f4
call fcn.004e7250
mov eax, dword [0x51fa04]
mov edx, dword [0x52716c]
call fcn.00406448
mov eax, dword [0x51fde0]
mov edx, dword [0x51f9a4]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x527183]
or al, byte [0x527184]
mov edx, dword [0x51fb64]
mov byte [edx], al
mov eax, dword [0x51ffd8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x51fc8c]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x51faf0]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x51fb90]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x506be5
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.00506768
mov dl, 1
mov eax, dword [0x501fa0]
call fcn.005027b8
mov edx, dword [0x51fbb4]
mov dword [edx], eax
mov eax, 0x4e8800
mov edx, dword [0x51fbb4]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e8a18
mov edx, dword [0x51fbb4]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e8a24
mov edx, dword [0x51fbb4]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e8a30
mov edx, dword [0x51fbb4]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x51fc50]
mov ecx, dword [ecx]
mov eax, dword [0x51fbb4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.005028b0
xor edx, edx
push ebp
push 0x5070a5
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x506fd8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x51fbb4]
cmp dword [eax], 0
je 0x506ceb
xor edx, edx
push ebp
push 0x506cbf
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 [0x51fbb4]
mov eax, dword [eax]
mov edx, 0x50748c
call fcn.00502a6c
pop dword fs:[0]
add esp, 8
jmp 0x506cd8
test al, al
jne 0x506ceb
mov eax, 0x50751c
call fcn.004ba008
call fcn.00419a9c
cmp byte [0x527183], 0
jne 0x506d25
cmp byte [0x527184], 0
jne 0x506d25
push 0x124
push 1
push 6
mov eax, dword [0x51f9a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x52717c]
mov al, 0x27
call fcn.005058b8
cmp eax, 6
je 0x506d25
call fcn.00419a9c
xor edx, edx
xor eax, eax
call fcn.00506020
jmp 0x506d53
push 0x31
push 1
push 2
mov eax, dword [0x51f9a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x52717c]
mov al, 0xbd
call fcn.005058b8
dec eax
je 0x506d53
call fcn.00419a9c
mov eax, dword [0x51f9a4]
call fcn.004bd3e4
test al, al
jne 0x506d30
jmp 0x506d76
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x51fe6c]
mov eax, dword [eax]
call fcn.00484528
mov eax, dword [0x520058]
cmp byte [eax], 0
jne 0x506d63
mov eax, dword [0x51f9f4]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x51f9a4]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.0048ad9c
mov edx, dword [ebp - 0x48]
mov eax, dword [0x51fe6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004894a0
call fcn.005056fc
xor edx, edx
mov al, 1
call fcn.00506020
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x51f9a4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x505b3c
mov dl, 1
mov eax, dword [0x51f9a4]
call fcn.004be1b4
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x51fd94]
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, 0x507584
call fcn.004ba28c
mov eax, dword [0x51f9a4]
cmp byte [eax + 0x1c], 0
jne 0x506e21
mov eax, dword [0x51f9a4]
test byte [eax + 0x1d], 8
jne 0x506e21
xor eax, eax
jmp 0x506e23
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x51fbb4]
cmp dword [eax], 0
je 0x506ec1
mov eax, dword [0x51fbb4]
mov eax, dword [eax]
mov edx, 0x5075b0
call fcn.0050295c
test al, al
je 0x506ec1
cmp byte [ebp - 0x23], 0
jne 0x506eb7
xor eax, eax
push ebp
push 0x506e9c
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 [0x51fbb4]
mov eax, dword [eax]
mov edx, 0x5075b0
call fcn.00502a6c
test al, al
je 0x506e92
mov byte [ebp - 0x23], 1
mov eax, 0x5075d4
call fcn.004ba008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x506ec1
mov eax, 0x5076b4
call fcn.004ba008
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x51fd94]
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, 0x50776c
call fcn.004ba28c
cmp byte [0x527184], 0
jne 0x506f1c
mov eax, dword [0x51fe6c]
mov eax, dword [eax]
call fcn.00484528
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x506f1c
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x506eed
mov eax, dword [0x51fb04]
mov eax, dword [eax]
mov edx, dword [0x51fb04]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.00506020
cmp byte [ebp - 0x23], 0
jne 0x506f7c
cmp byte [0x527183], 0
jne 0x506fc5
cmp byte [0x527184], 0
jne 0x506fc5
push 0x10040
push 1
push 1
mov eax, dword [0x51f9a4]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x51f9b0]
mov ecx, dword [0x52717c]
call fcn.005058b8
jmp 0x506fc5
cmp byte [0x527185], 0
jne 0x506fb5
cmp byte [0x527184], 0
jne 0x506fb1
push 0x10024
push 1
push 6
mov eax, dword [0x51f9a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x52717c]
mov al, 0xbb
call fcn.005058b8
cmp eax, 6
jne 0x506fb5
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x506fc5
mov eax, 0x5077b0
call fcn.004ba008
mov dl, 1
mov al, 3
call fcn.00506020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x506fec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5070af
xor edx, edx
push ebp
push 0x507027
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x51fb04]
mov eax, dword [eax]
mov edx, dword [0x51fb04]
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 0x507036
mov eax, dword [0x51fbb4]
cmp dword [eax], 0
je 0x507092
xor eax, eax
push ebp
push 0x507079
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 [0x51fbb4]
mov eax, dword [eax]
mov edx, 0x50780c
call fcn.005029b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x507092
mov eax, dword [0x51fe6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.00489530
ret