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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x3550]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x115a6da
test dword [ecx + 0x138], 0x200
jne 0x115a6da
cmp dword [edi + 0xa60], 0
jne 0x115a6da
cmp dword [edi + 0xa50], 0
jne 0x115a6da
test byte [ecx + 0x710], 0x40
jne 0x115ad20
cmp dword [ecx + 0x22c], 0
je 0x115ad20
mov edx, dword [eax + 0x2f8]
push ebx
push esi
lea ecx, [ebp - 0x24]
push ecx
call edx
mov ecx, dword [edi]
lea eax, [ebp - 0x24]
push eax
push ecx
call fcn.01029e50
mov ecx, dword [edi]
cmp dword [ecx + 0x1e5e4], 0
mov esi, eax
mov dword [ebp - 0x10], esi
mov ebx, 1
je 0x115a725
mov dword [ecx + 0x1e5e4], 0
jmp 0x115a8ed
mov eax, dword [ecx + 0x3550]
mov edx, dword [eax + 0x230]
cmp edx, ebx
jne 0x115a76a
cmp dword [ecx + 0x1e908], 0
jne 0x115ad1e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x36ee80
jae 0x115ad1e
mov edx, dword [edi]
cmp dword [edx + 0x12974], 0
jne 0x115ad1e
mov dword [ebp - 4], ebx
jmp 0x115a8ed
cmp dword [ebp + 0x10], 0
je 0x115a79a
cmp dword [eax + 0x1c], 0
je 0x115a79a
test byte [eax + 0x224], bl
je 0x115a79a
test edx, edx
jne 0x115a79a
mov ecx, esi
sub ecx, dword [eax + 0x17c]
cmp ecx, 0x15f90
jbe 0x115a79a
mov dword [ebp - 4], ebx
jmp 0x115a8ed
cmp dword [edi + 0xa48], 0
jne 0x115a7e8
cmp dword [eax + 0x1c], 0
jne 0x115a7e8
cmp dword [ebp + 0xc], 0x12c
jbe 0x115a7e8
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x115a7e8
cmp dword [eax + 0x17c], 0
je 0x115a7e8
mov ebx, esi
sub ebx, ecx
cmp ebx, 0xa8c
jbe 0x115a7e8
mov dword [eax + 0x1c], 1
mov edx, dword [edi]
mov eax, dword [edx + 0x3550]
push eax
call fcn.0103e180
jmp 0x115a8ed
mov ecx, dword [eax + 0x17c]
test ecx, ecx
je 0x115ad1e
test edx, edx
je 0x115a809
movzx ebx, word [ebp - 0x20]
add ebx, 2
cmp edx, ebx
jne 0x115ad1e
sub esi, ecx
cmp esi, 0xe4c
jbe 0x115ad1e
mov ebx, dword [eax + 0x234]
cmp ebx, 4
jl 0x115a85a
test byte [eax + 0x224], 0x20
je 0x115a851
mov ecx, dword [ebp - 0x1a]
push ecx
push edi
call fcn.01056150
test eax, eax
jne 0x115a851
cmp esi, 0x15f90
jbe 0x115ad1e
mov dword [ebp - 4], 1
jmp 0x115a8ed
cmp ebx, 4
jge 0x115a8de
cmp esi, 0x7080
jbe 0x115ad1e
cmp esi, 0x1fa40
jbe 0x115a877
mov dword [ebp - 4], 1
jmp 0x115a8ed
push edi
call fcn.01056110
test eax, eax
je 0x115ad1e
mov edx, dword [edi]
mov eax, dword [edx + 0x3550]
mov eax, dword [eax + 0x234]
mov ecx, dword [ebp - 0x1c]
test eax, eax
jne 0x115a8a3
lea edx, [ecx - 1]
cmp dx, 6
jbe 0x115a8ed
cmp eax, 1
jne 0x115a8b1
lea edx, [ecx - 9]
cmp dx, 2
jbe 0x115a8ed
cmp eax, 2
jne 0x115a8c6
cmp cx, 0xc
jbe 0x115a8c6
cmp cx, 0x11
jb 0x115ad1e
cmp eax, 3
jne 0x115ad1e
add ecx, 0xffffffee
cmp cx, 5
ja 0x115ad1e
jmp 0x115a8ed
movzx eax, word [ebp - 0x1c]
add ebx, 0xfffffffc
cmp ebx, eax
jne 0x115ad1e
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], ebx
call fcn.010f32a0
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x115aaaf
mov esi, dword [edi]
cmp dword [esi + 0x12974], ebx
jne 0x115ab0f
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x2a4]
mov dword [ebp + 0xc], ecx
xor edi, edi
call edx
mov dword [ebp - 8], eax
cmp eax, 0xea60
ja 0x115a951
cmp dword [esi + 0x1e5ac], ebx
jne 0x115a951
mov eax, dword [esi + 0x3550]
cmp eax, ebx
je 0x115ab0f
cmp dword [eax + 0x168], ebx
jne 0x115ab0f
cmp dword [esi + 0x8298], ebx
je 0x115a96b
cmp dword [esi + 0x82a8], ebx
je 0x115a96b
mov edi, 1
jmp 0x115aa8d
push 0
lea ebx, [esi + 0x8444]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x82a8], edi
jne 0x115a98c
push esi
call fcn.010ed300
test eax, eax
je 0x115a9e1
cmp dword [esi + 0x8298], edi
je 0x115a99e
mov edi, 1
jmp 0x115aa8d
push esi
call fcn.01112060
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.011581f0
mov edi, eax
cmp edi, 1
jne 0x115a9c0
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x115a9d8
mov ecx, dword [esi]
push ecx
call fcn.01127610
test eax, eax
je 0x115a9d8
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.011581f0
mov edi, eax
cmp edi, 1
je 0x115aa8d
cmp dword [esi + 0x8450], 0
jne 0x115aa8d
mov eax, dword [esi + 0x13d0c]
add eax, 0x927c0
cmp dword [ebp - 8], eax
jbe 0x115aa30
mov ecx, dword [ebp - 8]
mov ebx, 1
mov dword [esi + 0x13d0c], ecx
mov dword [esi + 0x13d08], ebx
test ebx, ebx
je 0x115aa30
push esi
call fcn.01112060
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.011581f0
mov edi, eax
dec ebx
cmp edi, 1
jne 0x115aa12
jmp 0x115aa8d
cmp edi, 1
je 0x115aa8d
mov eax, dword [esi + 0x3550]
test eax, eax
je 0x115aa54
test dword [eax + 0x138], 0x20000000
jne 0x115aa8d
cmp dword [eax + 0x270], 0
jne 0x115aa8d
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x115aa6a
cmp dword [esi + 0x1d780], 0
jne 0x115aa78
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.011587f0
mov edi, eax
jmp 0x115aa7b
mov ebx, dword [ebp + 0xc]
cmp edi, 1
je 0x115aa8d
mov eax, dword [ebx + 0x14]
push 6
push 0
push 0
push ebx
push esi
call eax
push 1
add esi, 0x829c
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp edi, 1
jne 0x115ab0f
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp + 0x10], edi
call fcn.01153bc0
jmp 0x115ab0f
mov esi, 1
mov dword [ebp + 0x10], esi
cmp dword [ebp - 4], ebx
jne 0x115aae0
mov eax, dword [edi]
mov edx, dword [eax + 0x3550]
test byte [edx + 0x224], 8
je 0x115aae0
push ebx
push eax
call fcn.01029bb0
test eax, eax
je 0x115aae0
mov dword [ebp - 0xc], esi
xor esi, esi
mov dword [ebp + 0x10], esi
mov edi, dword [edi]
cmp dword [edi + 0x12974], ebx
jne 0x115ab0c
cmp esi, ebx
je 0x115ab0f
mov eax, dword [edi + 0x3550]
cmp dword [eax + 0x230], 1
je 0x115ab0f
mov ecx, dword [edi + 0x2a4]
call ecx
cmp eax, 0x927c0
jae 0x115ab0f
mov dword [ebp + 0x10], ebx
mov edx, dword [ebp + 8]
mov esi, dword [edx]
mov ecx, dword [esi + 0x3550]
mov eax, dword [ebp - 0x10]
sub eax, dword [ecx + 0x17c]
cmp eax, 0x708
jbe 0x115ad0b
cmp dword [ebp + 0x10], 0
je 0x115ab64
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
push 1
push 0
push edx
push eax
push 0
push 0x227
push esi
call fcn.0105f0a0
mov ecx, dword [esi]
add ecx, 0x12978
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x115ad0b
cmp dword [ebp - 0xc], 0
jne 0x115ad0b
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x2a4]
mov dword [ebp + 0xc], eax
xor edi, edi
call ecx
mov dword [ebp - 0xc], eax
cmp eax, 0xea60
ja 0x115abaa
cmp dword [esi + 0x1e5ac], edi
jne 0x115abaa
mov eax, dword [esi + 0x3550]
test eax, eax
je 0x115ad0b
cmp dword [eax + 0x168], edi
jne 0x115ad0b
cmp dword [esi + 0x8298], 0
je 0x115abc6
cmp dword [esi + 0x82a8], 0
je 0x115abc6
mov edi, 1
jmp 0x115aceb
push 0
lea ebx, [esi + 0x8444]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x82a8], 0
jne 0x115abe8
push esi
call fcn.010ed300
test eax, eax
je 0x115ac3e
cmp dword [esi + 0x8298], 0
je 0x115abfb
mov edi, 1
jmp 0x115aceb
push esi
call fcn.01112060
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.011581f0
mov edi, eax
cmp edi, 1
jne 0x115ac1d
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x115ac35
mov eax, dword [esi]
push eax
call fcn.01127610
test eax, eax
je 0x115ac35
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.011581f0
mov edi, eax
cmp edi, 1
je 0x115aceb
cmp dword [esi + 0x8450], 0
jne 0x115aceb
mov edx, dword [esi + 0x13d0c]
add edx, 0x927c0
cmp dword [ebp - 0xc], edx
jbe 0x115ac8e
mov eax, dword [ebp - 0xc]
mov ebx, 1
mov dword [esi + 0x13d0c], eax
mov dword [esi + 0x13d08], ebx
test ebx, ebx
je 0x115ac8e
push esi
call fcn.01112060
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.011581f0
mov edi, eax
dec ebx
cmp edi, 1
jne 0x115ac70
jmp 0x115aceb
cmp edi, 1
je 0x115aceb
mov eax, dword [esi + 0x3550]
test eax, eax
je 0x115acb2
test dword [eax + 0x138], 0x20000000
jne 0x115aceb
cmp dword [eax + 0x270], 0
jne 0x115aceb
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x115acc8
cmp dword [esi + 0x1d780], 0
jne 0x115acd6
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.011587f0
mov edi, eax
jmp 0x115acd9
mov ebx, dword [ebp + 0xc]
cmp edi, 1
je 0x115aceb
mov edx, dword [ebx + 0x14]
push 6
push 0
push 0
push ebx
push esi
call edx
push 1
add esi, 0x829c
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp edi, 1
jne 0x115ad0b
mov eax, dword [ebp + 8]
push eax
mov dword [ebp + 0x10], edi
call fcn.01153bc0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
sete cl
mov dword [eax + 0x1e5e4], ecx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc