Function at 0x540c4c
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x540fa6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x531b94]
call fcn.0053381c
mov ebx, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x54]
mov word [ebx + 0x74], ax
movzx eax, word [esi + 0x48]
mov word [ebx + 0x48], ax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x38]
mov word [ebx + 0x5e], ax
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x44], eax
mov word [ebx + 0x54], 0
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x20], ax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x4c]
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 8]
call fcn.00406a20
xor eax, eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x24]
cmp ax, 4
jbe 0x540da7
lea edx, [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x20]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
mov dx, 1
mov eax, dword [ebp - 4]
call fcn.00521310
test al, al
je 0x540d67
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
mov dx, 0x7075
mov eax, dword [ebp - 4]
call fcn.00521310
test al, al
je 0x540d84
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
mov dx, 0xa
mov eax, dword [ebp - 4]
call fcn.00521310
test al, al
je 0x540da7
cmp dword [ebp - 0x24], 0x24
jl 0x540da7
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], eax
lea eax, [ebx + 0x64]
mov edx, dword [ebp - 0xc]
call fcn.00406a74
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x540dd1
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x540dd1
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00406c3c
test eax, eax
je 0x540dda
sub eax, 4
mov eax, dword [eax]
mov word [ebx + 0x5c], ax
cmp dword [ebp - 0x20], 0
jle 0x540f6f
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.00407268
mov esi, 1
cmp dword [ebp - 0x2c], 0
jle 0x540e6e
mov edi, dword [ebp - 4]
test edi, edi
je 0x540e21
mov eax, edi
sub eax, 0xa
cmp word [eax], 1
je 0x540e21
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406c3c
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x540e49
mov eax, dword [ebp - 0x30]
sub eax, 0xa
cmp word [eax], 1
je 0x540e49
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00406c3c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
call fcn.004071fc
lea eax, [eax + esi - 1]
push eax
lea eax, [ebp - 4]
call fcn.004071fc
mov edx, dword [ebp - 0x1c]
lea eax, [eax + edx - 1]
mov ecx, dword [ebp - 0x2c]
pop edx
call fcn.00404468
add esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 0
jle 0x540ee5
mov edi, dword [ebp - 4]
test edi, edi
je 0x540e98
mov eax, edi
sub eax, 0xa
cmp word [eax], 1
je 0x540e98
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406c3c
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x540ec0
mov eax, dword [ebp - 0x34]
sub eax, 0xa
cmp word [eax], 1
je 0x540ec0
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00406c3c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 8]
call fcn.004071fc
lea eax, [eax + esi - 1]
push eax
lea eax, [ebp - 4]
call fcn.004071fc
mov edx, dword [ebp - 0x18]
lea eax, [eax + edx - 1]
mov ecx, dword [ebp - 0x28]
pop edx
call fcn.00404468
add esi, dword [ebp - 0x28]
cmp dword [ebp - 0x24], 0x24
jl 0x540f5c
mov edi, dword [ebp - 4]
test edi, edi
je 0x540f0f
mov eax, edi
sub eax, 0xa
cmp word [eax], 1
je 0x540f0f
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00406c3c
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x540f37
mov eax, dword [ebp - 0x38]
sub eax, 0xa
cmp word [eax], 1
je 0x540f37
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00406c3c
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
call fcn.004071fc
lea eax, [eax + esi - 1]
push eax
lea eax, [ebp - 4]
call fcn.004071fc
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx - 1]
mov ecx, dword [ebp - 0x24]
pop edx
call fcn.00404468
lea eax, [ebx + 0x50]
mov edx, dword [ebp - 8]
call fcn.00406a74
lea eax, [ebp - 8]
call fcn.00406a20
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov esi, eax
test esi, esi
jge 0x540f8b
mov eax, ebx
call fcn.00405780
mov esi, 0xf7ebcf74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540fad
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406a44
ret