Function at 0x50a09c
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 0x50a9d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x548184], 0
je 0x50a0ed
xor eax, eax
call fcn.004ec57c
mov byte [ebp - 0x21], 0
mov eax, dword [0x540da0]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x5409f4]
setae byte [eax]
xor edx, edx
push ebp
push 0x50a915
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x548194], 0
je 0x50a12b
mov dl, 1
mov eax, dword [0x548194]
call fcn.004bcafc
cmp byte [0x548182], 0
je 0x50a198
xor eax, eax
push ebp
push 0x50a16b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x548188], 0
jne 0x50a157
mov eax, 0x50a9f0
call fcn.004bd5e4
jmp 0x50a161
mov eax, dword [0x548188]
call fcn.004bd7c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50a198
mov eax, 0x50aa58
call fcn.004bd824
lea eax, [ebp - 0x2c]
mov ecx, dword [0x54816c]
mov edx, 0x50aad0
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004bd824
lea eax, [ebp - 0x30]
mov ecx, dword [0x548170]
mov edx, 0x50ab10
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004bd824
lea eax, [ebp - 0x38]
call fcn.0048bac0
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x50ab3c
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004bd824
call fcn.004ec644
xor eax, eax
call fcn.005099c8
mov dword [0x548178], eax
mov dl, 1
mov eax, dword [0x508cf0]
call fcn.004c06e0
mov dword [0x5409a4], eax
mov ecx, dword [0x548170]
mov edx, dword [0x548178]
mov eax, dword [0x5409a4]
call fcn.004c3300
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5409a4]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.0048f0cc
mov edx, dword [ebp - 0x3c]
mov eax, 0x54817c
call fcn.00406448
mov eax, dword [0x5409a4]
test byte [eax + 0x1d], 0x20
je 0x50a293
mov eax, dword [0x540ad4]
cmp byte [eax], 0
jne 0x50a293
push 1
push 1
mov eax, dword [0x54817c]
call fcn.004064d4
push eax
mov eax, dword [0x540e7c]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004ecf2c
call fcn.0041d280
mov eax, dword [0x5409a4]
test byte [eax + 0x1d], 1
je 0x50a2d6
call fcn.0048cb70
test al, al
jne 0x50a2d6
push 1
push 1
mov eax, dword [0x54817c]
call fcn.004064d4
push eax
mov eax, dword [0x540e7c]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004ecf2c
call fcn.0041d280
mov eax, dword [0x548178]
xor edx, edx
mov dword [0x548178], edx
call fcn.00404098
mov al, 2
call fcn.005099c8
mov dword [0x548178], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050900
mov dx, 0x20
mov eax, dword [0x5409a4]
call fcn.004c0bac
test al, al
jne 0x50a31b
mov eax, 0x50ab7c
call fcn.0049055c
cmp dword [0x548194], 0
je 0x50a336
lea eax, [ebp - 4]
mov edx, dword [0x540d4c]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x50a341
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.0050a03c
mov eax, dword [0x5409a4]
cmp byte [eax + 0x10], 0
je 0x50a369
mov eax, dword [0x540ad4]
cmp byte [eax], 0
jne 0x50a360
mov eax, 0x50ac14
call fcn.0049055c
mov al, 1
call fcn.004ed41c
jmp 0x50a370
xor eax, eax
call fcn.004ed41c
call fcn.004ea734
cmp dword [ebp - 4], 0
je 0x50a478
call fcn.004ea110
call fcn.004eaa6c
mov eax, dword [0x540a04]
mov edx, dword [0x54816c]
call fcn.00406448
mov eax, dword [0x540de0]
mov edx, dword [0x5409a4]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x548183]
or al, byte [0x548184]
mov edx, dword [0x540b64]
mov byte [edx], al
mov eax, dword [0x540fd8]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x540c8c]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x540af0]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x540b90]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x50a401
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.00509f84
mov dl, 1
mov eax, dword [0x5057bc]
call fcn.00505fd4
mov edx, dword [0x540bb4]
mov dword [edx], eax
mov eax, 0x4ec01c
mov edx, dword [0x540bb4]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4ec234
mov edx, dword [0x540bb4]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4ec240
mov edx, dword [0x540bb4]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4ec24c
mov edx, dword [0x540bb4]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x540c50]
mov ecx, dword [ecx]
mov eax, dword [0x540bb4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.005060cc
xor edx, edx
push ebp
push 0x50a8c1
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x50a7f4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x540bb4]
cmp dword [eax], 0
je 0x50a507
xor edx, edx
push ebp
push 0x50a4db
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 [0x540bb4]
mov eax, dword [eax]
mov edx, 0x50aca8
call fcn.00506288
pop dword fs:[0]
add esp, 8
jmp 0x50a4f4
test al, al
jne 0x50a507
mov eax, 0x50ad38
call fcn.004bd824
call fcn.0041d280
cmp byte [0x548183], 0
jne 0x50a541
cmp byte [0x548184], 0
jne 0x50a541
push 0x124
push 1
push 6
mov eax, dword [0x5409a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x54817c]
mov al, 0x27
call fcn.005090d4
cmp eax, 6
je 0x50a541
call fcn.0041d280
xor edx, edx
xor eax, eax
call fcn.0050983c
jmp 0x50a56f
push 0x31
push 1
push 2
mov eax, dword [0x5409a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x54817c]
mov al, 0xbd
call fcn.005090d4
dec eax
je 0x50a56f
call fcn.0041d280
mov eax, dword [0x5409a4]
call fcn.004c0c00
test al, al
jne 0x50a54c
jmp 0x50a592
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x540e6c]
mov eax, dword [eax]
call fcn.00488cec
mov eax, dword [0x541058]
cmp byte [eax], 0
jne 0x50a57f
mov eax, dword [0x5409f4]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5409a4]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.0048f0cc
mov edx, dword [ebp - 0x48]
mov eax, dword [0x540e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.0048d3c4
call fcn.00508f18
xor edx, edx
mov al, 1
call fcn.0050983c
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5409a4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x509358
mov dl, 1
mov eax, dword [0x5409a4]
call fcn.004c19d0
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x540d94]
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, 0x50ada0
call fcn.004bdaa8
mov eax, dword [0x5409a4]
cmp byte [eax + 0x1c], 0
jne 0x50a63d
mov eax, dword [0x5409a4]
test byte [eax + 0x1d], 8
jne 0x50a63d
xor eax, eax
jmp 0x50a63f
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x540bb4]
cmp dword [eax], 0
je 0x50a6dd
mov eax, dword [0x540bb4]
mov eax, dword [eax]
mov edx, 0x50adcc
call fcn.00506178
test al, al
je 0x50a6dd
cmp byte [ebp - 0x23], 0
jne 0x50a6d3
xor eax, eax
push ebp
push 0x50a6b8
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 [0x540bb4]
mov eax, dword [eax]
mov edx, 0x50adcc
call fcn.00506288
test al, al
je 0x50a6ae
mov byte [ebp - 0x23], 1
mov eax, 0x50adf0
call fcn.004bd824
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50a6dd
mov eax, 0x50aed0
call fcn.004bd824
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x540d94]
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, 0x50af88
call fcn.004bdaa8
cmp byte [0x548184], 0
jne 0x50a738
mov eax, dword [0x540e6c]
mov eax, dword [eax]
call fcn.00488cec
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x50a738
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x50a709
mov eax, dword [0x540b04]
mov eax, dword [eax]
mov edx, dword [0x540b04]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.0050983c
cmp byte [ebp - 0x23], 0
jne 0x50a798
cmp byte [0x548183], 0
jne 0x50a7e1
cmp byte [0x548184], 0
jne 0x50a7e1
push 0x10040
push 1
push 1
mov eax, dword [0x5409a4]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5409b0]
mov ecx, dword [0x54817c]
call fcn.005090d4
jmp 0x50a7e1
cmp byte [0x548185], 0
jne 0x50a7d1
cmp byte [0x548184], 0
jne 0x50a7cd
push 0x10024
push 1
push 6
mov eax, dword [0x5409a4]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x54817c]
mov al, 0xbb
call fcn.005090d4
cmp eax, 6
jne 0x50a7d1
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x50a7e1
mov eax, 0x50afcc
call fcn.004bd824
mov dl, 1
mov al, 3
call fcn.0050983c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50a808
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a8cb
xor edx, edx
push ebp
push 0x50a843
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x540b04]
mov eax, dword [eax]
mov edx, dword [0x540b04]
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 0x50a852
mov eax, dword [0x540bb4]
cmp dword [eax], 0
je 0x50a8ae
xor eax, eax
push ebp
push 0x50a895
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 [0x540bb4]
mov eax, dword [eax]
mov edx, 0x50b028
call fcn.005061d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50a8ae
mov eax, dword [0x540e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.0048d454
ret