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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5cc
mov eax, dword [0x4b0040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b168c]
push ebx
push esi
push edi
test eax, eax
je 0x403604
cmp eax, 0xffffffff
je 0x403604
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403604
push eax
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x2f8], esi
test esi, esi
je 0x4035ef
cmp esi, 0xffffffff
je 0x4035ef
lea eax, [ebp - 0x2f4]
mov dword [ebp - 0x2f4], 0x1c
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x2f0], xmm0
movlpd qword [ebp - 0x2e8], xmm0
movlpd qword [ebp - 0x2e0], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x4035e8
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x2fc], ecx
test ecx, ecx
je 0x4035e8
nop
mov eax, dword [ecx + 0x20]
cmp eax, dword [ebp - 0x2e8]
jne 0x403599
mov eax, dword [ebp - 0x2ec]
cmp dword [ecx + 0x24], eax
je 0x403599
push eax
push 0
push 0x81a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x403599
cmp ebx, 0xffffffff
je 0x403599
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x403599
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.00419c70
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10007
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x4034e4
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403599
mov esi, dword [0x4b1688]
mov edx, dword [0x4b1680]
lea eax, [esi + 1]
cmp edx, eax
ja 0x403509
push ecx
call fcn.0040cd40
mov esi, dword [0x4b1688]
mov edx, dword [0x4b1680]
mov ecx, dword [0x4b1684]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [0x4b1684], ecx
lea edi, [ecx + esi]
mov ecx, dword [0x4b167c]
and eax, edi
lea esi, [eax*4]
cmp dword [esi + ecx], 0
jne 0x403557
push 0x2d4
call fcn.00418830
mov ecx, dword [0x4b167c]
add esp, 4
mov dword [esi + ecx], eax
mov edx, dword [0x4b1680]
mov ecx, dword [0x4b167c]
lea eax, [edx - 1]
and eax, edi
lea esi, [ebp - 0x2d8]
lea edi, [ebp - 0x5c8]
mov edx, dword [ecx + eax*4]
mov ecx, 0xb3
mov eax, dword [ebp - 0x2ec]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb3
lea esi, [ebp - 0x5c8]
lea edi, [edx + 8]
mov dword [edx], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2f8]
mov dword [edx + 4], ebx
inc dword [0x4b1688]
lea eax, [ebp - 0x2f4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov ecx, dword [ebp - 0x2fc]
test eax, eax
jne 0x403450
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4b168c]
test eax, eax
je 0x403604
cmp eax, 0xffffffff
je 0x403604
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x403604
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041881d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4b168c]
test eax, eax
je 0x403604
cmp eax, 0xffffffff
je 0x403604
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041881d
mov esp, ebp
pop ebp
ret