Function at 0x1160860
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 + 0x35a8]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x11608aa
test dword [ecx + 0x138], 0x200
jne 0x11608aa
cmp dword [edi + 0xa64], 0
jne 0x11608aa
cmp dword [edi + 0xa54], 0
jne 0x11608aa
test byte [ecx + 0x710], 0x40
jne 0x1160ef0
cmp dword [ecx + 0x22c], 0
je 0x1160ef0
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.0102aef0
mov ecx, dword [edi]
cmp dword [ecx + 0x1eea4], 0
mov esi, eax
mov dword [ebp - 0x10], esi
mov ebx, 1
je 0x11608f5
mov dword [ecx + 0x1eea4], 0
jmp 0x1160abd
mov eax, dword [ecx + 0x35a8]
mov edx, dword [eax + 0x230]
cmp edx, ebx
jne 0x116093a
cmp dword [ecx + 0x1f1c8], 0
jne 0x1160eee
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x36ee80
jae 0x1160eee
mov edx, dword [edi]
cmp dword [edx + 0x132bc], 0
jne 0x1160eee
mov dword [ebp - 4], ebx
jmp 0x1160abd
cmp dword [ebp + 0x10], 0
je 0x116096a
cmp dword [eax + 0x1c], 0
je 0x116096a
test byte [eax + 0x224], bl
je 0x116096a
test edx, edx
jne 0x116096a
mov ecx, esi
sub ecx, dword [eax + 0x17c]
cmp ecx, 0x15f90
jbe 0x116096a
mov dword [ebp - 4], ebx
jmp 0x1160abd
cmp dword [edi + 0xa4c], 0
jne 0x11609b8
cmp dword [eax + 0x1c], 0
jne 0x11609b8
cmp dword [ebp + 0xc], 0x12c
jbe 0x11609b8
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x11609b8
cmp dword [eax + 0x17c], 0
je 0x11609b8
mov ebx, esi
sub ebx, ecx
cmp ebx, 0xa8c
jbe 0x11609b8
mov dword [eax + 0x1c], 1
mov edx, dword [edi]
mov eax, dword [edx + 0x35a8]
push eax
call fcn.0103f2b0
jmp 0x1160abd
mov ecx, dword [eax + 0x17c]
test ecx, ecx
je 0x1160eee
test edx, edx
je 0x11609d9
movzx ebx, word [ebp - 0x20]
add ebx, 2
cmp edx, ebx
jne 0x1160eee
sub esi, ecx
cmp esi, 0xe4c
jbe 0x1160eee
mov ebx, dword [eax + 0x234]
cmp ebx, 4
jl 0x1160a2a
test byte [eax + 0x224], 0x20
je 0x1160a21
mov ecx, dword [ebp - 0x1a]
push ecx
push edi
call fcn.01057d70
test eax, eax
jne 0x1160a21
cmp esi, 0x15f90
jbe 0x1160eee
mov dword [ebp - 4], 1
jmp 0x1160abd
cmp ebx, 4
jge 0x1160aae
cmp esi, 0x7080
jbe 0x1160eee
cmp esi, 0x1fa40
jbe 0x1160a47
mov dword [ebp - 4], 1
jmp 0x1160abd
push edi
call fcn.01057d30
test eax, eax
je 0x1160eee
mov edx, dword [edi]
mov eax, dword [edx + 0x35a8]
mov eax, dword [eax + 0x234]
mov ecx, dword [ebp - 0x1c]
test eax, eax
jne 0x1160a73
lea edx, [ecx - 1]
cmp dx, 6
jbe 0x1160abd
cmp eax, 1
jne 0x1160a81
lea edx, [ecx - 9]
cmp dx, 2
jbe 0x1160abd
cmp eax, 2
jne 0x1160a96
cmp cx, 0xc
jbe 0x1160a96
cmp cx, 0x11
jb 0x1160eee
cmp eax, 3
jne 0x1160eee
add ecx, 0xffffffee
cmp cx, 5
ja 0x1160eee
jmp 0x1160abd
movzx eax, word [ebp - 0x1c]
add ebx, 0xfffffffc
cmp ebx, eax
jne 0x1160eee
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], ebx
call fcn.010f7580
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1160c7f
mov esi, dword [edi]
cmp dword [esi + 0x132bc], ebx
jne 0x1160cdf
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 0x1160b21
cmp dword [esi + 0x1ee6c], ebx
jne 0x1160b21
mov eax, dword [esi + 0x35a8]
cmp eax, ebx
je 0x1160cdf
cmp dword [eax + 0x168], ebx
jne 0x1160cdf
cmp dword [esi + 0x8be0], ebx
je 0x1160b3b
cmp dword [esi + 0x8bf0], ebx
je 0x1160b3b
mov edi, 1
jmp 0x1160c5d
push 0
lea ebx, [esi + 0x8d8c]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x8bf0], edi
jne 0x1160b5c
push esi
call fcn.010f1330
test eax, eax
je 0x1160bb1
cmp dword [esi + 0x8be0], edi
je 0x1160b6e
mov edi, 1
jmp 0x1160c5d
push esi
call fcn.01115ac0
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.0115e3c0
mov edi, eax
cmp edi, 1
jne 0x1160b90
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x1160ba8
mov ecx, dword [esi]
push ecx
call fcn.01127180
test eax, eax
je 0x1160ba8
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0115e3c0
mov edi, eax
cmp edi, 1
je 0x1160c5d
cmp dword [esi + 0x8d98], 0
jne 0x1160c5d
mov eax, dword [esi + 0x14654]
add eax, 0x927c0
cmp dword [ebp - 8], eax
jbe 0x1160c00
mov ecx, dword [ebp - 8]
mov ebx, 1
mov dword [esi + 0x14654], ecx
mov dword [esi + 0x14650], ebx
test ebx, ebx
je 0x1160c00
push esi
call fcn.01115ac0
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0115e3c0
mov edi, eax
dec ebx
cmp edi, 1
jne 0x1160be2
jmp 0x1160c5d
cmp edi, 1
je 0x1160c5d
mov eax, dword [esi + 0x35a8]
test eax, eax
je 0x1160c24
test dword [eax + 0x138], 0x20000000
jne 0x1160c5d
cmp dword [eax + 0x270], 0
jne 0x1160c5d
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x1160c3a
cmp dword [esi + 0x1e040], 0
jne 0x1160c48
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.0115e9c0
mov edi, eax
jmp 0x1160c4b
mov ebx, dword [ebp + 0xc]
cmp edi, 1
je 0x1160c5d
mov eax, dword [ebx + 0x14]
push 6
push 0
push 0
push ebx
push esi
call eax
push 1
add esi, 0x8be4
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp edi, 1
jne 0x1160cdf
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp + 0x10], edi
call fcn.01159e60
jmp 0x1160cdf
mov esi, 1
mov dword [ebp + 0x10], esi
cmp dword [ebp - 4], ebx
jne 0x1160cb0
mov eax, dword [edi]
mov edx, dword [eax + 0x35a8]
test byte [edx + 0x224], 8
je 0x1160cb0
push ebx
push eax
call fcn.0102ac90
test eax, eax
je 0x1160cb0
mov dword [ebp - 0xc], esi
xor esi, esi
mov dword [ebp + 0x10], esi
mov edi, dword [edi]
cmp dword [edi + 0x132bc], ebx
jne 0x1160cdc
cmp esi, ebx
je 0x1160cdf
mov eax, dword [edi + 0x35a8]
cmp dword [eax + 0x230], 1
je 0x1160cdf
mov ecx, dword [edi + 0x2a4]
call ecx
cmp eax, 0x927c0
jae 0x1160cdf
mov dword [ebp + 0x10], ebx
mov edx, dword [ebp + 8]
mov esi, dword [edx]
mov ecx, dword [esi + 0x35a8]
mov eax, dword [ebp - 0x10]
sub eax, dword [ecx + 0x17c]
cmp eax, 0x708
jbe 0x1160edb
cmp dword [ebp + 0x10], 0
je 0x1160d34
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.01060ec0
mov ecx, dword [esi]
add ecx, 0x132c0
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x1160edb
cmp dword [ebp - 0xc], 0
jne 0x1160edb
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 0x1160d7a
cmp dword [esi + 0x1ee6c], edi
jne 0x1160d7a
mov eax, dword [esi + 0x35a8]
test eax, eax
je 0x1160edb
cmp dword [eax + 0x168], edi
jne 0x1160edb
cmp dword [esi + 0x8be0], 0
je 0x1160d96
cmp dword [esi + 0x8bf0], 0
je 0x1160d96
mov edi, 1
jmp 0x1160ebb
push 0
lea ebx, [esi + 0x8d8c]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x8bf0], 0
jne 0x1160db8
push esi
call fcn.010f1330
test eax, eax
je 0x1160e0e
cmp dword [esi + 0x8be0], 0
je 0x1160dcb
mov edi, 1
jmp 0x1160ebb
push esi
call fcn.01115ac0
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0115e3c0
mov edi, eax
cmp edi, 1
jne 0x1160ded
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x1160e05
mov eax, dword [esi]
push eax
call fcn.01127180
test eax, eax
je 0x1160e05
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.0115e3c0
mov edi, eax
cmp edi, 1
je 0x1160ebb
cmp dword [esi + 0x8d98], 0
jne 0x1160ebb
mov edx, dword [esi + 0x14654]
add edx, 0x927c0
cmp dword [ebp - 0xc], edx
jbe 0x1160e5e
mov eax, dword [ebp - 0xc]
mov ebx, 1
mov dword [esi + 0x14654], eax
mov dword [esi + 0x14650], ebx
test ebx, ebx
je 0x1160e5e
push esi
call fcn.01115ac0
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.0115e3c0
mov edi, eax
dec ebx
cmp edi, 1
jne 0x1160e40
jmp 0x1160ebb
cmp edi, 1
je 0x1160ebb
mov eax, dword [esi + 0x35a8]
test eax, eax
je 0x1160e82
test dword [eax + 0x138], 0x20000000
jne 0x1160ebb
cmp dword [eax + 0x270], 0
jne 0x1160ebb
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x1160e98
cmp dword [esi + 0x1e040], 0
jne 0x1160ea6
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.0115e9c0
mov edi, eax
jmp 0x1160ea9
mov ebx, dword [ebp + 0xc]
cmp edi, 1
je 0x1160ebb
mov edx, dword [ebx + 0x14]
push 6
push 0
push 0
push ebx
push esi
call edx
push 1
add esi, 0x8be4
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp edi, 1
jne 0x1160edb
mov eax, dword [ebp + 8]
push eax
mov dword [ebp + 0x10], edi
call fcn.01159e60
mov edx, dword [ebp + 8]
mov eax, dword [edx]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
sete cl
mov dword [eax + 0x1eea4], ecx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc