Function at 0x507bc8
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 [0x4010c4]
call fcn.004073a4
xor eax, eax
push ebp
push 0x508512
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5570b4], 0
je 0x507c19
xor eax, eax
call fcn.004e751c
mov byte [ebp - 0x21], 0
mov eax, dword [0x550148]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x54fd3c]
setae byte [eax]
xor edx, edx
push ebp
push 0x508453
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x5570c4], 0
je 0x507c57
mov dl, 1
mov eax, dword [0x5570c4]
call fcn.004ba928
cmp byte [0x5570b2], 0
je 0x507cc4
xor eax, eax
push ebp
push 0x507c97
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5570b8], 0
jne 0x507c83
mov eax, 0x50852c
call fcn.004bb410
jmp 0x507c8d
mov eax, dword [0x5570b8]
call fcn.004bb5f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x507cc4
mov eax, 0x508594
call fcn.004bb650
lea eax, [ebp - 0x2c]
mov ecx, dword [0x55709c]
mov edx, 0x508600
call fcn.00406acc
mov eax, dword [ebp - 0x2c]
call fcn.004bb650
lea eax, [ebp - 0x30]
mov ecx, dword [0x5570a0]
mov edx, 0x508640
call fcn.00406acc
mov eax, dword [ebp - 0x30]
call fcn.004bb650
lea eax, [ebp - 0x38]
call fcn.004799b8
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x50866c
call fcn.00406acc
mov eax, dword [ebp - 0x34]
call fcn.004bb650
call fcn.004e75e4
xor eax, eax
call fcn.005074f4
mov dword [0x5570a8], eax
mov dl, 1
mov eax, dword [0x5067a0]
call fcn.004be50c
mov dword [0x54f87c], eax
mov ecx, dword [0x5570a0]
mov edx, dword [0x5570a8]
mov eax, dword [0x54f87c]
call fcn.004c1144
lea ecx, [ebp - 0x3c]
mov eax, dword [0x54f87c]
mov edx, dword [eax + 0x18]
mov al, 0xb6
call fcn.004b45dc
mov edx, dword [ebp - 0x3c]
mov eax, 0x5570ac
call fcn.00406610
mov eax, dword [0x54f87c]
test byte [eax + 0x1d], 0x20
je 0x507dbf
mov eax, dword [0x54fe44]
cmp byte [eax], 0
jne 0x507dbf
push 1
push 1
mov eax, dword [0x5570ac]
call fcn.0040669c
push eax
mov eax, dword [0x55024c]
mov eax, dword [eax + 0x2f8]
call fcn.0040669c
mov ecx, 0x30
pop edx
call fcn.004e7ecc
call fcn.00412ba0
mov eax, dword [0x54f87c]
test byte [eax + 0x1d], 1
je 0x507e02
call fcn.0047aa68
test al, al
jne 0x507e02
push 1
push 1
mov eax, dword [0x5570ac]
call fcn.0040669c
push eax
mov eax, dword [0x55024c]
mov eax, dword [eax + 0x1d8]
call fcn.0040669c
mov ecx, 0x30
pop edx
call fcn.004e7ecc
call fcn.00412ba0
mov eax, dword [0x5570a8]
xor edx, edx
mov dword [0x5570a8], edx
call fcn.004041cc
mov al, 2
call fcn.005074f4
mov dword [0x5570a8], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050100
mov dx, 0x20
mov eax, dword [0x54f87c]
call fcn.004be9dc
test al, al
jne 0x507e47
mov eax, 0x5086ac
call fcn.004b67bc
cmp dword [0x5570c4], 0
je 0x507e62
lea eax, [ebp - 4]
mov edx, dword [0x5500e8]
mov edx, dword [edx]
call fcn.004054f4
jmp 0x507e6d
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.00507b68
mov eax, dword [0x54f87c]
cmp byte [eax + 0x11], 0
je 0x507e95
mov eax, dword [0x54fe44]
cmp byte [eax], 0
jne 0x507e8c
mov eax, 0x508744
call fcn.004b67bc
mov al, 1
call fcn.004e83bc
jmp 0x507e9c
xor eax, eax
call fcn.004e83bc
call fcn.004e58c8
cmp dword [ebp - 4], 0
je 0x507fa4
call fcn.004e536c
call fcn.004e5c00
mov eax, dword [0x54fd50]
mov edx, dword [0x55709c]
call fcn.00406610
mov eax, dword [0x550198]
mov edx, dword [0x54f87c]
mov edx, dword [edx + 0x14]
call fcn.00406610
movzx eax, byte [0x5570b3]
or al, byte [0x5570b4]
mov edx, dword [0x54fed8]
mov byte [edx], al
mov eax, dword [0x5503e4]
mov edx, dword [ebp - 0x18]
call fcn.00406610
mov eax, dword [0x550028]
mov edx, dword [ebp - 0x14]
call fcn.00406610
mov eax, dword [0x54fe60]
mov edx, dword [ebp - 0x10]
call fcn.00406610
mov eax, dword [0x54ff08]
mov edx, dword [ebp - 0xc]
call fcn.00406610
mov eax, dword [ebp - 8]
test eax, eax
je 0x507f2d
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.00507ab0
mov dl, 1
mov eax, dword [0x513150]
call fcn.00513968
mov edx, dword [0x54ff2c]
mov dword [edx], eax
mov eax, 0x4e6fbc
mov edx, dword [0x54ff2c]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4e71d4
mov edx, dword [0x54ff2c]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4e71e0
mov edx, dword [0x54ff2c]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4e71ec
mov edx, dword [0x54ff2c]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x54ffdc]
mov ecx, dword [ecx]
mov eax, dword [0x54ff2c]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.00513a60
xor edx, edx
push ebp
push 0x5083ff
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x508329
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x54ff2c]
cmp dword [eax], 0
je 0x508033
xor edx, edx
push ebp
push 0x508007
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 [0x54ff2c]
mov eax, dword [eax]
mov edx, 0x5087d8
call fcn.00513c1c
pop dword fs:[0]
add esp, 8
jmp 0x508020
test al, al
jne 0x508033
mov eax, 0x508868
call fcn.004bb650
call fcn.00412ba0
cmp byte [0x5570b3], 0
jne 0x50806d
cmp byte [0x5570b4], 0
jne 0x50806d
push 0x124
push 1
push 6
mov eax, dword [0x54f87c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x5570ac]
mov al, 0x27
call fcn.00506c00
cmp eax, 6
je 0x50806d
call fcn.00412ba0
xor edx, edx
xor eax, eax
call fcn.00507368
jmp 0x50809b
push 0x31
push 1
push 2
mov eax, dword [0x54f87c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x5570ac]
mov al, 0xbc
call fcn.00506c00
dec eax
je 0x50809b
call fcn.00412ba0
mov eax, dword [0x54f87c]
call fcn.004bea30
test al, al
jne 0x508078
jmp 0x5080be
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x550238]
mov eax, dword [eax]
call fcn.00523bdc
mov eax, dword [0x550468]
cmp byte [eax], 0
jne 0x5080ab
mov eax, dword [0x54fd3c]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x54f87c]
mov edx, dword [eax + 0x18]
mov al, 0xa6
call fcn.004b45dc
mov edx, dword [ebp - 0x48]
mov eax, dword [0x550238]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.0047b2bc
call fcn.005069c8
xor edx, edx
mov al, 1
call fcn.00507368
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x54f87c]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x506e84
mov dl, 1
mov eax, dword [0x54f87c]
call fcn.004bf800
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x55013c]
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, 0x5088d0
call fcn.004bb8d4
mov eax, dword [0x54f87c]
cmp byte [eax + 0x1c], 0
jne 0x508169
mov eax, dword [0x54f87c]
test byte [eax + 0x1d], 8
jne 0x508169
xor eax, eax
jmp 0x50816b
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x54ff2c]
cmp dword [eax], 0
je 0x508209
mov eax, dword [0x54ff2c]
mov eax, dword [eax]
mov edx, 0x5088fc
call fcn.00513b0c
test al, al
je 0x508209
cmp byte [ebp - 0x23], 0
jne 0x5081ff
xor eax, eax
push ebp
push 0x5081e4
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 [0x54ff2c]
mov eax, dword [eax]
mov edx, 0x5088fc
call fcn.00513c1c
test al, al
je 0x5081da
mov byte [ebp - 0x23], 1
mov eax, 0x508920
call fcn.004bb650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x508209
mov eax, 0x508a00
call fcn.004bb650
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x55013c]
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, 0x508ab8
call fcn.004bb8d4
cmp byte [0x5570b4], 0
jne 0x508264
mov eax, dword [0x550238]
mov eax, dword [eax]
call fcn.00523bdc
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x508264
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x508235
mov eax, dword [0x54fe78]
mov eax, dword [eax]
mov edx, dword [0x54fe78]
xor ecx, ecx
mov dword [edx], ecx
call fcn.004041cc
mov eax, dword [0x550190]
xor edx, edx
mov dword [eax], edx
mov dl, 1
mov al, 2
call fcn.00507368
cmp byte [ebp - 0x23], 0
jne 0x5082cd
cmp byte [0x5570b3], 0
jne 0x508316
cmp byte [0x5570b4], 0
jne 0x508316
push 0x10040
push 1
push 1
mov eax, dword [0x54f87c]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x54f888]
mov ecx, dword [0x5570ac]
call fcn.00506c00
jmp 0x508316
cmp byte [0x5570b5], 0
jne 0x508306
cmp byte [0x5570b4], 0
jne 0x508302
push 0x10044
push 1
push 6
mov eax, dword [0x54f87c]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x5570ac]
mov al, 0xba
call fcn.00506c00
cmp eax, 6
jne 0x508306
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x508316
mov eax, 0x508afc
call fcn.004bb650
mov dl, 1
mov al, 3
call fcn.00507368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50833d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508409
xor edx, edx
push ebp
push 0x508381
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x54fe78]
mov eax, dword [eax]
mov edx, dword [0x54fe78]
xor ecx, ecx
mov dword [edx], ecx
call fcn.004041cc
mov eax, dword [0x550190]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x508390
mov eax, dword [0x54ff2c]
cmp dword [eax], 0
je 0x5083ec
xor eax, eax
push ebp
push 0x5083d3
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 [0x54ff2c]
mov eax, dword [eax]
mov edx, 0x508b58
call fcn.00513b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5083ec
mov eax, dword [0x550238]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.0047b34c
ret