Function at 0x4c8c6c
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 0x4c9317
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5b
mov eax, ebx
mov ecx, 1
mov edx, dword [0x4c840c]
call fcn.0040629c
add esp, 4
push 0x5b
mov eax, 0x4d4484
mov ecx, 1
mov edx, dword [0x4bfda8]
call fcn.0040629c
add esp, 4
mov eax, dword [ebx]
mov edx, 0x4c9330
call fcn.00404adc
mov eax, dword [ebx]
add eax, 4
mov edx, 0x4c9344
call fcn.00404adc
mov eax, dword [ebx]
add eax, 8
mov edx, 0x4c9358
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xc
mov edx, 0x4c9368
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x10
mov edx, 0x4c9380
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x14
mov edx, 0x4c9390
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x18
mov edx, 0x4c93a4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x1c
mov edx, 0x4c93bc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x20
mov edx, 0x4c93d8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x24
mov edx, 0x4c93ec
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x28
mov edx, 0x4c93fc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x2c
mov edx, 0x4c9410
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x30
mov edx, 0x4c9424
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x34
mov edx, 0x4c9438
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x38
mov edx, 0x4c9448
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x3c
mov edx, 0x4c9464
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x40
mov edx, 0x4c9474
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x44
mov edx, 0x4c9484
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x48
mov edx, 0x4c9494
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x4c
mov edx, 0x4c94c8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x50
mov edx, 0x4c94e4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x54
mov edx, 0x4c94f8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x58
mov edx, 0x4c9528
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x5c
mov edx, 0x4c9574
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x60
mov edx, 0x4c9610
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x64
mov edx, 0x4c963c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x68
mov edx, 0x4c9650
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x6c
mov edx, 0x4c9660
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x70
mov edx, 0x4c968c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x74
mov edx, 0x4c9708
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x78
mov edx, 0x4c971c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x7c
mov edx, 0x4c9734
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x80
mov edx, 0x4c9760
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x84
mov edx, 0x4c97d0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x88
mov edx, 0x4c97fc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x8c
mov edx, 0x4c9844
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x90
mov edx, 0x4c9878
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x94
mov edx, 0x4c988c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x98
mov edx, 0x4c98d0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x9c
mov edx, 0x4c98ec
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xa0
mov edx, 0x4c9914
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xa4
mov edx, 0x4c9938
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xa8
mov edx, 0x4c9958
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xac
mov edx, 0x4c9998
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xb0
mov edx, 0x4c99d4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xb4
mov edx, 0x4c99fc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xb8
mov edx, 0x4c9a1c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xbc
mov edx, 0x4c9a34
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xc0
mov edx, 0x4c9a44
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xc4
mov edx, 0x4c9a60
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xc8
mov edx, 0x4c9a74
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xcc
mov edx, 0x4c9a84
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xd0
mov edx, 0x4c9aac
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xd4
mov edx, 0x4c9abc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xd8
mov edx, 0x4c9ad0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xdc
mov edx, 0x4c9ae0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xe0
mov edx, 0x4c9b0c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xe4
mov edx, 0x4c9b1c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xe8
mov edx, 0x4c9b64
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xec
mov edx, 0x4c9b74
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xf0
mov edx, 0x4c9b8c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xf4
mov edx, 0x4c9bb8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xf8
mov edx, 0x4c9c00
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0xfc
mov edx, 0x4c9cb8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x100
mov edx, 0x4c9cd8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x104
mov edx, 0x4c9d1c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x108
mov edx, 0x4c9d2c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x10c
mov edx, 0x4c9d3c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x110
mov edx, 0x4c9e1c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x114
mov edx, 0x4c9e30
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x118
mov edx, 0x4c9e40
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x11c
mov edx, 0x4c9e50
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x120
mov edx, 0x4c9e60
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x124
mov edx, 0x4c9e88
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x128
mov edx, 0x4c9eb0
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x12c
mov edx, 0x4c9ec4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x130
mov edx, 0x4c9ed8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x134
mov edx, 0x4c9eec
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x138
mov edx, 0x4c9f54
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x13c
mov edx, 0x4c9ff8
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x140
mov edx, 0x4ca00c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x144
mov edx, 0x4ca05c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x148
mov edx, 0x4ca078
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x14c
mov edx, 0x4ca084
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x150
mov edx, 0x4ca0bc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x154
mov edx, 0x4ca0d4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x158
mov edx, 0x4ca0e4
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x15c
mov edx, 0x4ca104
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x160
mov edx, 0x4ca12c
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x164
mov edx, 0x4ca1fc
call fcn.00404adc
mov eax, dword [ebx]
add eax, 0x168
mov edx, 0x4ca214
call fcn.00404adc
mov eax, dword [ebx]
call fcn.004060c0
dec eax
test eax, eax
jb 0x4c9301
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.0049cacc
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 0x4c92fb
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 0x4c92d9
inc esi
dec dword [ebp - 8]
jne 0x4c9298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c931e
lea eax, [ebp - 4]
call fcn.00404a88
ret