Function at 0x40c100
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4dccab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x52251c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
push ecx
lea ecx, [edi + 0x1a4]
call fcn.004c27b1
mov edx, dword [0x52251c]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x10]
lea ecx, [edi + 0x1e0]
push eax
mov byte [esp + 0x3c], 1
call fcn.004c27b1
mov ecx, dword [0x52251c]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
lea ecx, [edi + 0xb4]
push edx
mov byte [esp + 0x3c], 2
call fcn.004c27b1
mov eax, dword [0x52251c]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
push ecx
lea ecx, [edi + 0x78]
call fcn.004c27b1
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40c200
lea eax, [esp + 0x28]
push 2
push eax
lea ecx, [esp + 0x14]
call fcn.004bd709
mov eax, dword [eax]
mov esi, 0x51c574
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40c1e5
test cl, cl
je 0x40c1e1
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40c1e5
add eax, 2
add esi, 2
test cl, cl
jne 0x40c1bd
xor eax, eax
jmp 0x40c1ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x28]
sete bl
call fcn.004c5787
test bl, bl
je 0x40c51a
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c219
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.004c58c0
lea ebx, [edi + 0x21c]
push ebp
push ebx
mov dword [edi + 0x5c], 1
call fcn.0041c8e0
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, ebx
push 0
push 0
push 0
push 0
push edx
push eax
push 1
call fcn.004be754
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push 1
push esi
mov ecx, ebx
mov dword [esp + 0x30], esi
call fcn.004be84f
mov ecx, dword [edi + 0x10c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push ecx
call ebp
push eax
push esi
mov ecx, ebx
call fcn.004bf25e
mov edx, dword [edi + 0x238]
push 0
push esi
push 0x1013
push edx
call ebp
mov eax, dword [edi + 0x238]
push 0
push 0
push 0x1004
push eax
call ebp
cmp esi, eax
lea eax, [esi - 1]
jge 0x40c2a9
mov eax, esi
push 3
push 3
push eax
mov ecx, ebx
call fcn.004be824
push 0x24
call fcn.004c5dbe
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x3c], 4
je 0x40c2d7
mov ecx, eax
call fcn.0040b710
mov ebx, eax
jmp 0x40c2d9
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
push ecx
lea ecx, [ebx + 8]
call fcn.004c58c0
lea edx, [esp + 0x14]
lea ecx, [ebx + 4]
push edx
call fcn.004c58c0
lea eax, [esp + 0x20]
lea ecx, [ebx + 0xc]
push eax
call fcn.004c58c0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebx + 0x10]
call fcn.004c58c0
mov edx, dword [edi + 0x148]
push 0
push 0
push 0xf0
push edx
call ebp
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x184]
push 0
push 0
push 0xf0
push eax
call ebp
mov dword [ebx + 0x18], eax
mov ecx, dword [edi + 0x10c]
push 0
push 0
push 0xf0
push ecx
call ebp
lea ebp, [edi + 0x64]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], 0
mov edx, dword [ebp + 8]
cmp esi, edx
mov dword [esp + 0x30], edx
jl 0x40c4b2
lea eax, [esi + 1]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40c399
mov eax, dword [ebp + 4]
test eax, eax
je 0x40c38c
push eax
call fcn.004c5de7
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x40c4f9
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x40c3db
lea edi, [eax*4]
push edi
call fcn.004c5dbe
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x28]
lea eax, [esi + 1]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x40c4f9
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x18], eax
jg 0x40c403
mov eax, dword [esp + 0x18]
cmp eax, edx
jle 0x40c3f8
sub eax, edx
push eax
lea eax, [ecx + edx*4]
push eax
call fcn.00482100
lea eax, [esi + 1]
mov dword [ebp + 8], eax
jmp 0x40c4f9
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40c42d
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x40c421
mov eax, 4
jmp 0x40c42d
cmp eax, 0x400
jle 0x40c42d
mov eax, 0x400
mov ecx, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x18], eax
jl 0x40c442
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
lea edx, [ecx*4]
push edx
call fcn.004c5dbe
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x30], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.00482100
mov eax, dword [ebp + 4]
push eax
call fcn.004c5de7
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
mov dword [ebp + 8], esi
mov esi, dword [esp + 0x28]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 0xc], edx
jmp 0x40c4f9
inc edx
push 0xffffffffffffffff
push edx
mov ecx, ebp
call fcn.0040d4c0
mov eax, dword [ebp + 4]
mov edx, esi
shl edx, 0x1e
sub edx, esi
lea ecx, [esi*4]
add edx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
add ecx, eax
lea eax, [eax + esi*4 + 4]
shl edx, 2
push edx
push ecx
push eax
call fcn.004ad9f0
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 4]
add esp, 0xc
add eax, ecx
mov dword [eax], 0
xor eax, eax
shl esi, 2
mov ecx, dword [ebp + 4]
add esi, 4
mov edx, eax
dec eax
mov dword [esi + ecx - 4], ebx
test edx, edx
jne 0x40c4fe
mov ecx, edi
mov dword [edi + 0x5c], edx
call fcn.0040d2b0
pop ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.004c5787
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004c5787
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.004c5787
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c5787
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30