Function at 0x1020c450
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1025fd80]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x1026b4d4
call fcn.100b4986
nop
mov dword [ebp - 0xc], 0
push 0
push 4
call fcn.100b307c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x1020c64e
mov dword [ebp - 0x3c], 0x1c
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.100b2e51
test eax, eax
je 0x1020c63a
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x3c], 0x10
jb 0x1020c5c7
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.100b3cbb
cmp dword [ebp - 0x30], eax
jne 0x1020c5c7
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.100b3cbb
cmp dword [ebp - 0x34], eax
je 0x1020c5c7
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1020c549
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
mov esi, esp
push ecx
push 0
mov edx, dword [0x1026866c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.100b3cbb
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1020c547
mov dword [ebp - 0xc], 0
jmp 0x1020c5e3
jmp 0x1020c5a7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1020c5a7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1026866c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.100b3cbb
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1020c59f
mov dword [ebp - 0xc], 0
jmp 0x1020c5e3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x34]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov dword [ebp - 0x3c], 0x1c
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.100b2159
test eax, eax
jne 0x1020c4c0
cmp dword [ebp - 0xc], 0
je 0x1020c604
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.100b3cbb
cmp eax, 0x12
je 0x1020c604
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x1020c63a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1020c63a
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1026866c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.100b3cbb
nop
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100b3cbb
nop
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x1020c680]
call fcn.100b37fc
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b31a3
add esp, 0x10c
cmp ebp, esp
call fcn.100b3cbb
mov esp, ebp
pop ebp
ret