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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0
je 0x10017456
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x1c], 0
jne 0x1001745d
xor eax, eax
jmp 0x10017635
mov ecx, dword [ebp - 0x18]
call fcn.10017d66
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x20], 0
push 1
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10017a6c
lea eax, [ebp - 0x14]
push eax
call dword [0x1000753c]
push 8
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10017a6c
mov ecx, dword [ebp - 0x18]
add ecx, 0x88
call fcn.10018020
mov byte [ebp - 8], al
push 1
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10017a6c
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 4]
cmp ecx, 2
jne 0x10017536
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x80]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10017dcf
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x18]
add ecx, dword [edx + 0x20]
push ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x60]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x78]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.10017e85
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x1c]
jmp 0x10017635
mov edx, dword [ebp - 0x10]
sub edx, 0x13
test edx, edx
jge 0x10017549
mov dword [ebp - 0x1c], 0
jmp 0x10017552
mov eax, dword [ebp - 0x10]
sub eax, 0x13
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [0x1002fe98]
je 0x10017583
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.1001763b
and eax, 0xff
test eax, eax
je 0x10017583
mov ecx, dword [ebp - 0xc]
add ecx, 0x13
mov dword [ebp - 0x20], ecx
jmp 0x1001758c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
jmp 0x1001759d
mov edx, dword [ebp - 4]
add edx, 0x13
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x2c]
jge 0x100175c8
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.1001763b
and eax, 0xff
test eax, eax
je 0x100175c6
mov eax, dword [ebp - 4]
add eax, 0x13
mov dword [ebp - 4], eax
jmp 0x10017594
mov ecx, dword [ebp - 0x10]
mov dword [0x1002fe98], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x30]
add eax, 3
cdq
mov ecx, 0x13
idiv ecx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x18]
jae 0x10017611
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100175f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x30
call fcn.10023af7
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x1c]
mov esp, ebp
pop ebp
ret 4