Function at 0x100a9610
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e9ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x101a12fc]
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 edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x60], edi
call ebx
cmp byte [0x101bac41], 0
je 0x100a9667
cmp dword [0x101baf00], eax
je 0x100a9672
push 0x101bb8c0
call dword [0x101bc9c4]
jmp 0x100a9672
push 0x101bc280
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x59], 1
mov eax, dword [0x101babe0]
mov dword [ebp - 4], 0
mov dword [edi], eax
test eax, eax
jne 0x100a9690
mov dword [edi + 4], eax
jmp 0x100a9972
imul eax, eax, 0x148
push eax
call dword [0x100ef938]
mov dword [edi + 4], eax
xor ecx, ecx
mov eax, dword [0x101babdc]
add esp, 4
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x58], eax
mov ebx, dword [eax]
cmp ebx, eax
je 0x100a9924
xor edx, edx
mov dword [ebp - 0x44], edx
nop
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x48], eax
cmp eax, dword [0x101b9790]
jne 0x100a96d1
mov dword [edi + 8], ecx
mov edi, dword [edi + 4]
lea esi, [ebx + 0xc]
mov eax, dword [0x101bac2c]
add edi, edx
mov ecx, 0x45
rep movsd dword es:[edi], dword [esi]
test al, 1
jne 0x100a970f
push str.GetThreadDescription
or eax, 1
push str.kernel32.dll
mov dword [0x101bac2c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101bac28], eax
jmp 0x100a9714
mov eax, dword [0x101bac28]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0
test eax, eax
je 0x100a97d3
lea ecx, [ebp - 0x50]
push ecx
push esi
call eax
test eax, eax
js 0x100a97d3
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100a97d3
cmp word [eax], 0
je 0x100a97cc
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1009edd0
push 1
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.1009d320
mov edx, eax
add esp, 0x14
cmp dword [edx + 0x14], 0x10
jb 0x100a9771
mov edx, dword [edx]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x44]
push 0xffffffffffffffff
push edx
mov eax, dword [eax + 4]
add ecx, 0x14
add eax, ecx
push 0x100
push eax
call dword [0x100ef3a0]
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
jb 0x100a97a2
push dword [ebp - 0x28]
call fcn.100dd8b4
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
jb 0x100a97c9
push dword [ebp - 0x40]
call fcn.100dd8b4
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x23
push esi
call fcn.100d07d8
mov edi, dword [ebp - 0x60]
add esp, 8
mov edx, dword [ebp - 0x44]
mov ecx, dword [edi + 4]
push 0
push 4
mov dword [ecx + edx + 0x114], eax
lea eax, [ebp - 0x54]
push eax
push 0x23
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
jns 0x100a9832
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSuspendThread]
cmp eax, 0xc000004a
jne 0x100a981e
mov dword [ebp - 0x54], 0x7f
jmp 0x100a9832
test eax, eax
jns 0x100a982b
mov dword [ebp - 0x54], 0
jmp 0x100a9832
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x54]
push esi
mov dword [ecx + edx + 0x118], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x44]
push 0
push 4
mov dword [ebp - 0x48], 0
mov dword [ecx + edx + 0x11c], eax
lea ecx, [ebp - 0x48]
mov eax, dword [ebx + 0x1c]
add eax, 0x34
push ecx
push eax
call fcn.1007a1c0
mov edx, dword [ebp - 0x44]
add esp, 0x10
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 0x48]
mov dword [ecx + edx + 0x124], eax
lea eax, [edx + 0x128]
mov ecx, dword [edi + 4]
add eax, ecx
push eax
lea eax, [edx + 0x130]
add eax, ecx
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [edx + 0x138]
add eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov eax, dword [0x101babd8]
test eax, eax
jne 0x100a98dc
push str.QueryThreadCycleTime
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov ecx, 0x100a8960
cmove eax, ecx
mov dword [0x101babd8], eax
lea ecx, [ebp - 0x68]
push ecx
push esi
call eax
test eax, eax
jne 0x100a98ef
xorps xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
mov edx, dword [ebp - 0x44]
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 0x68]
mov dword [ecx + edx + 0x140], eax
mov eax, dword [ebp - 0x64]
mov dword [ecx + edx + 0x144], eax
add edx, 0x148
mov ecx, dword [ebp - 0x4c]
mov ebx, dword [ebx]
inc ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], edx
cmp ebx, dword [ebp - 0x58]
jne 0x100a96c0
xor esi, esi
cmp dword [edi], esi
jle 0x100a996c
xor ebx, ebx
lea esp, [esp]
mov eax, dword [edi + 4]
mov ecx, 0x101bac00
add eax, ebx
mov dword [ebp - 0x4c], eax
add eax, 8
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100ac500
mov eax, dword [ebp - 0x58]
cmp eax, dword [0x101bac00]
je 0x100a9961
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x120], eax
inc esi
add ebx, 0x148
cmp esi, dword [edi]
jl 0x100a9930
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [0x101bac41], 0
mov dword [ebp - 4], 0xffffffff
je 0x100a9999
call ebx
cmp dword [0x101baf00], eax
je 0x100a99a4
push 0x101bb8c0
call dword [0x101bc9d4]
jmp 0x100a99a4
push 0x101bc280
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.100dd9b4
mov esp, ebp
pop ebp
ret