Function at 0x40ed60
Capabilities:
Get number of processors
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x41f06f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x4209bc
mov dword [esi + 0x30], 0x4209b8
mov dword [esi + 0x34], 0x4209b4
mov eax, dword [esi + 0xec]
mov dword [esp + 0x20], 0x1c
push eax
call fcn.0041c570
mov eax, dword [esi + 0x640]
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [esi + 0xec], ebx
je 0x40edd9
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 0x640]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x640], ebx
mov edx, dword [esi + 0xd8]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0xd4]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
mov dword [esi + 0xd8], ebx
call edi
mov ecx, dword [esi + 0x358]
mov dword [esi + 0xd4], ebx
push ecx
call edi
mov eax, dword [esi + 0x3b4]
mov dword [esi + 0x358], ebx
cmp eax, ebx
je 0x40ee56
mov eax, dword [esi + 0x3b0]
cmp eax, ebx
je 0x40ee56
xor edi, edi
cmp eax, ebx
jle 0x40ee47
mov edx, dword [esi + 0x3b4]
mov eax, dword [edx + edi*4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x3b0]
add esp, 4
inc edi
cmp edi, eax
jl 0x40ee2a
mov eax, dword [esi + 0x3b4]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esi + 0xa8]
cmp edi, ebx
je 0x40ee70
mov ecx, edi
call fcn.00406b50
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0xac]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x40eed9
mov byte [eax + 0xc], 1
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 4]
test eax, eax
je 0x40eeb2
push 0x64
push eax
call ebp
test eax, eax
je 0x40eeb2
mov eax, dword [esi + 0xac]
mov eax, dword [eax + 4]
test eax, eax
je 0x40eeb2
push 0
push eax
call ebx
mov edi, dword [esi + 0xac]
test edi, edi
je 0x40eed9
mov eax, dword [edi + 4]
mov dword [edi], 0x420510
test eax, eax
je 0x40eed0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x40ef39
mov byte [eax + 0xc], 1
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 4]
test eax, eax
je 0x40ef12
push 0x190
push eax
call ebp
test eax, eax
je 0x40ef12
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 4]
test eax, eax
je 0x40ef12
push 0
push eax
call ebx
mov edi, dword [esi + 0xb0]
test edi, edi
je 0x40ef39
mov eax, dword [edi + 4]
mov dword [edi], 0x420510
test eax, eax
je 0x40ef30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x35c]
test eax, eax
je 0x40ef53
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x35c], 0
mov eax, dword [esi + 0x394]
mov ecx, dword [0x42403c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0x20], 0x1b
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40ef8d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40ef8d
mov eax, dword [esi + 0x394]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x390]
mov edx, dword [0x42403c]
mov byte [esp + 0x20], 0x1a
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40efc1
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40efc1
mov eax, dword [esi + 0x390]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x38c]
mov ecx, dword [0x42403c]
mov byte [esp + 0x20], 0x19
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40eff5
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40eff5
mov eax, dword [esi + 0x38c]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x388]
mov edx, dword [0x42403c]
mov byte [esp + 0x20], 0x18
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f029
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f029
mov eax, dword [esi + 0x388]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x384]
mov ecx, dword [0x42403c]
mov byte [esp + 0x20], 0x17
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40f05d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f05d
mov eax, dword [esi + 0x384]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x380]
mov edx, dword [0x42403c]
mov byte [esp + 0x20], 0x16
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f091
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f091
mov eax, dword [esi + 0x380]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x37c]
mov ecx, dword [0x42403c]
mov byte [esp + 0x20], 0x15
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40f0c5
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f0c5
mov eax, dword [esi + 0x37c]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x378]
mov edx, dword [0x42403c]
mov byte [esp + 0x20], 0x14
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f0f9
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f0f9
mov eax, dword [esi + 0x378]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x374]
mov ecx, dword [0x42403c]
mov byte [esp + 0x20], 0x13
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40f12d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f12d
mov eax, dword [esi + 0x374]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x370]
mov edx, dword [0x42403c]
mov byte [esp + 0x20], 0x12
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f161
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f161
mov eax, dword [esi + 0x370]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x36c]
mov ecx, dword [0x42403c]
mov byte [esp + 0x20], 0x11
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40f195
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f195
mov eax, dword [esi + 0x36c]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x368]
mov edx, dword [0x42403c]
mov byte [esp + 0x20], 0x10
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f1c9
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f1c9
mov eax, dword [esi + 0x368]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edi, [esi + 0x2f0]
mov dword [esp + 0x14], edi
mov dword [edi], 0x4209c8
mov eax, dword [edi + 0x4c]
mov byte [esp + 0x20], 0x1d
test eax, eax
je 0x40f1f0
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebx
jmp 0x40f1f6
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 0x50]
test eax, eax
je 0x40f200
push eax
call ebx
mov eax, dword [edi + 0x54]
test eax, eax
je 0x40f20a
push eax
call ebx
mov eax, dword [edi + 0x58]
test eax, eax
je 0x40f214
push eax
call ebx
lea ecx, [edi + 0x5c]
call fcn.004182e0
lea edi, [esi + 0x288]
mov dword [esp + 0x14], edi
mov dword [edi], 0x4209c8
mov eax, dword [edi + 0x4c]
mov byte [esp + 0x20], 0x1e
test eax, eax
je 0x40f23b
push eax
call ebx
mov eax, dword [edi + 0x50]
test eax, eax
je 0x40f245
push eax
call ebx
mov eax, dword [edi + 0x54]
test eax, eax
je 0x40f24f
push eax
call ebx
mov eax, dword [edi + 0x58]
test eax, eax
je 0x40f259
push eax
call ebx
lea ecx, [edi + 0x5c]
call fcn.004182e0
lea ecx, [esi + 0x244]
mov byte [esp + 0x20], 0xd
call fcn.00416910
lea ecx, [esi + 0x200]
mov byte [esp + 0x20], 0xc
call fcn.00416910
lea ecx, [esi + 0x1bc]
mov byte [esp + 0x20], 0xb
call fcn.00416910
lea ecx, [esi + 0x178]
mov byte [esp + 0x20], 0xa
call fcn.00416910
lea ecx, [esi + 0x134]
mov byte [esp + 0x20], 9
call fcn.00416910
lea ecx, [esi + 0xf0]
mov byte [esp + 0x20], 8
call fcn.00416910
mov eax, dword [esi + 0xc8]
mov ecx, dword [0x42403c]
mov byte [esp + 0x20], 7
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40f2f5
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40f2f5
mov eax, dword [esi + 0xc8]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0xc4]
mov byte [esp + 0x20], 6
call fcn.0040e080
lea ecx, [esi + 0xc0]
mov byte [esp + 0x20], 5
call fcn.0040e080
lea ecx, [esi + 0xbc]
mov byte [esp + 0x20], 4
call fcn.0040e080
lea ecx, [esi + 0xb8]
mov byte [esp + 0x20], 3
call fcn.0040e080
lea ecx, [esi + 0xb4]
mov byte [esp + 0x20], 2
call fcn.0040e080
lea ecx, [esi + 0x54]
mov byte [esp + 0x20], 1
call fcn.0040f380
test esi, esi
mov byte [esp + 0x20], 0
je 0x40f360
lea ecx, [esi + 0x38]
jmp 0x40f362
xor ecx, ecx
call fcn.0040dfe0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret