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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c4
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 0x410acf
push str.Threads_____:
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
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 0x410ac8
cmp dword [esp + 0x40], esi
jne 0x410a9c
push 0x100
lea eax, [esp + 0xa4]
push 0
push eax
call fcn.0041c9b0
mov esi, dword [esp + 0x48]
add esp, 0xc
test esi, esi
jne 0x410818
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
push 0x4c64ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4c64c4]
jmp 0x410834
cmp dword [eax], esi
je 0x41083a
mov eax, dword [eax + 0x10c]
test eax, eax
jne 0x41082a
jmp 0x410853
add eax, 4
push eax
lea eax, [esp + 0xa4]
push 0x80
push eax
call fcn.0042305c
add esp, 0xc
push 0x4c64ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x3c]
cmp esi, dword [esp + 0x20]
je 0x410986
push 0x2cc
lea eax, [esp + 0x1a4]
push 0
push eax
call fcn.0041c9b0
add esp, 0xc
push esi
push 0
push 0x48
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x4108c3
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [esp + 0x1a0]
mov dword [esp + 0x1a0], 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 0x4108e4
push str.____________:
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
add esp, 0xc
jmp 0x4108e9
mov byte [esp + 0x13], 0
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x268]
lea eax, [esp + 0x478]
push dword [esp + 0x260]
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.00401ea4
add esp, 0x24
lea eax, [esp + 0x470]
push eax
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
add esp, 0xc
lea eax, [esp + 0x58]
push 0x44
push 0
push eax
call fcn.0041c9b0
mov eax, dword [0x4c658c]
add esp, 0xc
and dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1a0]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x60]
push eax
call fcn.004102a4
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004105f2
jmp 0x410a93
cmp byte [esp + 0x13], 0
jne 0x4109ab
push str.______crash_:
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
mov esi, dword [esp + 0x48]
add esp, 0xc
jmp 0x4109b0
mov byte [esp + 0x13], 0
lea eax, [esp + 0xa0]
push eax
push dword [0x4c6598]
lea eax, [esp + 0x478]
push dword [0x4c658c]
push esi
push edi
push str.__.3d__.8X_EIP:__.8X_ESP:__.8X__s_r_n
push 0xffffffffffffffff
push 0xfe
push eax
call fcn.00401ea4
add esp, 0x24
lea eax, [esp + 0x470]
push eax
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
mov eax, dword [0x4c658c]
add esp, 0xc
and dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.004105f2
mov edx, dword [0x4c658c]
mov ecx, edx
mov esi, dword [esp + 0x18]
sub ecx, esi
mov edi, dword [esp + 0x1c]
push 0
pop eax
sbb eax, edi
mov dword [esp + 0x54], eax
jne 0x410a40
cmp ecx, 0x1000
jbe 0x410a44
mov esi, edx
xor edi, edi
push ecx
push 0
push 0
push ecx
lea ecx, [esp + 0x680]
call fcn.0043c462
push ecx
push 0x4b9c50
push 1
push ecx
lea ecx, [esp + 0x680]
call fcn.0043c462
mov eax, dword [0x4c658c]
push ecx
push dword [0x4bb000]
lea ecx, [esp + 0x678]
push 0
push eax
push edi
sub eax, esi
push esi
add eax, 0x50
push eax
push esi
call fcn.0043c0e8
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 0x4107e7
push str.____________:_end_of_list_r_n
push 0x100000
push dword [0x4bb000]
call fcn.004230c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8