Function at 0x51eeac
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x360], ebx
test dl, dl
je 0x51eed2
add esp, 0xfffffff0
call fcn.004053a8
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x19c]
lea esi, [ebp - 0x2bc]
lea edi, [ebp - 0x358]
xor eax, eax
push ebp
push 0x51f74b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x51f6cf
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dword [ebx], 0x58
mov dword [ebx + 4], 0x37
mov dword [ebx + 8], 0x34
mov dword [ebx + 0xc], 0x61
mov dword [ebx + 0x10], 0x21
mov dword [ebx + 0x14], 0x5f
mov dword [ebx + 0x18], 0x42
mov dword [ebx + 0x1c], 0x43
mov dword [ebx + 0x20], 0x2d
mov dword [ebx + 0x24], 0x64
mov dword [ebx + 0x28], 0x6b
mov dword [ebx + 0x2c], 0x5a
mov dword [ebx + 0x30], 0x28
mov dword [ebx + 0x34], 0x29
mov dword [ebx + 0x38], 0x2a
mov dword [ebx + 0x3c], 0x2b
mov dword [ebx + 0x40], 0x3d
mov dword [ebx + 0x44], 0x7a
mov dword [ebx + 0x48], 0x76
mov dword [ebx + 0x4c], 0x75
mov dword [ebx + 0x50], 0x39
mov dword [ebx + 0x54], 0x50
mov dword [ebx + 0x58], 0x4a
mov dword [ebx + 0x5c], 0x57
mov dword [ebx + 0x60], 0x6f
mov dword [ebx + 0x64], 0x67
mov dword [ebx + 0x68], 0x22
mov dword [ebx + 0x6c], 0x27
mov dword [ebx + 0x70], 0x30
mov dword [ebx + 0x74], 0x26
mov dword [ebx + 0x78], 0x48
mov dword [ebx + 0x7c], 0x53
mov dword [ebx + 0x80], 0x62
mov dword [ebx + 0x84], 0x4e
mov dword [ebx + 0x88], 0x78
mov dword [ebx + 0x8c], 0x59
mov dword [ebx + 0x90], 0x31
mov dword [ebx + 0x94], 0x32
mov dword [ebx + 0x98], 0xe8
mov dword [ebx + 0x9c], 0xe0
mov dword [ebx + 0xa0], 0xe9
mov dword [ebx + 0xa4], 0x35
mov dword [ebx + 0xa8], 0x4b
mov dword [ebx + 0xac], 0x33
mov dword [ebx + 0xb0], 0x4c
mov dword [ebx + 0xb4], 0xec
mov dword [ebx + 0xb8], 0x5b
mov dword [ebx + 0xbc], 0xf2
mov dword [ebx + 0xc0], 0x5d
mov dword [ebx + 0xc4], 0x69
mov dword [ebx + 0xc8], 0x68
mov dword [ebx + 0xcc], 0x54
mov dword [ebx + 0xd0], 0x23
mov dword [ebx + 0xd4], 0x55
mov dword [ebx + 0xd8], 0x74
mov dword [ebx + 0xdc], 0x41
mov dword [ebx + 0xe0], 0x40
mov dword [ebx + 0xe4], 0xf9
mov dword [ebx + 0xe8], 0x46
mov dword [ebx + 0xec], 0x6c
mov dword [ebx + 0xf0], 0x36
mov dword [ebx + 0xf4], 0xb0
mov dword [ebx + 0xf8], 0x2c
mov dword [ebx + 0xfc], 0x2e
mov dword [ebx + 0x100], 0x3b
mov dword [ebx + 0x104], 0x4d
mov dword [ebx + 0x108], 0x38
mov dword [ebx + 0x10c], 0x73
mov dword [ebx + 0x110], 0x63
mov dword [ebx + 0x114], 0x3a
mov dword [ebx + 0x118], 0x56
mov dword [ebx + 0x11c], 0x3f
mov dword [ebx + 0x120], 0x6a
mov dword [ebx + 0x124], 0x3c
mov dword [ebx + 0x128], 0x47
mov dword [ebx + 0x12c], 0x3e
mov dword [ebx + 0x130], 0x71
mov dword [ebx + 0x134], 0x51
mov dword [ebx + 0x138], 0x52
mov dword [ebx + 0x13c], 0x4f
mov dword [ebx + 0x140], 0x2f
mov dword [ebx + 0x144], 0x5c
mov dword [ebx + 0x148], 0x24
mov dword [ebx + 0x14c], 0x65
mov dword [ebx + 0x150], 0x6e
mov dword [ebx + 0x154], 0x66
mov dword [ebx + 0x158], 0x45
mov dword [ebx + 0x15c], 0x44
mov dword [ebx + 0x160], 0x70
mov dword [ebx + 0x164], 0x72
mov dword [ebx + 0x168], 0xa3
mov dword [ebx + 0x16c], 0x25
mov dword [ebx + 0x170], 0x7c
mov dword [ebx + 0x174], 0x49
mov dword [ebx + 0x178], 0x77
mov dword [ebx + 0x17c], 0x79
mov dword [ebx + 0x180], 0x20
mov dword [ebx + 0x184], 0x6d
mov dword [ebx + 0x188], 0x5e
mov dword [ebx + 0x18c], 0xa7
mov dword [esi], 0x78
mov dword [esi + 4], 0x54
mov dword [esi + 8], 0x34
mov dword [esi + 0xc], 0x57
mov dword [esi + 0x10], 0x6e
mov dword [esi + 0x14], 0x6f
mov dword [esi + 0x18], 0x45
mov dword [esi + 0x1c], 0x36
mov dword [esi + 0x20], 0x38
mov dword [esi + 0x24], 0x7a
mov dword [esi + 0x28], 0x44
mov dword [esi + 0x2c], 0x25
mov dword [esi + 0x30], 0x69
mov dword [esi + 0x34], 0x47
mov dword [esi + 0x38], 0x72
mov dword [esi + 0x3c], 0x62
mov dword [esi + 0x40], 0x41
mov dword [esi + 0x44], 0x56
mov dword [esi + 0x48], 0x4a
mov dword [esi + 0x4c], 0x50
mov dword [esi + 0x50], 0x2d
mov dword [esi + 0x54], 0x6b
mov dword [esi + 0x58], 0x4c
mov dword [esi + 0x5c], 0x33
mov dword [esi + 0x60], 0x79
mov dword [esi + 0x64], 0x75
mov dword [esi + 0x68], 0x68
mov dword [esi + 0x6c], 0x21
mov dword [esi + 0x70], 0x43
mov dword [esi + 0x74], 0x65
mov dword [esi + 0x78], 0x6c
mov dword [esi + 0x7c], 0x55
mov dword [esi + 0x80], 0x4d
mov dword [esi + 0x84], 0x35
mov dword [esi + 0x88], 0x61
mov dword [esi + 0x8c], 0x4e
mov dword [esi + 0x90], 0x52
mov dword [esi + 0x94], 0x64
mov dword [esi + 0x98], 0x73
mov dword [esi + 0x9c], 0x53
mov dword [esi + 0xa0], 0x31
mov dword [esi + 0xa4], 0x5a
mov dword [esi + 0xa8], 0x48
mov dword [esi + 0xac], 0x32
mov dword [esi + 0xb0], 0x77
mov dword [esi + 0xb4], 0x37
mov dword [esi + 0xb8], 0x74
mov dword [esi + 0xbc], 0x24
mov dword [esi + 0xc0], 0x71
mov dword [esi + 0xc4], 0x49
mov dword [esi + 0xc8], 0x4b
mov dword [esi + 0xcc], 0x67
mov dword [esi + 0xd0], 0x20
mov dword [esi + 0xd4], 0x6d
mov dword [esi + 0xd8], 0x70
mov dword [esi + 0xdc], 0x76
mov dword [esi + 0xe0], 0x59
mov dword [esi + 0xe4], 0x46
mov dword [esi + 0xe8], 0x4f
mov dword [esi + 0xec], 0x51
mov dword [esi + 0xf0], 0x6a
mov dword [esi + 0xf4], 0x2a
mov dword [esi + 0xf8], 0x66
mov dword [esi + 0xfc], 0x39
mov dword [esi + 0x100], 0x26
mov dword [esi + 0x104], 0xa3
mov dword [esi + 0x108], 0x3f
mov dword [esi + 0x10c], 0x42
mov dword [esi + 0x110], 0x30
mov dword [esi + 0x114], 0x58
mov dword [esi + 0x118], 0x63
mov dword [edi], 0x54
mov dword [edi + 4], 0x34
mov dword [edi + 8], 0x57
mov dword [edi + 0xc], 0x45
mov dword [edi + 0x10], 0x36
mov dword [edi + 0x14], 0x38
mov dword [edi + 0x18], 0x44
mov dword [edi + 0x1c], 0x47
mov dword [edi + 0x20], 0x41
mov dword [edi + 0x24], 0x56
mov dword [edi + 0x28], 0x4a
mov dword [edi + 0x2c], 0x50
mov dword [edi + 0x30], 0x2d
mov dword [edi + 0x34], 0x4c
mov dword [edi + 0x38], 0x33
mov dword [edi + 0x3c], 0x43
mov dword [edi + 0x40], 0x55
mov dword [edi + 0x44], 0x4e
mov dword [edi + 0x48], 0x35
mov dword [edi + 0x4c], 0x59
mov dword [edi + 0x50], 0x52
mov dword [edi + 0x54], 0x53
mov dword [edi + 0x58], 0x31
mov dword [edi + 0x5c], 0x5a
mov dword [edi + 0x60], 0x48
mov dword [edi + 0x64], 0x32
mov dword [edi + 0x68], 0x37
mov dword [edi + 0x6c], 0x49
mov dword [edi + 0x70], 0x4b
mov dword [edi + 0x74], 0x4d
mov dword [edi + 0x78], 0x46
mov dword [edi + 0x7c], 0x4f
mov dword [edi + 0x80], 0x51
mov dword [edi + 0x84], 0x39
mov dword [edi + 0x88], 0x42
mov dword [edi + 0x8c], 0x30
mov dword [edi + 0x90], 0x58
mov dword [edi + 0x94], 0x20
cmp byte [ebp - 6], 0
je 0x51f64b
push 0x48
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 1
mov edx, dword [0x51ec4c]
call fcn.004085c4
add esp, 4
xor eax, eax
mov edx, esi
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov ebx, dword [edx]
mov dword [ecx + eax*4], ebx
inc eax
add edx, 4
cmp eax, 0x48
jne 0x51f635
jmp 0x51f6c5
cmp byte [ebp + 8], 0
je 0x51f686
push 0x27
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 1
mov edx, dword [0x51ec4c]
call fcn.004085c4
add esp, 4
xor eax, eax
mov edx, edi
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov ebx, dword [edx]
mov dword [ecx + eax*4], ebx
inc eax
add edx, 4
cmp eax, 0x27
jne 0x51f670
jmp 0x51f6c5
cmp byte [ebp - 6], 0
jne 0x51f6c5
cmp byte [ebp + 8], 0
jne 0x51f6c5
push 0x65
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 1
mov edx, dword [0x51ec4c]
call fcn.004085c4
add esp, 4
xor eax, eax
mov edx, ebx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov esi, dword [edx]
mov dword [ecx + eax*4], esi
inc eax
add edx, 4
cmp eax, 0x65
jne 0x51f6b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51f72d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f752
lea eax, [ebp - 0x360]
mov edx, 2
call fcn.00406bf0
ret