Function at 0x6a182555
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x6a18274e
mov dword [ebp - 0x30], 0x1c
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_Thread32First
sub esp, 8
test eax, eax
je 0x6a18273e
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x6a1826c6
mov ebx, dword [ebp - 0x24]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
cmp ebx, eax
jne 0x6a1826c6
mov ebx, dword [ebp - 0x28]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
cmp ebx, eax
je 0x6a1826c6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x6a18263a
mov eax, dword [ebp + 8]
mov dword [eax + 4], pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea edx, [eax*4]
mov eax, dword [sym.dll.itau.splash.win32.dll_g_hHeap]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x6a1826a7
mov dword [ebp - 0xc], 0
jmp 0x6a1826ea
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp edx, eax
jb 0x6a1826a7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [eax*4]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [sym.dll.itau.splash.win32.dll_g_hHeap]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6a18269f
mov dword [ebp - 0xc], 0
jmp 0x6a1826ea
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
shl eax, 2
lea edx, [ebx + eax]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
mov dword [ebp - 0x30], 0x1c
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_Thread32Next
sub esp, 8
test eax, eax
jne 0x6a1825b2
cmp dword [ebp - 0xc], 0
je 0x6a182703
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x12
je 0x6a182703
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x6a18273e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x6a18273e
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [sym.dll.itau.splash.win32.dll_g_hHeap]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret