Function at 0x1027d6d
Capabilities:
Enumerate threads

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
test dword [ebp + 0xc], 0xfffffffe
push ebx
push esi
push edi
jne 0x1028233
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x1028233
cmp dword [ebp + 8], 0xffffffff
je 0x1028233
cmp dword [ebp + 8], ebx
je 0x1028233
cmp dword [ebp + 0x10], ebx
je 0x1028233
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1027dfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1027dd0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1027df7
test byte [eax + 0x1c], 1
je 0x1027df7
push esi
push 0x1004cac
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov eax, esi
jmp 0x102825c
mov edi, dword [ebp + 0x14]
xor esi, esi
cmp edi, ebx
je 0x1027e78
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov esi, eax
cmp esi, ebx
jne 0x1027e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1027e28
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1027df7
test byte [eax + 0x1c], 1
je 0x1027df7
push esi
push 0x1004cac
push 0x12
jmp 0x1027dec
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessIdOfThread]
cmp eax, dword [ebp - 4]
je 0x1027e78
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028257
test byte [eax + 0x1c], 1
je 0x1028257
push 0x1004cac
push 0x13
jmp 0x102824c
lea ecx, [ebp - 0x48]
call fcn.01028268
or dword [ebp + 0x10], 0xffffffff
xor ebx, ebx
test edi, edi
je 0x1027f2b
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1027ed2
mov edi, 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028227
test byte [eax + 0x1c], 1
je 0x1028227
push 0x1004cac
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1028227
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], esi
test esi, esi
jne 0x102801b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1027ef7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028227
test byte [eax + 0x1c], 1
je 0x1028227
push edi
push 0x1004cac
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1028227
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 7
mov dword [ebp + 0x10], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x28], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1027fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1027f6c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028218
test byte [eax + 0x1c], 1
je 0x1028218
push edi
push 0x1004cac
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1028218
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jne 0x1027fc7
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
test ecx, ecx
je 0x1028029
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], ebx
mov dword [ecx], eax
mov ebx, ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x10]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1027fa0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x102801b
call edi
test eax, eax
jle 0x1027ff4
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x102801b
test byte [eax + 0x1c], 1
je 0x102801b
push ecx
push 0x1004cac
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
test ebx, ebx
jne 0x102805f
mov edi, 0x80004005
jmp 0x1028218
mov edi, 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028218
test byte [eax + 0x1c], 1
je 0x1028218
push 0x1004cac
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1028218
push 0x1180
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10280a7
mov edi, 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028209
test byte [eax + 0x1c], 1
je 0x1028209
push 0x1004cac
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1028209
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.01028abc
mov edi, eax
test edi, edi
jge 0x10280ea
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028209
test byte [eax + 0x1c], 1
je 0x1028209
push edi
push 0x1004cac
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1028209
and dword [ebp + 8], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 4]
call fcn.01027c27
mov edi, eax
test edi, edi
jl 0x10281c9
push 0
push dword [ebp - 8]
lea ecx, [ebp - 0x48]
push dword [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.010298ed
mov edi, eax
test edi, edi
jl 0x10281e8
mov esi, dword [ebx + 8]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp + 0x14], 0
cmp dword [ebp + 8], 0
pop ecx
mov ebx, esi
jbe 0x1028194
mov edi, dword [ebp + 0xc]
cmp dword [edi], 8
jne 0x1028183
xor eax, eax
mov esi, ebx
test ebx, ebx
je 0x1028183
mov ecx, dword [esi]
cmp ecx, dword [edi + 0xc]
jne 0x102817a
test eax, eax
je 0x1028170
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
jmp 0x1028173
mov ebx, dword [esi + 8]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov esi, dword [esi + 8]
test esi, esi
jne 0x102815d
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
add edi, 0x118
cmp eax, dword [ebp + 8]
jb 0x1028150
test ebx, ebx
jne 0x10280ea
lea ecx, [ebp - 0x48]
call fcn.01028bc2
mov edi, eax
test edi, edi
jge 0x1028207
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028209
test byte [eax + 0x1c], 1
je 0x1028209
push edi
push 0x1004cac
push 0x1d
jmp 0x10280da
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028209
test byte [eax + 0x1c], 1
je 0x1028209
push edi
push 0x1004cac
push 0x1b
jmp 0x10280da
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028209
test byte [eax + 0x1c], 2
je 0x1028209
push edi
push 0x1004cac
push 0x1c
jmp 0x10280da
xor edi, edi
cmp dword [ebp + 0xc], 0
je 0x1028218
push dword [ebp + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp + 0x10], 0xffffffff
je 0x1028227
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
call fcn.010282b4
mov eax, edi
jmp 0x102825c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1028257
test byte [eax + 0x1c], 1
je 0x1028257
push 0x1004cac
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0x18