Function at 0x40a173
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push esi
push 4
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a4a2
push str.Threads_____:
push 0x40000
push dword [0x4a22f8]
call fcn.0041cb4f
add esp, 0xc
mov dword [esp + 0x34], 0x1c
xor eax, eax
mov byte [esp + 0x13], 1
lea edi, [esp + 0x38]
push 6
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
xor edi, edi
push eax
push ebx
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.DLL_Thread32First]
test eax, eax
je 0x40a49b
cmp dword [esp + 0x40], esi
jne 0x40a46f
push 0x84
lea eax, [esp + 0xa4]
push 0
push eax
call fcn.004183a0
add esp, 0xc
lea eax, [esp + 0xa0]
push 0
push 0
push 0x42
push eax
push dword [esp + 0x4c]
call fcn.0040a897
mov esi, dword [esp + 0x3c]
cmp esi, dword [esp + 0x20]
je 0x40a353
push 0x2cc
lea eax, [esp + 0x12c]
push 0
push eax
call fcn.004183a0
add esp, 0xc
push esi
push 0
push 0x48
call dword [sym.imp.KERNEL32.DLL_OpenThread]
mov esi, eax
test esi, esi
je 0x40a293
push esi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
lea eax, [esp + 0x128]
mov dword [esp + 0x128], 0x10007
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [esp + 0x13], 0
jne 0x40a2b4
push str.____________:
push 0x40000
push dword [0x4a22f8]
call fcn.0041cb4f
add esp, 0xc
jmp 0x40a2b9
mov byte [esp + 0x13], 0
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x1f0]
lea eax, [esp + 0x400]
push dword [esp + 0x1e8]
push dword [esp + 0x48]
push edi
push str.__.3d__.8X_EIP:__.8X_ESP:__.8X__s_r_n
push 0xffffffffffffffff
push 0xfe
push eax
call fcn.00401acf
add esp, 0x24
lea eax, [esp + 0x3f8]
push eax
push 0x40000
push dword [0x4a22f8]
call fcn.0041cb4f
add esp, 0xc
lea eax, [esp + 0x58]
push 0x44
push 0
push eax
call fcn.004183a0
mov eax, dword [0x4ab188]
add esp, 0xc
and dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x128]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x60]
push eax
call fcn.00409d28
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040a01c
jmp 0x40a466
cmp byte [esp + 0x13], 0
jne 0x40a378
push str.______crash_:
push 0x40000
push dword [0x4a22f8]
call fcn.0041cb4f
mov esi, dword [esp + 0x48]
add esp, 0xc
jmp 0x40a37d
mov byte [esp + 0x13], 0
lea eax, [esp + 0xa0]
push eax
push dword [0x4ab194]
lea eax, [esp + 0x400]
push dword [0x4ab188]
push esi
push edi
push str.__.3d__.8X_EIP:__.8X_ESP:__.8X__s_r_n
push 0xffffffffffffffff
push 0xfe
push eax
call fcn.00401acf
add esp, 0x24
lea eax, [esp + 0x3f8]
push eax
push 0x40000
push dword [0x4a22f8]
call fcn.0041cb4f
mov ecx, dword [0x4ab188]
xor edi, edi
add esp, 0xc
mov dword [esp + 0x1c], edi
mov esi, ecx
mov dword [esp + 0x18], esi
cmp dword [ebp + 8], edi
je 0x40a3fc
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
call fcn.0040a01c
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [0x4ab188]
mov edx, ecx
push 0
sub edx, esi
pop eax
sbb eax, edi
mov dword [esp + 0x54], eax
jne 0x40a413
cmp edx, 0x1000
jbe 0x40a417
mov esi, ecx
xor edi, edi
push ecx
push 0
push 0
push ecx
lea ecx, [esp + 0x608]
call fcn.0043514f
push ecx
push 0x4a1590
push 1
push ecx
lea ecx, [esp + 0x608]
call fcn.0043514f
mov eax, dword [0x4ab188]
push ecx
push dword [0x4a22f8]
lea ecx, [esp + 0x600]
push 0
push eax
push edi
sub eax, esi
push esi
add eax, 0x50
push eax
push esi
call fcn.00434dd3
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
inc edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_Thread32Next]
test eax, eax
jne 0x40a1f6
push str.____________:_end_of_list_r_n
push 0x40000
push dword [0x4a22f8]
call fcn.0041cb4f
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4