Function at 0x42f120
Capabilities:
Enumerate threads

Disassembly:
mov eax, 0x29e8
call fcn.0040c8c0
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [esp + 0x2a00]
mov ebp, eax
push str.Exception
push esi
mov dword [esp + 0x1c], ebp
call fcn.004765f0
mov eax, dword [esp + 0x2a04]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov eax, ecx
add esp, 8
cmp eax, 0xc0000005
ja 0x42f1e7
je 0x42f1d4
add eax, 0x7fffffff
cmp eax, 3
ja case.0x42f1fe.1073741817
jmp dword [eax*4 + 0x42f524]
push str.EXCEPTION_DATATYPE_MISALIGNMENT
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_BREAKPOINT
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_SINGLE_STEP
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_GUARD_PAGE
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_ACCESS_VIOLATION
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
add eax, 0x3ffffffa
cmp eax, 0xf7
ja case.0x42f1fe.1073741817
movzx edx, byte [eax + 0x42f57c]
jmp dword [edx*4 + 0x42f534]
push str.EXCEPTION_ARRAY_BOUNDS_EXCEEDED
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_FLT_DENORMAL_OPERAND
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_FLT_DIVIDE_BY_ZERO
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_FLT_INEXACT_RESULT
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_FLT_INVALID_OPERATION
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_FLT_OVERFLOW
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_FLT_STACK_CHECK
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_FLT_UNDERFLOW
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_INT_DIVIDE_BY_ZERO
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_INT_OVERFLOW
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_PRIV_INSTRUCTION
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_IN_PAGE_ERROR
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_ILLEGAL_INSTRUCTION
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_NONCONTINUABLE_EXCEPTION
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_STACK_OVERFLOW
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_INVALID_DISPOSITION
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push str.EXCEPTION_INVALID_HANDLE
push esi
call fcn.004765f0
add esp, 8
jmp 0x42f33f
push ecx
push str._08x__unknown_
push esi
call fcn.004765f0
add esp, 0xc
push str._has_occured._n
push esi
call fcn.004765f0
add esp, 8
push ebp
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x42f37b
push str.btkNTtraceback:Couldnt_get_the_snapshot_of_the_current_process...__n
push esi
call fcn.004765f0
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x29e8
ret
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x42f3d2
push str.btkNTtraceback:Couldnt_retrieve_information_about_the_first_thread...__n
push esi
call fcn.004765f0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x29e8
ret
push edi
push ebp
lea ecx, [esp + 0x3c]
call fcn.0042df10
cmp dword [esp + 0x38], 0
mov dword [esp + 0x34], vtable.MyStackWalker.0
jne 0x42f3f0
mov dword [esp + 0x38], esi
mov ebp, dword [esp + 0x2a04]
jmp 0x42f400
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x24], ecx
jne 0x42f4fa
mov edx, dword [esp + 0x20]
push edx
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x42f4f6
push 0x29a4
lea eax, [esp + 0x58]
push 0
push eax
call fcn.004063f0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
xor edi, edi
cmp ecx, ebp
jne 0x42f458
mov edx, dword [esp + 0x29fc]
mov eax, dword [edx + 4]
test eax, eax
je 0x42f458
mov edi, eax
cmp dword [0x4c09d4], 0
jne 0x42f482
push str.Main_Thread....__n
push esi
call fcn.004765f0
push str._n
push esi
call fcn.004765f0
add esp, 0x10
inc dword [0x4c09d4]
jmp 0x42f49c
push ecx
push str._nThread__d_n
push esi
call fcn.004765f0
push str._n
push esi
call fcn.004765f0
add esp, 0x14
mov eax, dword [esp + 0x29fc]
cmp dword [eax + 4], 0
je 0x42f4d9
push edi
push ebx
push 0x41
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x44]
call fcn.0042eed0
test eax, eax
je 0x42f4d2
push edi
lea edx, [esp + 0x58]
push edx
push ebx
push esi
lea ecx, [esp + 0x44]
call fcn.0042eae0
jmp 0x42f4e7
push str.btkNTtraceback:Couldnt_capture_the_context_of_the_thread_...__n
jmp 0x42f4de
push str.btkNTtraceback:No_ContextRecord_found_...__n
push esi
call fcn.004765f0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x42f400
lea ecx, [esp + 0x34]
call fcn.0042e480
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x29e8
ret