Function at 0x4012e0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40dabd
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x60], ebx
cmp ebx, 0xffffffff
jne 0x401330
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41585c], eax
xor al, al
jmp 0x4014e4
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x1c
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x40135e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [0x41585c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4014e4
xor eax, eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], esi
mov bl, 1
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x58], 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x40], eax
jne 0x401432
test bl, bl
je 0x40140e
mov ebx, dword [ebp - 0x44]
xor eax, eax
push ebx
push 1
push 0x40
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x401401
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x401401
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
or ecx, dword [ebp - 0x30]
mov eax, ecx
or eax, edx
je 0x4013fd
cmp edx, dword [ebp - 0x58]
ja 0x4013fd
jb 0x4013f4
cmp ecx, dword [ebp - 0x54]
jae 0x4013fd
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], ebx
mov bl, 1
jmp 0x40140e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov dword [0x41585c], eax
cmp edi, esi
je 0x40141f
mov eax, dword [ebp - 0x44]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x6c], edi
jmp 0x401432
lea eax, [ebp - 0x44]
push eax
push edi
lea ecx, [ebp - 0x70]
call section..text
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x6c]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x60]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x401383
test bl, bl
mov dword [ebp - 0x64], esi
mov ebx, dword [ebp - 0x70]
je 0x401475
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x401475
cmp dword [ebp - 0x54], 0xffffffff
jne 0x401463
cmp dword [ebp - 0x58], 0xffffffff
je 0x401475
push eax
call fcn.00401510
add esp, 4
test al, al
jne 0x4014a4
mov byte [ebp - 0x4d], al
jmp 0x4014b1
mov esi, ebx
cmp esi, edi
je 0x4014a4
jmp 0x401480
push 0
push 0
push 0x12
push dword [esi]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x40149d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41585c], eax
add esi, 4
cmp esi, edi
jne 0x401480
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x4d], 1
test ebx, ebx
je 0x4014e1
mov ecx, dword [ebp - 0x64]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4014d7
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401500
push ecx
push ebx
call fcn.004017f1
add esp, 8
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004017ff
mov esp, ebp
pop ebp
ret
call fcn.00404ea9
int3