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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
cmp dword [ebp + 0x24], 0
push esi
mov esi, dword [ebp + 8]
mov eax, 1
jne 0x110244f
lea ecx, [esi + 0x138]
test ecx, ecx
je 0x11026fd
push ecx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 1
lea ecx, [esi + 0x188]
push ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
mov dword [ebp + 8], edi
jne 0x11024a8
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x23118], 0
je 0x11024a8
cmp dword [esi + 0x18c], 0
jne 0x11024a8
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0xa
call ebx
cmp dword [esi + 0x18c], 0
je 0x1102498
mov ebx, dword [ebp + 0x10]
cmp dword [esi + 0x70], 0
je 0x11024dd
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x220c4], 0
je 0x11024dd
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esi + 0x18]
cmp eax, dword [ecx + 0x220c4]
jae 0x11024dd
test ebx, ebx
je 0x11024dd
cmp dword [ebx + 0xc], 0
jne 0x11024dd
mov edi, dword [esi + 0x70]
jmp 0x11025bc
test edi, edi
je 0x11025b9
mov eax, dword [esi + 0x78]
test eax, eax
je 0x11025b4
cmp eax, 6
je 0x11025b4
push 0x41
lea edx, [ebp - 0x50]
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x88]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push 0x101a7b0
lea edx, [ebp - 0x50]
push 0x3f
push edx
call fcn.0101d440
mov ecx, dword [esi + 0x6c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
push ecx
call fcn.0101d060
cmp dword [esi + 0x128], 0
je 0x11025b4
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x30906], 0
je 0x11025b4
push 1
add eax, 0x30948
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x11025b4
push 0x41
push eax
lea edx, [ebp - 0x50]
push edx
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x18]
add eax, 0x30906
push eax
push 0x101a7a8
lea ecx, [ebp - 0x50]
push 0x3f
push ecx
call fcn.0101d440
mov eax, dword [esi + 0x6c]
add esp, 0x1c
lea edx, [ebp - 0x50]
push edx
push eax
call fcn.0101d060
mov ecx, dword [esi + 0x18]
push 0x41
add ecx, 0x30906
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, dword [esi + 0x6c]
jmp 0x11025bc
mov edi, dword [esi + 0x68]
push 0x401
lea edx, [ebp - 0x454]
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
test edi, edi
je 0x1102645
push 0x103
lea eax, [ebp - 0x454]
push edi
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 0x23110]
add esp, 0xc
cmp dword [edx + 0x194], 0
jne 0x110261a
cmp dword [esi + 0x94], 0
jne 0x110261a
push 0x101a79c
lea eax, [ebp - 0x454]
push eax
call fcn.0101d060
jmp 0x1102645
lea eax, [ebp - 0x454]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1102621
mov ecx, dword [0x101a790]
mov edx, dword [0x101a794]
mov dword [eax], ecx
mov cx, word [0x101a798]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x23110]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x110266b
cmp dword [eax + 0x1f4], 0
jne 0x110266b
cmp dword [esi + 0x118], 1
jne 0x110266b
xor edi, edi
jmp 0x11026b9
mov eax, edx
mov edx, dword [ebp + 0x24]
push 0
push 0
neg edi
sbb edi, edi
lea ecx, [ebp - 0x454]
and edi, ecx
mov ecx, dword [ebp + 0x20]
push edi
neg edx
push 0
sbb edx, edx
and edx, 0xffffd8f0
add edx, 0x3a98
push edx
mov edx, dword [ebp + 0x1c]
push 0x1102350
push ecx
push edx
mov edx, dword [ebp + 0x18]
lea ecx, [eax + 0x26bd0]
push ecx
push edx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
call fcn.01030400
mov edi, eax
xor edx, edx
cmp edi, 1
sete dl
lea eax, [ebp - 0xc]
push edx
push 0
push eax
push ebx
push esi
call fcn.0108f500
cmp dword [ebp + 8], 0
je 0x11026e4
push 1
lea ecx, [esi + 0x18c]
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [ebp + 0x24], 0
jne 0x11026f9
add esi, 0x138
je 0x11026f9
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x20