Function at 0x10017cc0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100825d0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100ae254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [esi + 8]
test eax, eax
je 0x10017d0a
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov eax, dword [esi + 4]
test eax, eax
je 0x10017d18
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10017d36
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
call ebx
mov dword [esi], edi
mov eax, dword [esi + 4]
test eax, eax
je 0x10017d45
push eax
call ebx
mov dword [esi + 4], edi
xor eax, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10017d55
push ecx
call ebx
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
test eax, eax
jne 0x10017f2b
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
test eax, eax
je 0x10017f2b
cmp dword [esi], edi
jne 0x10017f2b
push 0
push 4
push esi
push 0x10017f80
push 0
push 0
call fcn.100600a4
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x10017f2b
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov eax, dword [ebp - 0x6c]
lea edi, [esi + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x14], eax
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10017de1
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
call dword [eax]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
je 0x10017e01
mov ecx, dword [edi + 0x24]
cmp ecx, edi
je 0x10017e01
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x24], eax
jmp 0x10017ef5
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10017e49
lea eax, [ebp - 0x38]
cmp ecx, eax
jne 0x10017e7f
mov eax, dword [ecx]
lea edx, [ebp - 0x60]
push edx
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10017e4c
mov edx, dword [ebx]
lea eax, [ebp - 0x38]
cmp ebx, eax
mov ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [edi + 0x24]
test edx, edx
je 0x10017e9a
cmp edx, edi
jne 0x10017e90
mov eax, dword [edx]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x10017e8b
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x3c]
jmp 0x10017e93
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
jmp 0x10017e4c
mov ecx, dword [ebp - 0x3c]
jmp 0x10017e9a
mov dword [ebp - 0x14], edx
mov dword [edi + 0x24], 0
test ecx, ecx
je 0x10017ed2
lea eax, [ebp - 0x60]
cmp ecx, eax
jne 0x10017ec8
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 0x24], eax
test ecx, ecx
je 0x10017ed2
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x10017ecb
mov dword [edi + 0x24], ecx
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10017ef5
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10017f18
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x38]
push dword [esi]
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10017f51
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov dword [ebp + 0x34], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10051ab7
mov esp, ebp
pop ebp
ret 0x34