Function at 0x10028250
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x304
mov dword [esp + 0x14], edx
mov esi, ecx
mov eax, dword [0x10055140]
xor eax, esp
mov dword [esp + 0x300], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, 9
cmp eax, 0xffffffff
je 0x100285cd
mov ebp, eax
mov dword [esp + 4], esi
lea edi, [esp + 0x34]
mov dword [edi], 0x1c
push edi
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x100285c1
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x34], 0x10
jb 0x1002834d
mov ebx, dword [esp + 0x40]
call esi
cmp ebx, eax
jne 0x1002834d
mov ebx, dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x1002834d
mov ebx, dword [esp + 4]
mov eax, dword [ebx]
test eax, eax
je 0x10028311
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
jb 0x10028335
lea edx, [ecx + ecx]
mov dword [ebx + 4], edx
shl ecx, 3
push ecx
push eax
push 0
push dword [0x100565ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x100285a5
mov dword [ebx], eax
jmp 0x10028335
mov dword [ebx + 4], 0x80
push 0x200
push 0
push dword [0x100565ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
test eax, eax
je 0x100285c1
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 4]
mov edx, dword [edi + 8]
lea ebx, [edx + 1]
mov dword [edi + 8], ebx
lea edi, [esp + 0x34]
mov dword [eax + edx*4], ecx
mov dword [esp + 0x34], 0x1c
push edi
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100282b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
mov ebx, dword [esp + 4]
jne 0x100285a5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx], 0
je 0x100285a1
mov esi, ebx
cmp dword [ebx + 8], 0
mov ebx, 0
je 0x100285cd
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, 0
add eax, 1
mov dword [esp + 0x30], eax
je 0x100283b0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
imul eax, edx, 0x2c
lea edx, [eax + 0x24]
mov dword [esp + 0x28], edx
add eax, 0x1c
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x20], ecx
push dword [eax + ecx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x1002841a
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10028413
mov dword [esp + 0x34], 0x10001
push edi
mov dword [esp + 0x20], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10028581
cmp dword [esp + 0x14], 0xffffffff
je 0x1002842c
mov esi, dword [esp + 0x30]
jmp 0x10028432
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0
jmp 0x10028597
mov esi, dword [0x100565f8]
mov eax, dword [esp + 0x10]
cmp eax, esi
jae 0x10028581
mov edx, dword [0x100565f0]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], esi
imul ecx, edi, 0x2c
mov ebp, dword [esp + 0x318]
mov eax, ebp
test ebp, ebp
je 0x10028481
cmp dword [esp + 0x318], 1
jne 0x10028477
xor eax, eax
inc eax
jmp 0x10028481
mov eax, dword [edx + ecx + 0x14]
shr eax, 2
and eax, 1
mov dword [esp + 8], ebx
mov ebx, dword [edx + ecx + 0x14]
bt ebx, 1
mov ebp, edx
mov edx, eax
sbb edx, 0
jne 0x100284ae
mov ebx, dword [esp + 8]
mov edx, ebp
inc edi
add dword [esp + 0x24], 0x2c
add ebx, 0x2c
cmp edi, esi
jne 0x10028458
jmp 0x10028581
lea edx, [ecx + ebp]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xec]
test eax, eax
je 0x100284f0
mov eax, dword [ebp + ecx + 0x18]
and eax, 0xf
je 0x10028496
mov esi, dword [esp + 0x18]
mov ebx, dword [esi]
mov esi, dword [esp + 0x24]
mov dword [esp], ebp
add ebp, esi
movzx esi, byte [ebp - 8]
add esi, ebx
cmp esi, edx
je 0x10028539
inc ebp
dec eax
jne 0x100284d8
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 8]
jmp 0x10028531
mov dword [esp], ebp
test bl, 1
mov ebx, dword [esp + 8]
je 0x1002850d
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
lea esi, [eax - 5]
cmp esi, edx
mov esi, dword [esp + 0xc]
je 0x10028555
mov ebp, dword [esp]
mov eax, dword [ebp + ecx + 0x18]
and eax, 0xf
je 0x1002849a
mov ecx, dword [ebp + ecx + 8]
add ebp, ebx
movzx esi, byte [ebp + 8]
add esi, ecx
cmp esi, edx
je 0x10028547
inc ebp
dec eax
jne 0x1002851f
mov esi, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x1002849c
mov eax, dword [esp]
add ecx, eax
add ecx, 8
mov ebx, dword [esp + 8]
jmp 0x1002854b
mov ecx, dword [esp + 0x18]
movzx eax, byte [ebp]
add eax, dword [ecx]
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esp]
je 0x1002849c
mov dword [esp + 0xec], eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [0x100565f0]
jmp 0x1002849c
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 4]
lea edi, [esp + 0x34]
mov ecx, dword [esp + 0x20]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x100283c5
xor ebx, ebx
jmp 0x100285cd
mov eax, dword [ebx]
test eax, eax
je 0x100285c1
xor esi, esi
push eax
push esi
push dword [0x100565ec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
mov dword [eax], esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 9
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.10029368
mov eax, ebx
add esp, 0x304
pop esi
pop edi
pop ebx
pop ebp
ret