Function at 0x419810
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov edx, dword [ebp + 0x10]
lea eax, [esi + 0x50]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x41f4f0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x29]
mov dword [eax + 3], 0
mov dword [eax - 1], 0x25
mov ecx, dword [edx + 4]
bt ecx, 0xb
jb 0x4199da
mov edx, dword [ebp + 0x1c]
bt ecx, 9
jb 0x4199fd
mov bl, byte [edx]
test bl, bl
je 0x419883
inc edx
mov byte [eax], bl
inc eax
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x419879
mov edx, ecx
and edx, 0x4a
cmp edx, 8
je 0x4199c1
cmp edx, 0x40
je 0x419a6d
mov dword [esi + 0x58], 0xffffffff
mov cl, 0x64
mov dword [esi + 4], esp
mov byte [eax], cl
xor ecx, ecx
dec ecx
lea ebx, [esi + 0x18]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov byte [ebx + 0xc], 0xff
push eax
sub esp, 0x18
mov edi, esp
lea eax, [edi + 8]
mov dword [esi + 0x58], ecx
push eax
call fcn.00462320
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 0xd
lea eax, [esi + 0x28]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x18], eax
call fcn.00421650
add esp, 0x1c
mov esp, dword [esi + 4]
lea edi, [esi + eax]
add edi, 0x18
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 4]
mov edx, ecx
and dl, 0xb0
mov dword [esi + 4], edi
cmp dl, 0x20
je 0x41991d
mov edx, ebx
and ecx, 0xb0
cmp ecx, 0x10
je 0x419a06
mov ebx, edx
mov edi, edx
mov dword [esi + 0x14], edi
lea edi, [esi + 0x30]
xor eax, eax
dec eax
mov dword [edi + 0x13], eax
mov dword [edi + 0xf], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
lea ecx, [esi + 0x10]
mov dword [ecx], eax
lea ecx, [esi + 0xc]
mov dword [ecx], eax
lea eax, [esi + 8]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00461c00
mov dword [esi + 0x58], 0
lea eax, [esi + 8]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
push edi
push dword [esi + 4]
push dword [esi + 0x14]
push ebx
call fcn.0041ab20
add esp, 0x1c
mov ebx, dword [esi + 8]
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
mov edi, dword [ebp + 8]
mov dl, byte [ebp + 0x14]
test eax, eax
je 0x419a4b
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x58], 0xffffffff
movsx edx, dl
push edx
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [esi + 0x30]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0045c0d0
add esp, 0x1c
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
bt ecx, 0xe
setae cl
shl cl, 5
or cl, 0x58
mov dword [esi + 0x58], 0xffffffff
jmp 0x4198a3
mov edx, ecx
and edx, 0x4a
cmp edx, 8
je 0x419865
cmp edx, 0x40
je 0x419865
lea eax, [esi + 0x2a]
mov byte [eax - 1], 0x2b
jmp 0x419865
mov byte [eax], 0x23
inc eax
jmp 0x419872
lea ecx, [esi + 0x19]
mov edi, ecx
movzx ecx, byte [ecx - 1]
cmp ecx, 0x2b
je 0x419a44
cmp ecx, 0x2d
mov ebx, edx
je 0x41991d
cmp eax, 2
jl 0x419919
cmp cl, 0x30
jne 0x419919
movzx eax, byte [esi + 0x19]
or eax, 0x20
cmp eax, 0x78
jne 0x419919
lea edi, [esi + 0x1a]
mov ebx, edx
jmp 0x41991d
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov dword [esi + 0x58], 0xffffffff
call dword [section..00cfg]
mov ecx, ebx
call dword [esi + 4]
mov dl, byte [ebp + 0x14]
jmp 0x419986
mov cl, 0x6f
jmp 0x4198a3