Function at 0x4c8f68
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, 0x4d4480
xor eax, eax
push ebp
push 0x4c9613
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5b
mov eax, ebx
mov ecx, 1
mov edx, dword [0x4c8708]
call fcn.0040629c
add esp, 4
push 0x5b
mov eax, 0x4d4484
mov ecx, 1
mov edx, dword [0x4c00a0]
call fcn.0040629c
add esp, 4
mov eax, dword [ebx]
mov edx, 0x4c962c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 4
mov edx, 0x4c9640
call fcn.00404adc
mov eax, dword [ebx]
add eax, 8
mov edx, 0x4c9654
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xc
mov edx, 0x4c9664
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x10
mov edx, 0x4c967c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x14
mov edx, 0x4c968c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x18
mov edx, 0x4c96a0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x1c
mov edx, 0x4c96b8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x20
mov edx, 0x4c96d4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x24
mov edx, 0x4c96e8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x28
mov edx, 0x4c96f8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x2c
mov edx, 0x4c970c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x30
mov edx, 0x4c9720
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x34
mov edx, 0x4c9734
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x38
mov edx, 0x4c9744
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x3c
mov edx, 0x4c9760
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x40
mov edx, 0x4c9770
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x44
mov edx, 0x4c9780
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x48
mov edx, 0x4c9790
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x4c
mov edx, 0x4c97c4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x50
mov edx, 0x4c97e0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x54
mov edx, 0x4c97f4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x58
mov edx, 0x4c9824
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x5c
mov edx, 0x4c9870
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x60
mov edx, 0x4c990c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x64
mov edx, 0x4c9938
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x68
mov edx, 0x4c994c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x6c
mov edx, 0x4c995c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x70
mov edx, 0x4c9988
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x74
mov edx, 0x4c9a04
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x78
mov edx, 0x4c9a18
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x7c
mov edx, 0x4c9a30
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x80
mov edx, 0x4c9a5c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x84
mov edx, 0x4c9acc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x88
mov edx, 0x4c9af8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x8c
mov edx, 0x4c9b40
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x90
mov edx, 0x4c9b74
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x94
mov edx, 0x4c9b88
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x98
mov edx, 0x4c9bcc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x9c
mov edx, 0x4c9be8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xa0
mov edx, 0x4c9c10
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xa4
mov edx, 0x4c9c34
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xa8
mov edx, 0x4c9c54
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xac
mov edx, 0x4c9c94
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xb0
mov edx, 0x4c9cd0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xb4
mov edx, 0x4c9cf8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xb8
mov edx, 0x4c9d18
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xbc
mov edx, 0x4c9d30
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xc0
mov edx, 0x4c9d40
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xc4
mov edx, 0x4c9d5c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xc8
mov edx, 0x4c9d70
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xcc
mov edx, 0x4c9d80
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xd0
mov edx, 0x4c9da8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xd4
mov edx, 0x4c9db8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xd8
mov edx, 0x4c9dcc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xdc
mov edx, 0x4c9ddc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xe0
mov edx, 0x4c9e08
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xe4
mov edx, 0x4c9e18
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xe8
mov edx, 0x4c9e60
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xec
mov edx, 0x4c9e70
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xf0
mov edx, 0x4c9e88
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xf4
mov edx, 0x4c9eb4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xf8
mov edx, 0x4c9efc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xfc
mov edx, 0x4c9fb4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x100
mov edx, 0x4c9fd4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x104
mov edx, 0x4ca018
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x108
mov edx, 0x4ca028
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x10c
mov edx, 0x4ca038
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x110
mov edx, 0x4ca118
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x114
mov edx, 0x4ca12c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x118
mov edx, 0x4ca13c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x11c
mov edx, 0x4ca14c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x120
mov edx, 0x4ca15c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x124
mov edx, 0x4ca184
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x128
mov edx, 0x4ca1ac
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x12c
mov edx, 0x4ca1c0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x130
mov edx, 0x4ca1d4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x134
mov edx, 0x4ca1e8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x138
mov edx, 0x4ca250
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x13c
mov edx, 0x4ca2f4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x140
mov edx, 0x4ca308
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x144
mov edx, 0x4ca358
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x148
mov edx, 0x4ca374
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x14c
mov edx, 0x4ca380
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x150
mov edx, 0x4ca3b8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x154
mov edx, 0x4ca3d0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x158
mov edx, 0x4ca3e0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x15c
mov edx, 0x4ca400
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x160
mov edx, 0x4ca428
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x164
mov edx, 0x4ca4f8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x168
mov edx, 0x4ca510
call fcn.00404adc
mov eax, dword [ebx]
call fcn.004060c0
dec eax
test eax, eax
jb 0x4c95fd
inc eax
mov dword [ebp - 8], eax
xor esi, esi
mov eax, dword [ebx]
mov edx, dword [eax + esi*4]
mov eax, esi
inc eax
lea ecx, [ebp - 4]
call fcn.0049ca94
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
call fcn.00404d58
mov edx, eax
mov eax, dword [0x4d4484]
lea eax, [eax + esi*4]
call fcn.00405784
mov eax, dword [0x4d4484]
mov eax, dword [eax + esi*4]
call fcn.0040541c
mov edx, eax
test edx, edx
jbe 0x4c95f7
mov eax, 1
mov ecx, dword [0x4d4484]
mov ecx, dword [ecx + esi*4]
mov edi, dword [ebp - 4]
movzx edi, byte [edi + eax - 1]
mov di, word [edi*2 + 0x4d21f4]
mov word [ecx + eax*2 - 2], di
inc eax
dec edx
jne 0x4c95d5
inc esi
dec dword [ebp - 8]
jne 0x4c9594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c961a
lea eax, [ebp - 4]
call fcn.00404a88
ret