Function at 0x1011dc30
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0xea0]
test esi, esi
je 0x1011dc65
mov eax, dword [0x11d0d39c]
lea ecx, [edi + 0x10f8]
mov dword [ebp - 0x24], ecx
cmp eax, dword [ecx]
jne 0x1011dc65
xor bl, bl
jmp 0x1011dc74
lea eax, [edi + 0x10f8]
mov bl, 1
mov dword [ebp - 0x24], eax
test esi, esi
je 0x1011dca1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [edi + 0xea8]
lea ecx, [ecx + ecx*4]
cmp dword [edi + ecx*8 + 0x4b8], eax
je 0x1011dcb1
test esi, esi
je 0x1011dca1
mov eax, dword [edi + 0xea8]
lea eax, [eax + eax*4]
and byte [edi + eax*8 + 0x4c0], 0xfd
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, edi
call fcn.1011db40
test bl, bl
je 0x1011df17
mov ecx, dword [ebp - 0x24]
mov eax, dword [0x11d0d39c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [edi + 0xea0]
xor esi, esi
mov dword [ebp - 0x34], eax
test edx, edx
je 0x1011dcf1
lea ecx, [edi + 0x4c0]
nop
and byte [ecx], 0xfe
lea ecx, [ecx + 0x28]
mov edx, dword [edi + 0xea0]
inc esi
cmp esi, edx
jb 0x1011dce0
mov ebx, dword [edi + 0x408]
xor esi, esi
test edx, edx
je 0x1011dd0f
lea eax, [edi + 0x4b8]
cmp dword [eax], ebx
je 0x1011dd3d
inc esi
add eax, 0x28
cmp esi, edx
jb 0x1011dd03
cmp edx, 0x40
jne 0x1011de1f
lea eax, [esi + 0x26]
lea eax, [esi + eax*4]
lea eax, [edi + eax*8]
lea eax, [eax - 0x28]
dec esi
test byte [eax], 2
je 0x1011dd2e
test esi, esi
jne 0x1011dd21
mov dword [edi + 0xea0], 0x3f
jmp 0x1011de25
lea eax, [esi + esi*4]
or byte [edi + eax*8 + 0x4c0], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x1011deb7
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1011deb2
nop
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x14], eax
jne 0x1011de96
mov ecx, dword [edi + 0xea0]
xor esi, esi
mov ebx, dword [ebp - 0x18]
test ecx, ecx
je 0x1011ddb1
lea eax, [edi + 0x4b8]
cmp dword [eax], ebx
je 0x1011de85
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x1011dda1
cmp ecx, 0x40
jae 0x1011de90
push ebx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1011de90
inc dword [edi + 0xea0]
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
mov ecx, dword [ebp - 0x3c]
lea eax, [esi + esi*4]
push dword [ebp - 0x2c]
lea edx, [edi + eax*8]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x4b8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edx + 0x4a0], eax
mov al, byte [edx + 0x4c0]
and al, 0xfd
mov dword [edx + 0x4a4], ecx
or al, 1
mov byte [edx + 0x4c0], al
call ebx
jmp 0x1011de96
jae 0x1011dd48
push ebx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1011dd48
inc dword [edi + 0xea0]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + esi*4]
push dword [ebp - 0x24]
or byte [edi + eax*8 + 0x4c0], 3
lea edx, [edi + eax*8]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x4b8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edx + 0x4a0], eax
mov dword [edx + 0x4a4], ecx
call ebx
jmp 0x1011dd4e
lea eax, [esi + esi*4]
or byte [edi + eax*8 + 0x4c0], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1011dd80
push dword [ebp - 0x24]
call ebx
mov ebx, dword [edi + 0xea0]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x1011df11
lea ecx, [edi + 0x4a0]
mov eax, ecx
test byte [eax + 0x20], 1
mov edx, ebx
je 0x1011df04
mov ebx, dword [ebp - 0x24]
cmp esi, ebx
je 0x1011defd
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [ecx + 0x20], xmm0
mov edx, dword [edi + 0xea0]
inc ebx
add ecx, 0x28
mov dword [ebp - 0x24], ebx
inc esi
add eax, 0x28
mov ebx, edx
cmp esi, edx
jb 0x1011ded0
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xea0], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret