Function at 0x53b470
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53bd07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov word [eax + 0x3a4], 0
mov eax, dword [0x573dd0]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [0x573c84]
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [0x573ba8]
mov byte [eax], 0
cmp byte [ebp - 5], 1
jne 0x53b4df
mov eax, dword [0x574018]
cmp byte [eax], 0
je 0x53b4df
mov eax, dword [0x5743f8]
mov eax, dword [eax]
call fcn.004f5598
jmp 0x53bce9
cmp byte [ebp - 5], 1
jne 0x53b500
mov eax, dword [0x574114]
cmp byte [eax], 0
je 0x53b500
mov eax, dword [0x5743f8]
mov eax, dword [eax]
call fcn.004f54cc
jmp 0x53bce9
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x574240]
mov eax, dword [eax]
mov cl, byte [ebp + 0x10]
mov dl, byte [ebp - 5]
call fcn.00488cec
test al, al
jne 0x53bce9
mov eax, dword [0x57382c]
cmp dword [eax], 0
je 0x53bce9
mov eax, dword [0x5ddd8c]
mov eax, dword [eax + 0x20]
cmp eax, dword [0x5ddd9c]
jne 0x53bce9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x354]
cmp byte [eax + 0x40], 0
je 0x53b590
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x354]
call fcn.00434afc
mov eax, dword [ebp - 4]
call fcn.0054fc1c
mov eax, dword [ebp - 4]
call fcn.0054fccc
push 0xffffff
mov al, 0xb2
call fcn.00534248
mov ecx, eax
mov edx, 0x53bd20
mov eax, dword [0x5ddd8c]
call fcn.00531b30
test byte [ebp + 0x10], 0x10
je 0x53b7ee
mov al, byte [0x53bd30]
cmp al, byte [ebp + 0x10]
jne 0x53b5ab
mov eax, dword [0x574380]
inc dword [eax]
mov eax, dword [0x574380]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x5ddd9c]
call fcn.004bbbd0
mov dword [ebp - 0x20], eax
mov eax, dword [0x574380]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
je 0x53b5e1
mov eax, dword [0x574380]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 0x20], 0
je 0x53b6ea
test byte [ebp + 0x10], 4
je 0x53b63b
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573530]
sub eax, dword [edx]
cmp eax, 0x3e8
jbe 0x53b63b
mov eax, dword [ebp - 0x20]
mov al, byte [eax + 0x12]
sub al, 2
jb 0x53b613
sub al, 0x94
jne 0x53b63b
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
push eax
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, 0x52
mov eax, dword [ebp - 4]
call fcn.0053d97c
jmp 0x53bce9
test byte [ebp + 0x10], 2
je 0x53b6f3
mov eax, dword [ebp - 0x20]
mov al, byte [eax + 0x12]
sub al, 2
jb 0x53b657
sub al, 0x94
jne 0x53b6f3
mov eax, dword [0x5ddd9c]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.0043c7f0
push 0x53bd3c
mov eax, dword [ebp - 0x20]
push dword [eax + 0x34]
push 0x53bd48
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404f6c
mov edx, dword [ebp - 0x28]
mov eax, dword [0x5ddd9c]
mov eax, dword [eax + 0x30]
call fcn.0043c900
mov eax, dword [0x5ddd9c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov eax, dword [0x5ddd9c]
mov eax, dword [eax + 0x30]
call fcn.00443110
mov dl, byte [0x5734f4]
call fcn.00447da0
lea edx, [ebp - 0x2c]
mov eax, dword [0x5ddd9c]
mov eax, dword [eax + 0x30]
call fcn.0043c8d0
mov eax, dword [ebp - 0x2c]
call fcn.00404eac
mov edx, eax
mov eax, dword [0x5ddd9c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0xdc]
jmp 0x53bce9
mov eax, dword [0x574380]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x57366c]
push eax
mov eax, dword [0x57352c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x5ddd9c]
call fcn.004bb97c
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov edx, dword [0x57366c]
sub eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x53b7c3
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov edx, dword [0x57352c]
sub eax, dword [edx]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x53b7c3
mov eax, dword [0x57352c]
mov eax, dword [eax]
push eax
mov ecx, dword [0x57366c]
mov ecx, dword [ecx]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.004e7334
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00540ae8
test al, al
je 0x53b7ee
mov eax, dword [ebp - 4]
call fcn.00540aa4
test al, al
je 0x53b7ee
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov dx, 0xbc2
call fcn.004dd094
jmp 0x53b7ee
mov eax, dword [0x573f24]
mov byte [eax], 1
mov eax, dword [0x57366c]
mov eax, dword [eax]
mov edx, dword [0x57396c]
mov dword [edx], eax
mov eax, dword [0x57352c]
mov eax, dword [eax]
mov edx, dword [0x573808]
mov dword [edx], eax
jmp 0x53bce9
test byte [ebp + 0x10], 8
je 0x53bce9
mov eax, dword [0x574380]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x5ddd9c]
call fcn.004bbbd0
mov dword [ebp - 0x20], eax
mov eax, dword [0x57366c]
push eax
mov eax, dword [0x57352c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x5ddd9c]
call fcn.004bb97c
mov eax, dword [0x5742ac]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x57357c]
cmp byte [eax + 0x44], 0
je 0x53b937
cmp dword [ebp - 0x20], 0
jne 0x53b937
mov eax, dword [0x57357c]
cmp byte [eax + 0x54], 0x13
jne 0x53b937
mov eax, dword [0x57352c]
mov eax, dword [eax]
push eax
mov ecx, dword [0x57366c]
mov ecx, dword [ecx]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.004e7334
and eax, 0xff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0xc]
call fcn.004e7594
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x5dddc0]
call fcn.004a3aa4
test al, al
je 0x53b8d5
test byte [ebp + 0x10], 1
je 0x53b937
mov eax, dword [ebp - 4]
call fcn.00540ae8
test al, al
je 0x53b92a
mov eax, dword [ebp - 4]
call fcn.00540aa4
test al, al
je 0x53b92a
mov eax, dword [ebp - 4]
call fcn.00540b38
test al, al
je 0x53b92a
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov dx, 0xbc7
call fcn.004dd094
mov eax, dword [0x573ba8]
mov byte [eax], 1
jmp 0x53bce9
test byte [ebp + 0x10], 2
je 0x53ba4f
mov eax, dword [0x57352c]
mov eax, dword [eax]
push eax
mov ecx, dword [0x57366c]
mov ecx, dword [ecx]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.004e7334
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00540ae8
test al, al
je 0x53ba3f
mov eax, dword [ebp - 4]
call fcn.00540aa4
test al, al
je 0x53ba3f
mov ecx, dword [0x57352c]
mov ecx, dword [ecx]
mov edx, dword [0x57366c]
mov edx, dword [edx]
mov eax, dword [0x5ddd9c]
call fcn.004bd2e4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x53ba0e
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
push eax
mov ecx, dword [0x57352c]
mov ecx, dword [ecx]
mov edx, dword [0x57366c]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.0053ee90
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov dx, 0xbc4
call fcn.004dd094
jmp 0x53bce9
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov dx, 0xbc4
call fcn.004dd094
mov eax, dword [0x57396c]
mov dword [eax], 0xffffffff
jmp 0x53bce9
cmp dword [ebp - 0x20], 0
jne 0x53ba5f
test byte [ebp + 0x10], 1
je 0x53bc55
mov eax, dword [0x57396c]
mov dword [eax], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x53bb23
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0x32
jne 0x53ba9b
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, 0x3f2
mov eax, dword [ebp - 4]
call fcn.0053d97c
jmp 0x53bce9
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2c], 0
jne 0x53bce9
mov eax, dword [0x5742ac]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0
je 0x53baf3
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 1
je 0x53baf3
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0x96
je 0x53baf3
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0xc
je 0x53baf3
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x12], 0x32
je 0x53baf3
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x34]
mov eax, 0x53bd54
call fcn.004051f0
test eax, eax
je 0x53bb06
test byte [ebp + 0x10], 1
jne 0x53bb06
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x38], 0x45
jne 0x53bce9
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00539a1c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573f10]
mov dword [edx], eax
jmp 0x53bce9
mov eax, dword [0x57352c]
mov eax, dword [eax]
push eax
mov ecx, dword [0x57366c]
mov ecx, dword [ecx]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.004e7334
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00540ae8
test al, al
je 0x53bc43
mov eax, dword [ebp - 4]
call fcn.00540aa4
test al, al
je 0x53bc43
mov eax, dword [ebp - 4]
call fcn.00540b38
test al, al
je 0x53bc43
mov eax, 3
call fcn.004035d8
add eax, 0xbc6
mov dword [ebp - 0x18], eax
mov eax, dword [0x573714]
cmp byte [eax], 0
je 0x53bbb6
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00539408
test al, al
je 0x53bbb6
mov dword [ebp - 0x18], 0xbcb
mov eax, dword [0x573840]
cmp byte [eax], 0
je 0x53bbe4
mov eax, dword [0x57382c]
mov eax, dword [eax]
cmp word [eax + 0x55], 3
jb 0x53bbe4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005394b0
test al, al
je 0x53bbe4
mov dword [ebp - 0x18], 0xbd0
mov eax, dword [0x573cc8]
cmp byte [eax], 0
je 0x53bc12
mov eax, dword [0x57382c]
mov eax, dword [eax]
cmp word [eax + 0x55], 6
jb 0x53bc12
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00539620
test al, al
je 0x53bc12
mov dword [ebp - 0x18], 0xbdc
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov dx, word [ebp - 0x18]
call fcn.004dd094
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573b40]
mov dword [edx], eax
jmp 0x53bce9
mov eax, dword [0x57366c]
mov eax, dword [eax]
mov edx, dword [0x57382c]
mov edx, dword [edx]
cmp eax, dword [edx + 8]
jne 0x53bc9f
mov eax, dword [0x57352c]
mov eax, dword [eax]
mov edx, dword [0x57382c]
mov edx, dword [edx]
cmp eax, dword [edx + 0xc]
jne 0x53bc9f
mov eax, dword [ebp - 4]
call fcn.00540ae8
test al, al
je 0x53bce9
mov eax, dword [ebp - 4]
call fcn.00540aa4
test al, al
je 0x53bce9
mov eax, dword [ebp - 4]
call fcn.0053e890
jmp 0x53bce9
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573b40]
sub eax, dword [edx]
cmp eax, 0x3e8
jbe 0x53bce9
test byte [ebp + 0x10], 4
je 0x53bcc3
mov eax, dword [0x573f24]
mov byte [eax], 1
jmp 0x53bccb
mov eax, dword [0x573f24]
mov byte [eax], 0
mov eax, dword [0x57366c]
mov eax, dword [eax]
mov edx, dword [0x57396c]
mov dword [edx], eax
mov eax, dword [0x57352c]
mov eax, dword [eax]
mov edx, dword [0x573808]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53bd0e
lea eax, [ebp - 0x2c]
call fcn.00404bec
lea eax, [ebp - 0x28]
call fcn.00404bec
ret