Function at 0x40e600
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
cmp dword [esp + 0x38], 0
jne 0x40e629
mov ecx, str.noisolation
call fcn.00411550
jmp 0x40e629
lock btr dword [esi], 0
jae 0x40eb0e
lock dec dword [esi + 4]
xor eax, eax
mov ecx, 1
lock cmpxchg dword [0x4401b4], ecx
jne 0x40ebae
mov dword [0x4401b8], str.rvvm.c_225
cmp dword [esp + 0x38], 0
sete al
mov ecx, dword [0x4401c4]
mov dword [esp + 4], ecx
test ecx, ecx
je 0x40ec1b
xor al, byte [0x4401c8]
test al, 1
je 0x40ec1b
mov eax, dword [esp + 4]
mov ecx, eax
neg ecx
mov dword [esp + 0xc], ecx
lea ecx, [eax*4]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0
mov ecx, eax
jmp 0x40e6c4
cmp dword [esp + 0x38], 0
jne 0x40ec1b
inc dword [esp + 0x10]
inc dword [esp + 0xc]
add dword [esp + 8], 0xfffffffc
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40ead0
mov eax, dword [0x4401bc]
mov ebx, dword [eax + ecx*4 - 4]
dec ecx
mov esi, dword [ebx + 0x44]
cmp esi, 1
mov dword [esp], ebx
mov dword [esp + 0x14], ecx
jne 0x40e870
cmp dword [ebx + 0x20], 0
je 0x40e910
xor esi, esi
jmp 0x40e6fa
inc esi
cmp esi, dword [ebx + 0x20]
jae 0x40e910
mov eax, dword [ebx + 0x18]
mov ebp, dword [eax + esi*4]
mov eax, dword [ebp + 0x35b0]
test eax, eax
je 0x40e715
mov eax, dword [eax + 4]
test eax, eax
jne 0x40e7e0
mov ebx, dword [ebp + 0x3228]
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
call fcn.0040d0a0
mov edi, edx
movq xmm0, qword [ebx + 0x30]
pshufd xmm1, xmm0, 0x55
movd edx, xmm1
movd ecx, xmm0
sub eax, ecx
sbb edi, edx
movq xmm0, qword [ebp + 0x35b8]
pshufd xmm1, xmm0, 0x55
movd edx, xmm1
movd ecx, xmm0
mov dword [esp + 0x18], eax
cmp eax, ecx
mov ecx, edi
sbb ecx, edx
jb 0x40e78f
mov eax, dword [ebp + 0x35d8]
mov edx, dword [ebp + 0x35dc]
nop dword [eax + eax]
mov ebx, eax
or ebx, 0x80
mov ecx, edx
lock cmpxchg8b qword [ebp + 0x35d8]
jne 0x40e770
test al, 0x80
jne 0x40e78f
mov dword [ebp], 0
movq xmm0, qword [ebp + 0x35c8]
pshufd xmm1, xmm0, 0x55
movd eax, xmm1
movd ecx, xmm0
cmp dword [esp + 0x18], ecx
sbb edi, eax
mov ebx, dword [esp]
jb 0x40e7e0
mov eax, dword [ebp + 0x35d8]
mov edx, dword [ebp + 0x35dc]
nop dword [eax + eax]
mov ebx, eax
or ebx, 0x20
mov ecx, edx
lock cmpxchg8b qword [ebp + 0x35d8]
jne 0x40e7c0
test al, 0x20
mov ebx, dword [esp]
jne 0x40e7e0
mov dword [ebp], 0
nop
movq xmm0, qword [ebx + 0x90]
pshufd xmm1, xmm0, 0x55
movd eax, xmm1
movd ecx, xmm0
mov edx, 0x63
cmp edx, ecx
mov ecx, 0
sbb ecx, eax
jb 0x40e6f0
movq xmm0, qword [ebx + 0x90]
pshufd xmm1, xmm0, 0x55
movd eax, xmm0
mov ecx, 0xa
mul ecx
movd ecx, xmm1
add ecx, ecx
lea ecx, [ecx + ecx*4]
add eax, 9
adc ecx, edx
push 0
push 0x64
push ecx
push eax
call fcn.00436db0
add esp, 0x10
cmp eax, 0xa
je 0x40e6f0
mov ecx, 0xa
sub ecx, eax
mov dword [ebp + 0x35e4], ecx
lock or dword [ebp + 0x35e0], 2
mov dword [ebp], 0
jmp 0x40e6f0
cmp dword [ebx + 0x20], 0
je 0x40e950
xor edi, edi
jmp 0x40e88d
inc edi
mov ebx, dword [esp]
cmp edi, dword [ebx + 0x20]
jae 0x40e950
mov eax, dword [ebx + 0x18]
mov ebp, dword [eax + edi*4]
lock or dword [ebp + 0x35e0], 1
mov dword [ebp], 0
mov eax, dword [ebp + 0x35b0]
test eax, eax
je 0x40e8c0
lock or dword [eax], 1
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40e8c0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [ebp + 0x35ac]
mov dword [ebp + 0x35ac], 0
test ebx, ebx
je 0x40e880
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.MSVCR70.dll_free
add esp, 4
jmp 0x40e880
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40e6ab
xor esi, esi
jmp 0x40e929
inc esi
cmp esi, eax
jae 0x40e6ab
mov ecx, dword [ebx + 0x24]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40e920
mov edx, dword [edx + 4]
test edx, edx
je 0x40e920
push ecx
call edx
add esp, 4
mov eax, dword [ebx + 0x2c]
jmp 0x40e920
cmp esi, 2
jne 0x40ea20
push ebx
push str.Machine__p_resetting
call fcn.00410a40
add esp, 8
mov ecx, ebx
call fcn.0040df40
cmp dword [ebx + 0x20], 0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
je 0x40e6ab
xor esi, esi
jmp 0x40e9a3
mov dword [ebx + 0x35ac], edi
inc esi
mov ebx, dword [esp]
cmp esi, dword [ebx + 0x20]
jae 0x40e6ab
mov eax, dword [ebx + 0x18]
mov ebx, dword [eax + esi*4]
mov dword [ebx + 0x35e0], 0
push 4
push 1
call sub.MSVCR70.dll_calloc
add esp, 8
test eax, eax
je 0x40ec32
mov edi, eax
push 8
push 1
call sub.MSVCR70.dll_calloc
add esp, 8
test eax, eax
je 0x40ec32
mov dword [eax], 0x40ab00
mov dword [eax + 4], ebx
push 0
push 0x10000
push eax
push 0x40fca0
push 0x10000
push 0
call ebp
mov dword [edi], eax
test eax, eax
jne 0x40e990
push str.Failed_to_spawn_thread_
call fcn.00410c10
add esp, 4
push edi
call sub.MSVCR70.dll_free
add esp, 4
xor edi, edi
jmp 0x40e990
push ebx
push str.Machine__p_shutting_down
call fcn.00410a40
add esp, 8
mov dword [ebx + 0x40], 0
mov edx, dword [0x4401c4]
mov ebp, dword [esp + 0x14]
cmp ebp, edx
jae 0x40e6a0
lea eax, [edx - 1]
mov dword [0x4401c4], eax
cmp ebp, eax
jae 0x40e6a0
mov edi, dword [esp + 0x10]
sub edi, dword [esp + 4]
mov ecx, dword [0x4401bc]
add edi, edx
cmp edi, 8
mov esi, ebp
jb 0x40eab0
mov esi, edi
and esi, 0xfffffff8
add edx, dword [esp + 0xc]
and edx, 0xfffffff8
mov ebx, dword [esp + 8]
add ebx, ecx
movdqu xmm0, xmmword [ebx]
movdqu xmm1, xmmword [ebx + 0x10]
movdqu xmmword [ebx - 4], xmm0
movdqu xmmword [ebx + 0xc], xmm1
add ebx, 0x20
add edx, 0xfffffff8
jne 0x40ea80
cmp edi, esi
je 0x40e6a0
add esi, ebp
nop word cs:[eax + eax]
nop
mov edx, dword [ecx + esi*4 + 4]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, eax
jb 0x40eab0
jmp 0x40e6a0
xor edx, edx
xchg dword [0x4401b4], edx
cmp edx, 1
jne 0x40ebc2
mov esi, dword [0x4401a0]
test esi, esi
je 0x40e629
mov eax, dword [esi]
test al, 1
je 0x40eb00
lock btr dword [esi], 0
jb 0x40e629
lock inc dword [esi + 4]
mov eax, dword [esi]
test al, 1
jne 0x40e61a
mov eax, dword [0x456330]
cmp eax, 2
jne 0x40ebdf
cmp dword [0x440204], 0
je 0x40eb90
cmp byte [0x4401e8], 0
mov ecx, 0
mov eax, 0x3e8
cmovne ecx, eax
xor edx, edx
call fcn.0040d0a0
movq xmm0, qword [0x4401e0]
pshufd xmm1, xmm0, 0x55
movd ecx, xmm1
movd edi, xmm0
sub eax, edi
sbb edx, ecx
cmp eax, 0x65
sbb edx, 0
jb 0x40eb90
xor eax, eax
xchg dword [0x4401f0], eax
test eax, eax
je 0x40eb90
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
push 1
push 0x2625a
call dword [0x440204]
nop word [eax + eax]
push 0x10
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
test al, 1
je 0x40e625
lock and dword [esi], 0xfffffffe
jmp 0x40e625
mov ecx, 0x4401b4
mov edx, str.rvvm.c_225
call fcn.0040f5ee
jmp 0x40e648
mov ecx, 0x4401b4
call fcn.0040f821
mov esi, dword [0x4401a0]
test esi, esi
jne 0x40eaef
jmp 0x40e629
xor eax, eax
mov ecx, 1
lock cmpxchg dword [0x456330], ecx
jne 0x40ebff
call fcn.0040d510
mov dword [0x456330], 2
mov ecx, 0x456330
call fcn.00410d70
cmp dword [0x440204], 0
jne 0x40eb25
jmp 0x40eb90
xor edx, edx
xchg dword [0x4401b4], edx
cmp edx, 1
jne 0x40ec3c
xor eax, eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push str.Out_of_memory_
call fcn.00410c90
mov ecx, 0x4401b4
call fcn.0040f821
jmp 0x40ec28