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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
mov esi, dword [0x55359c]
cmp dword [esi], 0
je 0x53796e
mov eax, dword [0x55364c]
cmp dword [eax], 0
jl 0x537888
mov eax, ebx
call fcn.0053d3b8
test al, al
je 0x537888
mov eax, ebx
call fcn.0053d38c
test al, al
je 0x537888
mov eax, dword [0x55364c]
mov eax, dword [eax]
mov edx, dword [esi]
cmp eax, dword [edx + 8]
jne 0x537430
mov eax, dword [0x553588]
mov eax, dword [eax]
mov edx, dword [esi]
cmp eax, dword [edx + 0xc]
je 0x537888
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov edi, dword [0x55364c]
mov edi, dword [edi]
mov ebp, dword [0x553588]
mov ebp, dword [ebp]
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0052c5e4
mov byte [esp + 0xc], al
mov eax, dword [0x5539fc]
movzx eax, byte [eax]
sub al, 1
jb 0x53747d
je 0x5376a5
jmp 0x537888
mov eax, dword [esi]
call fcn.0052ed60
mov dword [esp + 8], eax
movzx ecx, byte [esp + 0xc]
mov edx, 0xbc3
mov eax, ebx
call fcn.0053d4cc
test al, al
je 0x537695
cmp dword [esp + 8], 0
jle 0x537695
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0052c4ac
mov byte [esp + 0xf], 0
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [0x6ce494]
call fcn.005254bc
test al, al
jne 0x537661
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
cmp byte [esp + 0xe], 0
jne 0x537523
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0052c4ac
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.00539e88
test al, al
je 0x537523
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x5375db
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [0x6ce494]
call fcn.005254f4
test al, al
jne 0x5375db
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0xc]
call fcn.0052cd08
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xd]
call fcn.0052c4ac
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [0x6ce4b8]
call fcn.00501f24
test al, al
jne 0x5375d6
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0xc]
call fcn.0052cd18
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xd]
call fcn.0052c4ac
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [0x6ce4b8]
call fcn.00501f24
test al, al
je 0x5375db
mov byte [esp + 0xe], 1
jmp 0x5375db
mov byte [esp + 0xe], 1
cmp byte [esp + 0xe], 0
je 0x537616
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x11]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc3
call fcn.0052dfcc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5533bc]
mov dword [edx], eax
jmp 0x537888
push ebp
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, edi
call fcn.0052c5e4
mov edx, dword [esi]
cmp al, byte [edx + 0x10]
je 0x537651
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push edx
movzx eax, al
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [esi]
mov dx, 0xbc2
call fcn.0052def0
mov eax, dword [0x55364c]
mov dword [eax], 0xffffffff
jmp 0x537888
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc3
call fcn.0052dfcc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5533bc]
mov dword [edx], eax
jmp 0x537888
mov eax, dword [0x55364c]
mov dword [eax], 0xffffffff
jmp 0x537888
mov eax, dword [0x5531ec]
cmp byte [eax], 0
jne 0x5376bd
mov eax, dword [0x553170]
cmp dword [eax], 1
jl 0x53787c
mov eax, dword [esi]
call fcn.0052ed84
mov dword [esp + 8], eax
mov eax, dword [esi]
cmp byte [eax + 0x16], 0
je 0x53777f
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0052c480
cmp eax, 3
jl 0x53777f
cmp dword [esp + 8], 0
jle 0x53777f
movzx ecx, byte [esp + 0xc]
mov edx, 0xbdb
mov eax, ebx
call fcn.0053d4cc
test al, al
je 0x53777f
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0052c578
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [0x6ce494]
call fcn.00525348
test al, al
je 0x537772
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbdb
call fcn.0052dfcc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5533bc]
mov dword [edx], eax
jmp 0x537888
mov eax, dword [0x5539fc]
mov byte [eax], 0
jmp 0x537430
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0052c480
cmp eax, 2
jl 0x537831
cmp dword [esp + 8], 0
jle 0x537831
movzx edi, byte [esp + 0xc]
mov ecx, edi
mov edx, 0xbc5
mov eax, ebx
call fcn.0053d4cc
test al, al
je 0x537824
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0052c50c
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [0x6ce494]
call fcn.00525348
test al, al
je 0x537817
mov eax, dword [esp + 4]
push eax
push edi
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc5
call fcn.0052dfcc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5533bc]
mov dword [edx], eax
jmp 0x537888
mov eax, dword [0x5539fc]
mov byte [eax], 0
jmp 0x537430
mov eax, dword [0x55364c]
mov dword [eax], 0xffffffff
jmp 0x537888
push ebp
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, edi
call fcn.0052c5e4
mov edx, dword [esi]
cmp al, byte [edx + 0x10]
je 0x53786c
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push edx
movzx eax, al
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [esi]
mov dx, 0xbc2
call fcn.0052def0
mov eax, dword [0x55364c]
mov dword [eax], 0xffffffff
jmp 0x53747d
mov eax, dword [0x553170]
inc dword [eax]
jmp 0x53747d
mov eax, dword [0x55364c]
mov dword [eax], 0xffffffff
mov eax, dword [esi]
mov eax, dword [eax + 0x260]
test eax, eax
jle 0x53796e
mov dword [ebx + 0x3dc], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x26c]
mov dword [ebx + 0x3e0], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x260]
cmp eax, 0xbc9
jne 0x5378f4
mov edx, dword [esi]
mov edx, dword [edx + 0x268]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x26c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x270]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x264]
mov edx, eax
mov eax, ebx
call fcn.0053bba4
jmp 0x537917
mov edx, dword [esi]
mov edx, dword [edx + 0x268]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x26c]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x264]
mov edx, eax
mov eax, ebx
call fcn.0053bb0c
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x260], edx
mov eax, dword [0x55397c]
cmp dword [eax], 0xffffffff
je 0x53796e
mov eax, dword [0x55397c]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 8]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x537957
mov eax, dword [0x5538b8]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x53796e
mov eax, dword [0x5539d0]
mov eax, dword [eax]
call fcn.00510358
mov eax, dword [0x55397c]
mov dword [eax], 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret