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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x5389cc
movzx eax, word [ebx + 0x1a]
movzx edx, byte [ebx + 0x3c]
add eax, edx
mov edx, dword [0x55359c]
mov edx, dword [edx]
movzx edx, word [edx + 0x54]
cmp eax, edx
jbe 0x538700
cmp byte [ebx + 0x17], 0
jne 0x5389bd
cmp byte [ebx + 0x17], 0
jne 0x53879e
cmp word [ebx + 8], 0x1a
jne 0x538729
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5531e0]
sub eax, dword [edx]
cmp eax, 0x2710
jb 0x5389cc
cmp word [ebx + 8], 0x1b
jne 0x538748
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5537c0]
sub eax, dword [edx]
cmp eax, 0xbb8
jb 0x5389cc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x553484]
sub eax, dword [edx]
mov edx, dword [0x553584]
cmp eax, dword [edx]
jbe 0x5389cc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x553484]
mov dword [edx], eax
mov eax, dword [0x5533c0]
xor edx, edx
mov dword [eax], edx
push 0
movzx eax, word [ebx + 8]
push eax
push 0
mov eax, dword [0x55359c]
mov eax, dword [eax]
movzx ecx, byte [eax + 0x10]
mov edx, 0xbc9
mov eax, esi
call fcn.0053bba4
jmp 0x5389cc
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0xaf
mov eax, 0x186
call fcn.0052c824
mov dword [ebp - 0xc], eax
movzx eax, word [ebx + 8]
cmp ax, 2
je 0x5387d3
cmp ax, 0xe
je 0x5387d3
cmp ax, 0xf
je 0x5387d3
cmp ax, 0x13
jne 0x5387e4
mov eax, dword [0x553654]
mov eax, dword [eax]
mov edx, dword [0x553a1c]
mov dword [edx], eax
jmp 0x53882f
mov eax, dword [0x5531a0]
cmp byte [eax], 0
je 0x538811
mov edx, dword [0x553654]
mov edx, dword [edx]
mov eax, dword [0x6ce494]
call fcn.005256b8
test al, al
je 0x538820
mov eax, dword [0x553654]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
jne 0x538820
mov eax, dword [0x553654]
mov eax, dword [eax]
mov edx, dword [0x5535b8]
mov dword [edx], eax
mov eax, dword [0x5535b8]
mov eax, dword [eax]
mov edx, dword [0x553a1c]
mov dword [edx], eax
mov edx, dword [0x553a1c]
mov edx, dword [edx]
mov eax, dword [0x6ce494]
call fcn.005256b8
test al, al
jne 0x53884e
mov eax, dword [0x553a1c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x553a1c]
cmp dword [eax], 0
jne 0x538874
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [0x6ce494]
call fcn.00524ce4
xor edi, edi
jmp 0x538898
mov eax, dword [0x553a1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x553a1c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x553a1c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov eax, esi
call fcn.0053d3b8
test al, al
je 0x5389cc
mov eax, esi
call fcn.0053d38c
test al, al
je 0x5389cc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x553484]
mov dword [edx], eax
mov eax, 0x24
call fcn.00402f18
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, 0x24
call fcn.00403b4c
movzx eax, byte [ebx + 0x18]
mov dword [esi + 0x10], eax
movzx eax, word [ebx + 8]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebx + 0x38]
add eax, 0xc8
mov edx, dword [0x5533c0]
mov dword [edx], eax
mov eax, dword [esi + 4]
cmp eax, 0x1f
ja case.0x53890e.0
movzx eax, byte [eax + 0x538915]
jmp dword [eax*4 + 0x538935]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x553258]
mov dword [edx], eax
mov eax, dword [0x5532b4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x553a1c]
cmp dword [eax], 0
je 0x538983
mov eax, dword [0x553a1c]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0
jne 0x538983
mov eax, 0x44c
call fcn.00403540
add eax, 0x12c
mov edx, dword [0x5532b4]
mov dword [edx], eax
mov eax, dword [0x553804]
cmp byte [eax + 0xb0], 0
je 0x53899a
movzx eax, word [ebx + 8]
call fcn.00520cc4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push edi
push 0
push 0
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dx, 0xbc9
call fcn.0052def0
jmp 0x5389cc
mov edx, 0x5389e0
mov eax, dword [0x6ce484]
call fcn.0051c790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8