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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2128]
dec eax
je 0x5b11b0
dec eax
je 0x5b1423
jmp 0x5b16e0
cmp dword [ebp + 8], 0
je 0x5b11c2
mov eax, dword [ebp + 8]
movzx eax, word [eax + 2]
mov dword [ebp - 0x1c], eax
jmp 0x5b11c7
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0xc], 0
je 0x5b140c
cmp dword [ebp - 0x1c], 0
jbe 0x5b140c
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb8], 0
je 0x5b1391
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10f8], 0
jbe 0x5b1391
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10fc], 0
je 0x5b122b
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x10fc]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x10f4]
jbe 0x5b16f2
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x1c]
dec eax
test eax, eax
jb 0x5b126a
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.005b1f80
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x10f8]
jb 0x5b1262
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x5b126a
inc dword [ebp - 0x14]
dec dword [ebp - 0x38]
jne 0x5b1245
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1100], 0
je 0x5b1292
cmp dword [ebp - 0x18], 0
jne 0x5b1292
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10fc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1100], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1100], 0
jne 0x5b12d8
cmp dword [ebp - 0x18], 0
je 0x5b12d8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10fc], 0
jne 0x5b12c0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10fc], eax
jmp 0x5b12d8
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10fc], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1100], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1108], 0
jne 0x5b1302
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1100], 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1104], 1
sbb edx, edx
inc edx
cmp al, dl
je 0x5b1375
mov eax, dword [ebp - 4]
cmp word [eax + 0x2132], 0
je 0x5b1375
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1108], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1100]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1104], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1100]
cmp eax, 1
sbb eax, eax
neg eax
neg al
sbb eax, eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x110c], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x110c]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x2134]
call dword [ebx + 0x2130]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110c]
mov dword [ebp - 0x10], eax
jmp 0x5b16f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1100]
cmp eax, 1
sbb eax, eax
neg eax
neg al
sbb eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5b16f2
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10fc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1100], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1100], 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1104], 1
sbb edx, edx
inc edx
cmp al, dl
je 0x5b16f2
mov eax, dword [ebp - 4]
cmp word [eax + 0x2132], 0
je 0x5b16f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1100]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1104], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x1100]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x2134]
call dword [ebx + 0x2130]
jmp 0x5b16f2
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1100], edx
mov dword [ebp - 0x10], 0xffffffff
jmp 0x5b16f2
cmp dword [ebp + 8], 0
je 0x5b1435
mov eax, dword [ebp + 8]
movzx eax, word [eax + 2]
mov dword [ebp - 0x1c], eax
jmp 0x5b143a
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0xc], 0
je 0x5b16cc
cmp dword [ebp - 0x1c], 0
jbe 0x5b16cc
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1114]
call fcn.005ae634
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1118]
call fcn.005ae634
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2124], 0
jne 0x5b1512
mov eax, dword [ebp - 0x1c]
dec eax
test eax, eax
jl 0x5b1505
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x1924]
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax*4 + 0x1124]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1114]
call fcn.005ae560
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x1d24]
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax*4 + 0x1524]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1118]
call fcn.005ae560
inc dword [ebp - 0x20]
dec dword [ebp - 0x38]
jne 0x5b14a5
mov eax, dword [ebp - 4]
mov dword [eax + 0x2124], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x1100], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1924]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1d24]
jne 0x5b1619
mov eax, dword [ebp - 0x1c]
dec eax
test eax, eax
jl 0x5b1619
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
push 0x10200
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1118]
call fcn.005add70
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x5b15f3
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 0x1124]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 0x1924], 0
jbe 0x5b15de
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 0x1924]
dec eax
test eax, eax
jl 0x5b15de
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], 0
fld dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
fcomp dword [eax]
fnstsw ax
sahf
jae 0x5b15d2
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
add dword [ebp - 0x30], 4
inc dword [ebp - 0x24]
dec dword [ebp - 0x3c]
jne 0x5b15bd
fld dword [ebp - 0x34]
fcomp dword [ebp - 0x28]
fnstsw ax
sahf
seta al
neg al
sbb eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x5b15fa
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x2c], 0
je 0x5b160d
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1100], edx
jmp 0x5b1619
inc dword [ebp - 0x20]
dec dword [ebp - 0x38]
jne 0x5b154e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1108], 0
jne 0x5b1643
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1100], 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1104], 1
sbb edx, edx
inc edx
cmp al, dl
je 0x5b16b3
mov eax, dword [ebp - 4]
cmp word [eax + 0x2132], 0
je 0x5b16b3
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1108], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1100]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1104], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1100]
cmp eax, 1
sbb eax, eax
neg eax
neg al
sbb eax, eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x110c], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x110c]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x2134]
call dword [ebx + 0x2130]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110c]
mov dword [ebp - 0x10], eax
jmp 0x5b16f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1100]
cmp eax, 1
sbb eax, eax
neg eax
neg al
sbb eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5b16f2
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1100], edx
mov dword [ebp - 0x10], 0xffffffff
jmp 0x5b16f2
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1100], edx
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret 8