Function at 0x10048180
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x1008500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
push 0
push 4
mov dword [ebp - 0x2f4], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100482a7
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100482a0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10048280
call edi
cmp dword [ebp - 0x14], eax
jne 0x10048280
call ebx
cmp dword [ebp - 0x18], eax
je 0x10048280
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ecx]
test edx, edx
jne 0x1004823d
push 0x200
push edx
push dword [0x1008601c]
mov dword [ecx + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x2f4]
mov edx, eax
mov dword [ecx], edx
test edx, edx
je 0x1004829a
jmp 0x1004826e
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
jb 0x1004826e
shl eax, 3
push eax
push edx
push 0
push dword [0x1008601c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1004829a
mov ecx, dword [ebp - 0x2f4]
mov eax, dword [ecx + 4]
add eax, eax
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov ecx, dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x2f4]
inc dword [eax + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100481f0
mov ebx, dword [ebp - 0x2f4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx], 0
je 0x100483d3
xor esi, esi
mov dword [ebp - 0x2fc], esi
cmp dword [ebx + 8], esi
jbe 0x100483d3
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 0x2f8], edi
test edi, edi
je 0x100483c3
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], 0x10001
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100483bc
mov esi, dword [0x100860d8]
mov dword [ebp - 0x2f0], esi
test esi, esi
je 0x100483b6
xor ecx, ecx
mov dword [ebp - 0x300], ecx
mov edx, dword [0x100860d0]
mov eax, dword [ebp + 8]
add edx, ecx
sub eax, 0
je 0x1004834b
sub eax, 1
je 0x10048344
movzx ecx, byte [edx + 0x14]
shr ecx, 2
and ecx, 1
jmp 0x1004834d
mov ecx, 1
jmp 0x1004834d
xor ecx, ecx
mov bl, byte [edx + 0x14]
movzx eax, bl
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x1004838c
test ecx, ecx
je 0x100483ee
mov esi, dword [edx + 0x18]
xor ecx, ecx
and esi, 0xf
jbe 0x10048386
mov edi, dword [edx]
mov ebx, dword [ebp - 0x234]
movzx eax, byte [edx + ecx + 0x1c]
add eax, edi
cmp ebx, eax
je 0x100483e4
inc ecx
cmp ecx, esi
jb 0x10048376
mov esi, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0x300]
mov edi, dword [ebp - 0x2f8]
add ecx, 0x2c
sub esi, 1
mov dword [ebp - 0x300], ecx
mov dword [ebp - 0x2f0], esi
jne 0x10048323
mov ebx, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x2fc]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [ebp - 0x2fc], esi
cmp esi, dword [ebx + 8]
jb 0x100482c1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053c04
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + edx + 0x24]
add ecx, dword [edx + 8]
jmp 0x1004842f
test bl, 1
mov ebx, dword [ebp - 0x234]
je 0x10048402
mov ecx, dword [edx]
lea eax, [ecx - 5]
cmp ebx, eax
je 0x1004843b
mov esi, dword [edx + 0x18]
xor eax, eax
and esi, 0xf
jbe 0x10048386
mov edi, dword [edx + 8]
movzx ecx, byte [edx + eax + 0x24]
add ecx, edi
cmp ebx, ecx
je 0x10048428
inc eax
cmp eax, esi
jb 0x10048413
jmp 0x10048386
movzx ecx, byte [eax + edx + 0x1c]
add ecx, dword [edx]
mov edi, dword [ebp - 0x2f8]
mov esi, dword [ebp - 0x2f0]
test ecx, ecx
je 0x1004838c
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x234], ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x1004838c