Function at 0x405774
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x7bb6d5
call fcn.007a83c4
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 4]
mov ecx, eax
neg ecx
lea edx, [eax - 4]
sbb ecx, ecx
and ecx, edx
push edi
mov dword [ebp - 0x10], esi
mov dword [0x87e3d4], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808580
push 0x1f
lea ecx, [esi + 0x18]
pop ebx
push 0x64
mov byte [ebp - 4], 1
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x80857c
call fcn.004134cf
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x808578
lea ecx, [esi + 0x44]
push 0x64
mov byte [ebp - 4], 3
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808574
call fcn.0041372c
lea ecx, [esi + 0x5c]
push 0x64
mov byte [ebp - 4], 4
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808570
call fcn.004137a1
lea eax, [esi + 0x74]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x80856c
lea ecx, [esi + 0x88]
push 0x64
mov byte [ebp - 4], 6
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808568
call fcn.004139cc
lea eax, [esi + 0xa0]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808564
lea ecx, [esi + 0xb4]
mov byte [ebp - 4], 8
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808560
push 0x64
call fcn.00413bf7
lea eax, [esi + 0xcc]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x80855c
lea ecx, [esi + 0xe0]
push 0x64
mov byte [ebp - 4], 0xa
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808558
call fcn.00413fa2
lea eax, [esi + 0xf8]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808554
lea ecx, [esi + 0x10c]
push 0x64
mov byte [ebp - 4], 0xc
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808550
call fcn.0041434d
lea ecx, [esi + 0x124]
push 0x64
mov byte [ebp - 4], 0xd
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x80854c
call fcn.004145f5
lea eax, [esi + 0x13c]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808548
lea ecx, [esi + 0x150]
push 0x64
mov byte [ebp - 4], 0xf
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808544
call fcn.004149a0
lea eax, [esi + 0x168]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808540
lea ecx, [esi + 0x17c]
push 0x64
mov byte [ebp - 4], 0x11
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x80853c
call fcn.00414d4b
lea eax, [esi + 0x194]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808538
lea ecx, [esi + 0x1a8]
mov byte [ebp - 4], 0x13
mov dword [ecx + 4], edi
push 0x64
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808534
call fcn.004150f6
lea eax, [esi + 0x1c0]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808530
lea ecx, [esi + 0x1d4]
push 0x64
mov byte [ebp - 4], 0x15
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x80852c
call fcn.004154a1
lea eax, [esi + 0x1ec]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808528
lea ecx, [esi + 0x200]
push 0x64
mov byte [ebp - 4], 0x17
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808524
call fcn.0041584c
lea eax, [esi + 0x218]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808520
lea ecx, [esi + 0x22c]
push 0x64
mov byte [ebp - 4], 0x19
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x80851c
call fcn.00415bf7
lea eax, [esi + 0x244]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808518
lea ecx, [esi + 0x258]
push 0x64
mov byte [ebp - 4], 0x1b
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x808514
call fcn.00415fa2
lea eax, [esi + 0x270]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x808510
lea ecx, [esi + 0x284]
push 0x64
mov byte [ebp - 4], 0x1d
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx], 0x80850c
call fcn.0041634d
mov byte [ebp - 4], 0x1e
call dword [0x884ea4]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x29c], eax
pop edi
mov dword [esi], 0x808508
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret