Function at 0x406d90
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de0bf
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00404230
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [edi + 4]
lea esi, [ebx + 4]
sub eax, 0x10
mov dword [ebp - 4], 0
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 8]
lea esi, [ebx + 8]
sub eax, 0x10
mov byte [ebp - 4], 1
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0xc]
lea esi, [ebx + 0xc]
sub eax, 0x10
mov byte [ebp - 4], 2
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x10]
lea esi, [ebx + 0x10]
sub eax, 0x10
mov byte [ebp - 4], 3
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x14]
lea esi, [ebx + 0x14]
sub eax, 0x10
mov byte [ebp - 4], 4
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x18]
lea esi, [ebx + 0x18]
sub eax, 0x10
mov byte [ebp - 4], 5
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x1c]
lea esi, [ebx + 0x1c]
sub eax, 0x10
mov byte [ebp - 4], 6
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
lea esi, [ebx + 0x20]
mov byte [ebp - 4], 7
mov dword [ebp + 8], esi
mov eax, dword [edi + 0x20]
sub eax, 0x10
push eax
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x24]
lea esi, [ebx + 0x24]
sub eax, 0x10
mov byte [ebp - 4], 8
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x28]
lea esi, [ebx + 0x28]
sub eax, 0x10
mov byte [ebp - 4], 9
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x2c]
lea esi, [ebx + 0x2c]
sub eax, 0x10
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x30]
lea esi, [ebx + 0x34]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x34]
sub eax, 0x10
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x38]
lea esi, [ebx + 0x38]
sub eax, 0x10
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x3c]
lea esi, [ebx + 0x3c]
sub eax, 0x10
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x40]
lea esi, [ebx + 0x40]
sub eax, 0x10
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add esp, 0x40
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xf
mov eax, dword [edi + 0x44]
lea esi, [ebx + 0x44]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x48]
lea esi, [ebx + 0x58]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [edi + 0x58]
sub eax, 0x10
mov byte [ebp - 4], 0x10
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x5c]
lea esi, [ebx + 0x5c]
sub eax, 0x10
mov byte [ebp - 4], 0x11
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x60]
lea esi, [ebx + 0x6c]
mov dword [ebx + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, dword [edi + 0x6c]
sub eax, 0x10
mov byte [ebp - 4], 0x12
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x70]
lea esi, [ebx + 0x70]
sub eax, 0x10
mov byte [ebp - 4], 0x13
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x74]
lea esi, [ebx + 0x74]
sub eax, 0x10
mov byte [ebp - 4], 0x14
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x78]
lea esi, [ebx + 0x78]
sub eax, 0x10
mov byte [ebp - 4], 0x15
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x7c]
lea esi, [ebx + 0x7c]
sub eax, 0x10
mov byte [ebp - 4], 0x16
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x80]
lea esi, [ebx + 0x80]
sub eax, 0x10
mov byte [ebp - 4], 0x17
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x84]
lea esi, [ebx + 0x84]
sub eax, 0x10
mov byte [ebp - 4], 0x18
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x88]
lea esi, [ebx + 0x88]
sub eax, 0x10
mov byte [ebp - 4], 0x19
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x8c]
lea esi, [ebx + 0x8c]
sub eax, 0x10
mov byte [ebp - 4], 0x1a
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x90]
lea esi, [ebx + 0x90]
sub eax, 0x10
mov byte [ebp - 4], 0x1b
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x94]
lea esi, [ebx + 0x94]
sub eax, 0x10
mov byte [ebp - 4], 0x1c
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x98]
lea esi, [ebx + 0x98]
sub eax, 0x10
mov byte [ebp - 4], 0x1d
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x9c]
lea esi, [ebx + 0x9c]
sub eax, 0x10
mov byte [ebp - 4], 0x1e
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
add esp, 0x40
mov dword [esi], eax
mov eax, dword [edi + 0xa0]
lea esi, [ebx + 0xa0]
sub eax, 0x10
mov byte [ebp - 4], 0x1f
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0xa4]
lea esi, [ebx + 0xa4]
sub eax, 0x10
mov byte [ebp - 4], 0x20
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0xa8]
lea esi, [ebx + 0xa8]
sub eax, 0x10
mov byte [ebp - 4], 0x21
push eax
mov dword [ebp + 8], esi
call fcn.00404230
add eax, 0x10
add esp, 0xc
mov dword [esi], eax
mov eax, dword [edi + 0xac]
lea ecx, [ebx + 0xb0]
mov dword [ebx + 0xac], eax
lea eax, [edi + 0xb0]
push eax
mov byte [ebp - 4], 0x22
call fcn.00406770
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4