Function at 0x1003ef50
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb450
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100f2384]
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 [esi + 8]
xor edi, edi
mov dword [ebp - 4], 0
test eax, eax
je 0x1003ef94
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov eax, dword [esi + 4]
test eax, eax
je 0x1003efa2
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 0x1003efc0
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 0x1003efcf
push eax
call ebx
mov dword [esi + 4], edi
xor eax, eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003efdf
push ecx
call ebx
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
test eax, eax
jne 0x1003f18c
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
test eax, eax
je 0x1003f18c
cmp dword [esi], edi
jne 0x1003f18c
push 0
push 4
push esi
push 0x1003f1d0
push 0
push 0
call fcn.100915e7
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x1003f18c
mov eax, dword [ebp + 8]
lea edi, [esi + 0x20]
cdq
xor ecx, ecx
xor eax, edx
mov dword [ebp - 0x14], ecx
sub eax, edx
imul eax, eax, 0xffffd8f0
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov edx, dword [ebp + 0x34]
xor ebx, ebx
mov byte [ebp - 4], 1
test edx, edx
je 0x1003f05f
mov eax, dword [edx]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, edx
call dword [eax]
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov ebx, ecx
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
cmp ebx, eax
je 0x1003f07e
mov eax, dword [edi + 0x24]
cmp eax, edi
je 0x1003f07e
mov ecx, eax
mov dword [edi + 0x24], ebx
mov dword [ebp - 0x14], ecx
jmp 0x1003f164
xor edx, edx
mov dword [ebp - 0x3c], edx
test ebx, ebx
je 0x1003f0c5
lea eax, [ebp - 0x38]
cmp ebx, eax
jne 0x1003f0bb
mov eax, dword [ebx]
lea ecx, [ebp - 0x60]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov dword [ebp - 0x3c], edx
test ecx, ecx
je 0x1003f0c5
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov edx, dword [ebp - 0x3c]
jmp 0x1003f0c0
mov edx, ebx
mov dword [ebp - 0x3c], edx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, dword [edi + 0x24]
test ebx, ebx
je 0x1003f110
cmp ebx, edi
jne 0x1003f104
mov eax, dword [ebx]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [edi + 0x24]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ebx, ebx
je 0x1003f0ff
mov edx, dword [ebx]
cmp ebx, edi
mov ecx, ebx
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
jmp 0x1003f109
mov edx, dword [ebp - 0x3c]
jmp 0x1003f110
mov ecx, ebx
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x24], 0
test edx, edx
je 0x1003f164
lea eax, [ebp - 0x60]
cmp edx, eax
jne 0x1003f161
mov eax, dword [edx]
mov ecx, edx
push edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 0x24], eax
test ecx, ecx
je 0x1003f15c
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x3c], 0
test ecx, ecx
je 0x1003f15c
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x14]
jmp 0x1003f164
mov dword [edi + 0x24], edx
test ecx, ecx
je 0x1003f179
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [ebp + 0x38]
push dword [esi]
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1003f1a4
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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.10066f71
mov esp, ebp
pop ebp
ret 0x34