Function at 0x40e960
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Enumerate pe sections
Get ntdll base address
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x330
mov esi, esp
mov dword [esi + 0x318], ebp
mov dword [esi + 0x31c], esp
mov dword [esi + 0x328], 0xffffffff
mov dword [esi + 0x324], 0x40f150
mov dword [esi + 0x54], ecx
mov dword [esi + 0xc], edx
mov eax, dword fs:[0]
mov dword [esi + 0x320], eax
lea eax, [esi + 0x320]
mov dword fs:[0], eax
mov byte [esi + 3], 1
mov dword [esi + 0x328], 0
lea eax, [esi + 0xe8]
push edx
push eax
call fcn.004368e0
add esp, 8
mov ebx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x38]
movsd xmm0, qword [ebx + 0x30]
mov ecx, dword [edx + 0x14]
mov dword [esi + 0x118], eax
mov eax, dword [edx + 0x18]
movsd qword [esi + 0x110], xmm0
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [esi + 0x18], edx
mov edx, dword [eax]
lea eax, [ebx + 0x10]
mov byte [esi + 2], 1
mov dword [esi + 0x328], 1
mov dword [esi + 0x10], edx
mov edx, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x20]
mov dword [esi + 0xc], edx
push edi
push dword [esi + 0x18]
push dword [esi + 0x10]
lea edx, [esi + 0xe8]
push edx
lea edx, [esi + 0x110]
push edx
mov dword [esi + 0x18], ecx
push ecx
push ebx
push dword [esi + 0xc]
mov dword [esi + 0xc], eax
push eax
lea eax, [esi + 0x298]
push eax
call fcn.0042a5e0
add esp, 0x28
movsd xmm0, qword [esi + 0xf8]
movsd xmm2, qword [esi + 0xe8]
movsd xmm1, qword [esi + 0xf0]
lea eax, [esi + 0x1d8]
mov byte [esi + 2], 0
movsd qword [esi + 0x1e8], xmm0
movsd qword [esi + 0x1e0], xmm1
movsd qword [esi + 0x1d8], xmm2
push eax
push 1
lea eax, [esi + 0x298]
push eax
lea eax, [esi + 0x110]
push eax
call fcn.0042b080
add esp, 0x10
cmp dword [esi + 0x110], 3
jne 0x40ead7
mov edi, dword [esi + 0x54]
lea eax, [esi + 0x114]
lea ecx, [edi + 4]
push 0xc0
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi], 3
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
lock dec dword [eax]
je 0x40eed9
jmp 0x40eeec
mov eax, dword [esi + 0x110]
movups xmm0, xmmword [esi + 0x134]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x114]
movaps xmmword [esi + 0x100], xmm0
movsd xmm0, qword [esi + 0x148]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x118]
movsd qword [esi + 0xb8], xmm0
movsd xmm0, qword [esi + 0x150]
mov dword [esi + 0x4c], eax
movzx eax, byte [esi + 0x158]
movsd qword [esi + 0xc0], xmm0
movsd xmm0, qword [esi + 0x16c]
mov byte [esi + 0xc8], al
movzx eax, byte [esi + 0x15b]
movsd qword [esi + 0x98], xmm0
movsd xmm0, qword [esi + 0x164]
mov byte [esi + 0xa], al
movzx eax, word [esi + 0x159]
movsd qword [esi + 0x90], xmm0
movsd xmm0, qword [esi + 0x15c]
mov word [esi + 8], ax
mov eax, dword [esi + 0x11c]
movsd qword [esi + 0x88], xmm0
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x120]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x124]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x128]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x12c]
mov dword [esi + 0x40], eax
movzx eax, word [esi + 0x130]
mov word [esi + 0x1c], ax
movzx eax, word [esi + 0x132]
mov word [esi + 0x1e], ax
mov eax, dword [esi + 0x144]
mov dword [esi + 0x44], eax
lea eax, [esi + 0x174]
push 0x60
push eax
lea eax, [esi + 0x1d8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x18]
mov dword [esi + 0x328], 2
lea ecx, [esi + 0x238]
add eax, 0x10
push eax
push ecx
call fcn.004e32d0
add esp, 8
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 0x240]
mov ebx, dword [esi + 0x238]
movzx eax, word [edi + 0x1c]
movsd xmm0, qword [edi + 0x34]
movups xmm2, xmmword [edi + 0x20]
mov edx, dword [edi + 0xc]
mov dword [esi + 0x2c], ecx
mov word [esi + 0x16], ax
movzx eax, word [edi + 0x1e]
mov word [esi + 0x14], ax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x34], eax
mov eax, dword [edi]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 8]
movsd qword [esi + 0xd0], xmm0
movsd xmm0, qword [edi + 0x3c]
mov dword [esi + 0x30], eax
movsd qword [esi + 0xd8], xmm0
movzx eax, byte [edi + 0x44]
mov byte [esi + 0xe0], al
mov eax, dword [esi + 0x10]
cmp eax, 2
mov eax, dword [esi + 0x23c]
mov dword [esi + 0x20], eax
jne 0x40ecd9
cmp dword [esi + 0xa0], 2
mov dword [esi + 0x50], edx
jne 0x40eda0
add edi, 0x34
movsd xmm3, qword [esi + 0x88]
movzx eax, byte [edi + 0x10]
mov byte [esi + 0x68], al
movzx eax, word [esi + 8]
movsd xmm1, qword [edi + 8]
movsd xmm0, qword [edi]
movsd qword [esi + 0x70], xmm3
mov word [esi + 4], ax
movzx eax, byte [esi + 0xa]
movsd qword [esi + 0x60], xmm1
movsd xmm1, qword [esi + 0x90]
movsd qword [esi + 0x58], xmm0
mov byte [esi + 6], al
movsd qword [esi + 0x78], xmm1
movsd xmm1, qword [esi + 0x98]
movsd qword [esi + 0x80], xmm1
jmp 0x40ee26
movzx eax, byte [esi + 0xc8]
movsd xmm0, qword [esi + 0xb8]
movsd xmm1, qword [esi + 0xc0]
mov byte [esi + 0x68], al
movsd qword [esi + 0x58], xmm0
movzx eax, word [esi + 8]
movsd xmm0, qword [esi + 0x88]
movsd qword [esi + 0x60], xmm1
movsd xmm1, qword [esi + 0x90]
mov word [esi + 4], ax
movzx eax, byte [esi + 0xa]
movsd qword [esi + 0x70], xmm0
movsd xmm0, qword [esi + 0x98]
movsd qword [esi + 0x78], xmm1
mov byte [esi + 6], al
movsd qword [esi + 0x80], xmm0
push 0x60
lea eax, [esi + 0x1d8]
push eax
lea eax, [esi + 0x238]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x40ed60
push 1
push ebx
push dword [esi + 0x20]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [esi + 0x48]
movzx edx, word [esi + 0x1c]
movzx ebx, word [esi + 0x1e]
mov edi, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
movaps xmm2, xmmword [esi + 0x100]
mov dword [esi + 0x30], eax
mov word [esi + 0x16], dx
mov word [esi + 0x14], bx
mov dword [esi + 0x34], edi
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x4c]
mov ebx, dword [esi + 0x28]
mov edi, dword [esi + 0xa0]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x20], edx
jmp 0x40ee2c
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], ebx
test eax, eax
je 0x40edc6
push 1
push eax
push dword [esi + 0x24]
movaps xmmword [esi + 0xa0], xmm2
call fcn.00402cf0
movaps xmm2, xmmword [esi + 0xa0]
add esp, 0xc
movsd xmm0, qword [esi + 0xd0]
movsd xmm1, qword [esi + 0xd8]
movzx eax, byte [esi + 0xe0]
movzx edx, word [esi + 8]
movzx ecx, byte [esi + 0xa]
mov ebx, dword [esi + 0x18]
movsd qword [esi + 0x58], xmm0
movsd xmm0, qword [esi + 0x88]
movsd qword [esi + 0x60], xmm1
movsd xmm1, qword [esi + 0x90]
mov byte [esi + 0x68], al
mov word [esi + 4], dx
mov byte [esi + 6], cl
movsd qword [esi + 0x70], xmm0
movsd xmm0, qword [esi + 0x98]
movsd qword [esi + 0x78], xmm1
movsd qword [esi + 0x80], xmm0
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x38]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x54]
movsd xmm0, qword [esi + 0x58]
movsd xmm1, qword [esi + 0x60]
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x50]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x20]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 0x1c], eax
movzx eax, word [esi + 0x16]
mov word [ecx + 0x20], ax
movzx eax, word [esi + 0x14]
mov word [ecx + 0x22], ax
mov eax, dword [esi + 0x34]
movups xmmword [ecx + 0x24], xmm2
mov dword [ecx + 0x34], eax
movzx eax, byte [esi + 0x68]
movsd qword [ecx + 0x40], xmm1
movsd qword [ecx + 0x38], xmm0
movsd xmm1, qword [esi + 0x78]
movsd xmm0, qword [esi + 0x70]
mov byte [ecx + 0x48], al
movzx eax, word [esi + 4]
mov word [ecx + 0x49], ax
movzx eax, byte [esi + 6]
mov byte [ecx + 0x4b], al
movsd qword [ecx + 0x54], xmm1
movsd xmm1, qword [esi + 0x80]
movsd qword [ecx + 0x4c], xmm0
movsd qword [ecx + 0x5c], xmm1
add ecx, 0x64
push 0x60
lea eax, [esi + 0x238]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
lock dec dword [eax]
jne 0x40eeec
mov dword [esi + 0x328], 4
push ecx
call fcn.00417d10
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
lock dec dword [eax]
jne 0x40ef10
mov eax, dword [ebp + 8]
mov dword [esi + 0x328], 3
add eax, 0x14
push eax
call fcn.004174f0
add esp, 4
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40ef28
push 1
push eax
push dword [edi + 0x1c]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40ef3d
push 1
push eax
push dword [edi + 0x28]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [esi + 0x320]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret