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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], eax
mov eax, dword [0x57382c]
cmp dword [eax], 0
je 0x536f2b
mov eax, dword [0x57396c]
cmp dword [eax], 0
jl 0x536dd9
mov eax, dword [ebp - 4]
call fcn.00540ae8
test al, al
je 0x536dd9
mov eax, dword [ebp - 4]
call fcn.00540aa4
test al, al
je 0x536dd9
mov eax, dword [0x57396c]
mov eax, dword [eax]
mov edx, dword [0x57382c]
mov edx, dword [edx]
cmp eax, dword [edx + 8]
jne 0x5369b1
mov eax, dword [0x573808]
mov eax, dword [eax]
mov edx, dword [0x57382c]
mov edx, dword [edx]
cmp eax, dword [edx + 0xc]
je 0x536dd9
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x57396c]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [0x573808]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004e7334
mov byte [ebp - 0x19], al
mov eax, dword [0x573f24]
mov al, byte [eax]
sub al, 1
jb 0x536a0a
je 0x536c6a
jmp 0x536dd9
mov eax, dword [0x57382c]
mov eax, dword [eax]
call fcn.004de388
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov cl, byte [ebp - 0x19]
mov edx, 0xbc3
mov eax, dword [ebp - 4]
call fcn.00540c10
test al, al
je 0x536c5a
cmp dword [ebp - 0x18], 0
jle 0x536c5a
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x19]
call fcn.004e71b0
mov byte [ebp - 0x1d], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5ddd9c]
call fcn.004bc250
test al, al
jne 0x536c23
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1a], 0
cmp byte [ebp - 0x1c], 0
jne 0x536ab3
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x19]
call fcn.004e71b0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0053bda0
test al, al
je 0x536ab3
mov byte [ebp - 0x1d], 1
cmp byte [ebp - 0x1d], 0
jne 0x536b71
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5ddd9c]
call fcn.004bc294
test al, al
jne 0x536b71
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x19]
call fcn.004e7b6c
mov byte [ebp - 0x1a], al
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x1a]
call fcn.004e71b0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5dddc0]
call fcn.004a3aa4
test al, al
jne 0x536b6d
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x19]
call fcn.004e7b94
mov byte [ebp - 0x1a], al
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x1a]
call fcn.004e71b0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5dddc0]
call fcn.004a3aa4
test al, al
je 0x536b71
mov byte [ebp - 0x1c], 1
jmp 0x536b71
mov byte [ebp - 0x1c], 1
cmp byte [ebp - 0x1c], 0
je 0x536bae
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x1a]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dx, 0xbc3
call fcn.004dd190
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573530]
mov dword [edx], eax
jmp 0x536dd9
mov eax, dword [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 - 0x10]
call fcn.004e7334
mov byte [ebp - 0x1b], al
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov al, byte [eax + 0x10]
cmp al, byte [ebp - 0x1b]
je 0x536c13
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x1b]
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
mov eax, dword [0x57396c]
mov dword [eax], 0xffffffff
jmp 0x536dd9
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x19]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dx, 0xbc3
call fcn.004dd190
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573530]
mov dword [edx], eax
jmp 0x536dd9
mov eax, dword [0x57396c]
mov dword [eax], 0xffffffff
jmp 0x536dd9
mov eax, dword [0x574224]
cmp byte [eax], 0
jne 0x536c82
mov eax, dword [0x574178]
cmp dword [eax], 1
jl 0x536dcd
mov eax, dword [0x57382c]
mov eax, dword [eax]
call fcn.004de3c0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004e7178
cmp eax, 2
jl 0x536d58
cmp dword [ebp - 0x18], 0
jle 0x536d58
xor ecx, ecx
mov cl, byte [ebp - 0x19]
mov edx, 0xbc5
mov eax, dword [ebp - 4]
call fcn.00540c10
test al, al
je 0x536d48
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x19]
call fcn.004e726c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [0x5ddd9c]
call fcn.004bc074
test al, al
je 0x536d3b
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x19]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov dx, 0xbc5
call fcn.004dd190
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x573530]
mov dword [edx], eax
jmp 0x536dd9
mov eax, dword [0x573f24]
mov byte [eax], 0
jmp 0x5369b1
mov eax, dword [0x57396c]
mov dword [eax], 0xffffffff
jmp 0x536dd9
mov eax, dword [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 - 0x10]
call fcn.004e7334
mov byte [ebp - 0x1b], al
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov al, byte [eax + 0x10]
cmp al, byte [ebp - 0x1b]
je 0x536dbd
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x1b]
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
mov eax, dword [0x57396c]
mov dword [eax], 0xffffffff
jmp 0x536a0a
mov eax, dword [0x574178]
inc dword [eax]
jmp 0x536a0a
mov eax, dword [0x57396c]
mov dword [eax], 0xffffffff
mov eax, dword [0x57382c]
mov eax, dword [eax]
cmp dword [eax + 0x2a4], 0
jle 0x536f2b
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2a4]
mov edx, dword [ebp - 4]
mov dword [edx + 0x39c], eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2b0]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3a0], eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
cmp dword [eax + 0x2a4], 0xbc9
jne 0x536e85
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ac]
push eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2b0]
push eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2b4]
push eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x2a8]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov edx, dword [eax + 0x2a4]
mov eax, dword [ebp - 4]
call fcn.0053e600
jmp 0x536ec3
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2ac]
push eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2b0]
push eax
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x2a8]
mov eax, dword [0x57382c]
mov eax, dword [eax]
mov edx, dword [eax + 0x2a4]
mov eax, dword [ebp - 4]
call fcn.0053e554
mov eax, dword [0x57382c]
mov eax, dword [eax]
xor edx, edx
mov dword [eax + 0x2a4], edx
mov eax, dword [0x573e58]
cmp dword [eax], 0xffffffff
je 0x536f2b
mov eax, dword [0x573e58]
mov eax, dword [eax]
mov edx, dword [0x57382c]
mov edx, dword [edx]
sub eax, dword [edx + 8]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x536f14
mov eax, dword [0x573d14]
mov eax, dword [eax]
mov edx, dword [0x57382c]
mov edx, dword [edx]
sub eax, dword [edx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x536f2b
mov eax, dword [0x5743f8]
mov eax, dword [eax]
call fcn.00503414
mov eax, dword [0x573e58]
mov dword [eax], 0xffffffff
mov esp, ebp
pop ebp
ret