Function at 0x405f00
Capabilities:
Enumerate threads

Disassembly:
push 0xffffffffffffffff
push 0x40d2e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x5c]
push ebx
push ebp
push esi
mov ebp, ecx
lea esi, [eax + eax*8]
shl esi, 3
mov eax, dword [ebp + 0x78]
xor ebx, ebx
add eax, esi
mov dword [esp + 0xc], ebx
mov ecx, dword [eax + 0x24]
cmp dword [ecx - 8], ebx
jne 0x405f58
mov edx, dword [eax + 0x28]
cmp dword [edx - 8], ebx
jne 0x405f58
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10
mov eax, dword [esp + 0x64]
push edi
push eax
push 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], ebx
call fcn.00406130
mov edx, dword [esp + 0x14]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], 0x1c
mov dword [esp + 0x60], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call sub.KERNEL32.dll_Thread32First
cmp eax, ebx
je 0x4060eb
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
jne 0x4060d4
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x78]
mov edi, 1
mov byte [esp + 0x60], 2
mov dword [esp + 0x38], ebx
lea edx, [esi + ecx + 0x24]
lea ecx, [esp + 0x2c]
push edx
mov dword [esp + 0x38], edi
call fcn.0040b67e
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
je 0x40602b
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x2c]
push ecx
push 0x405ec0
push edx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [esp + 0x38], ebx
je 0x40602b
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x30]
or edx, edi
push eax
mov dword [esp + 0x14], edx
call fcn.0040b67e
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 3
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x78]
mov byte [esp + 0x60], 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
lea edx, [esi + ecx + 0x28]
lea ecx, [esp + 0x1c]
push edx
call fcn.0040b67e
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], ebx
je 0x40609d
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push ecx
push 0x405ec0
push edx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [esp + 0x28], ebx
je 0x40609d
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x20]
or edx, 2
push eax
mov dword [esp + 0x14], edx
call fcn.0040b67e
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x405fa5
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 0xffffffff
je 0x4060fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10