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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53829d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0x1388
je 0x537e9b
cmp dword [ebp - 8], 0x1388
je 0x537e9b
cmp dword [ebp + 8], 0
je 0x538287
cmp dword [ebp - 8], 0x1388
jne 0x537f01
cmp dword [ebp - 0xc], 0x1388
jne 0x537f01
mov eax, dword [0x573534]
mov dword [eax], 0x1c2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x57368c]
mov dword [edx], eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
push eax
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
xor edx, edx
mov ax, 0x13bf
call fcn.0048292c
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00482c34
mov edx, dword [ebp - 0x34]
mov eax, dword [0x5ddd88]
call fcn.0053d8a4
jmp 0x538287
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x1a]
mov edx, dword [ebp + 8]
movzx edx, byte [edx + 0x3c]
add eax, edx
mov edx, dword [0x57382c]
mov edx, dword [edx]
movzx edx, word [edx + 0x55]
cmp eax, edx
jbe 0x537f2e
mov eax, dword [ebp + 8]
cmp byte [eax + 0x17], 0
jne 0x538278
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
sub ax, 3
je 0x538287
dec ax
je 0x538287
sub ax, 3
je 0x538287
sub ax, 0x3c
je 0x538287
mov eax, dword [ebp + 8]
cmp byte [eax + 0x17], 0
jne 0x538010
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x1a
jne 0x537f8b
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x574208]
sub eax, dword [edx]
cmp eax, 0x2710
jb 0x538287
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x4a
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x1b
jne 0x537fb5
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573bac]
sub eax, dword [edx]
cmp eax, 0xbb8
jb 0x538287
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x57368c]
sub eax, dword [edx]
mov edx, dword [0x5737ec]
cmp eax, dword [edx]
jbe 0x538287
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x57368c]
mov dword [edx], eax
mov eax, dword [0x573534]
xor edx, edx
mov dword [eax], edx
push 0
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
push eax
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.0053e600
jmp 0x538287
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, 0xaf
mov eax, 0x186
call fcn.004e7634
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0054dd08
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
cmp ax, 0x3f
ja 0x53804b
and eax, 0x7f
bt dword [0x5382ac], eax
jae 0x53805e
mov eax, dword [0x573978]
mov eax, dword [eax]
mov edx, dword [0x573f5c]
mov dword [edx], eax
jmp 0x5380b6
mov eax, dword [0x5741b4]
cmp byte [eax], 0
je 0x538098
mov edx, dword [0x573978]
mov edx, dword [edx]
mov eax, dword [0x5ddd9c]
call fcn.004bc444
test al, al
je 0x5380a7
mov eax, dword [0x573978]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
jne 0x5380a7
mov eax, dword [0x573978]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0x32
je 0x5380a7
mov eax, dword [0x573978]
mov eax, dword [eax]
mov edx, dword [0x57384c]
mov dword [edx], eax
mov eax, dword [0x57384c]
mov eax, dword [eax]
mov edx, dword [0x573f5c]
mov dword [edx], eax
mov edx, dword [0x573f5c]
mov edx, dword [edx]
mov eax, dword [0x5ddd9c]
call fcn.004bc444
test al, al
je 0x5380d9
mov eax, dword [0x573f5c]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
je 0x5380e2
mov eax, dword [0x573f5c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x573f5c]
cmp dword [eax], 0
jne 0x53810b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5ddd9c]
call fcn.004bb97c
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x538132
mov eax, dword [0x573f5c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x573f5c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x573f5c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.00540ae8
test al, al
je 0x538287
mov eax, dword [ebp - 4]
call fcn.00540aa4
test al, al
je 0x538287
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x57368c]
mov dword [edx], eax
mov eax, 0x24
call fcn.00402b20
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, 0x24
call fcn.004035b8
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x18]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
add eax, 0xc8
mov edx, dword [0x573534]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp eax, 0x1f
ja case.0x5381c0.0
mov al, byte [eax + 0x5381c7]
jmp dword [eax*4 + 0x5381e7]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5742c4]
mov dword [edx], eax
mov eax, dword [0x57433c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x573f5c]
cmp dword [eax], 0
je 0x53824f
mov eax, dword [0x573f5c]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0
je 0x538238
mov eax, dword [0x573f5c]
mov eax, dword [eax]
cmp byte [eax + 0x12], 1
je 0x538238
mov eax, dword [0x573f5c]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0x96
jne 0x53824f
mov eax, 0x44c
call fcn.004035d8
add eax, 0x12c
mov edx, dword [0x57433c]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dx, 0xbc9
call fcn.004dd094
jmp 0x538287
mov edx, 0x5382bc
mov eax, dword [0x5ddd8c]
call fcn.0053197c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5382a4
lea eax, [ebp - 0x34]
call fcn.00404bec
ret