Function at 0x1009ada0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e8de6
mov eax, dword fs:[0]
push eax
sub esp, 0x5f0
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
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
je 0x1009ae81
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
cmp byte [0x101bac41], 0
je 0x1009ae01
cmp dword [0x101bb340], eax
je 0x1009ae0c
push 0x101bbd00
call dword [0x101bc9c4]
jmp 0x1009ae0c
push 0x101bc6c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x5f1], 1
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x5f8]
mov ecx, 0x101bab60
push eax
call fcn.100ac500
mov eax, dword [ebp - 0x5f8]
cmp eax, dword [0x101bab60]
je 0x1009ae4a
add eax, 0xc
mov ecx, edi
push eax
call fcn.1009a5c0
jmp 0x1009ae4f
mov eax, dword [edi]
mov dword [edi + 4], eax
cmp byte [0x101bac41], 0
mov dword [ebp - 4], 0xffffffff
je 0x1009b0f2
call esi
cmp dword [0x101bb340], eax
je 0x1009b0fd
push 0x101bbd00
call dword [0x101bc9d4]
jmp 0x1009b0fd
push 0x2cc
lea eax, [ebp - 0x3e4]
push 0
push eax
call fcn.100dd9d6
add esp, 0xc
mov dword [ebp - 0x3e4], 0x10003
push dword [0x101b9790]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1009b0fd
lea eax, [ebp - 0x3e4]
push eax
push dword [0x101b9790]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1009b0fd
push dword [0x101b9790]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1009b0fd
cmp byte [0x101bab5c], 0
je 0x1009af00
push edi
push dword [ebp + 8]
call fcn.1009b480
add esp, 8
jmp 0x1009b03b
push 0x108
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.100dd9d6
mov eax, dword [ebp - 0x32c]
add esp, 0xc
mov ecx, dword [edi + 8]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe8], eax
mov eax, dword [edi]
sub ecx, eax
mov dword [edi + 4], eax
mov eax, 0x3e88cb3d
imul ecx
mov dword [ebp - 0x114], 0
sar edx, 7
mov eax, edx
mov dword [ebp - 0x10c], 3
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xec], 3
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], 3
cmp eax, 0x32
jae 0x1009af9c
push 0x32
mov ecx, edi
call fcn.10097870
xor ebx, ebx
mov edi, edi
push 0x1009a890
push 0x1009a800
push 0x1009a870
push 0x1009a820
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [0x101a0448]
push dword [0x101b9790]
push dword [eax]
push 0x14c
call fcn.10049520
add esp, 0x24
test eax, eax
je 0x1009b03b
mov esi, dword [ebp - 0x118]
mov eax, esi
or eax, dword [ebp - 0x114]
je 0x1009b03b
push 0x20c
lea eax, [ebp - 0x5f0]
push 0
push eax
call fcn.100dd9d6
push dword [ebp - 0x108]
mov eax, dword [ebp - 0xf8]
add eax, 4
push esi
push eax
lea eax, [ebp - 0x5f0]
push eax
call fcn.1009a7d0
add esp, 0x1c
lea eax, [ebp - 0x5f0]
mov ecx, edi
push eax
call fcn.10097a90
inc ebx
cmp ebx, 0x32
jl 0x1009afa0
lea ecx, [ebp - 0x5f1]
call fcn.1009a3a0
cmp dword [0x101bab64], 0x14
mov dword [ebp - 4], 1
jbe 0x1009b0a4
mov ecx, 0x101bab60
call fcn.10009780
mov eax, dword [0x101bab60]
lea ecx, [ebp - 0x5f8]
push ecx
mov dword [ebp - 0x5f8], eax
mov ecx, 0x101bab68
mov eax, dword [0x101bab68]
push 0x10
push eax
mov dword [0x101bab6c], eax
lea eax, [ebp - 0x5fc]
push eax
call fcn.1008d1d0
mov dword [0x101bab74], 7
mov dword [0x101bab78], 8
push edi
lea eax, [ebp + 8]
mov ecx, 0x101bab60
push eax
call fcn.1009a740
mov ecx, eax
call fcn.1009a5c0
cmp byte [ebp - 0x5f1], 0
mov dword [ebp - 4], 0xffffffff
jbe 0x1009b0fd
cmp byte [0x101bac41], 0
je 0x1009b0f2
dec dword [0x101bb344]
jne 0x1009b0fd
push 0x101bbd00
mov dword [0x101bb340], 0
call dword [0x101bc9d8]
jmp 0x1009b0fd
push 0x101bc6c0
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