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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b0
movsd xmm1, qword [ebp + 0x1c]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x436890
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x1bc]
mov dword [eax + 0x60], edx
pcmpeqd xmm0, xmm0
movdqu xmmword [eax + 0x50], xmm0
movdqu xmmword [eax + 0x40], xmm0
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xf8], edx
movdqu xmmword [ebp - 0x108], xmm0
movdqu xmmword [ebp - 0x118], xmm0
movdqu xmmword [ebp - 0x128], xmm0
movdqu xmmword [ebp - 0x138], xmm0
movdqu xmmword [ebp - 0x148], xmm0
movdqu xmmword [ebp - 0x158], xmm0
sub esp, 0x14
movsd qword [esp + 0xc], xmm1
mov dword [esp], eax
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], 0x64
call fcn.00419e10
add esp, 0x14
cmp eax, 0x64
jb 0x4908ba
mov dword [ebp - 0x24], esp
push eax
sub esp, 0x18
mov esi, esp
lea ecx, [esi + 4]
call fcn.00459850
lea eax, [ebp - 0x2c]
mov dword [esi], eax
mov dword [esi + 0x10], str._.0Lf
movq xmm0, qword [ebp + 0x1c]
movq qword [esi + 0x14], xmm0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], eax
call fcn.00496570
add esp, 0x1c
mov edi, eax
mov esp, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x490bc7
mov esi, dword [ebp - 0x2c]
push edi
call fcn.0045d1d0
add esp, 4
test eax, eax
je 0x490bb6
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
jmp 0x4908ce
xor edx, edx
jmp 0x490943
mov edi, eax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 0
xor esi, esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x48], esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x28], eax
cmp eax, 0x4b9360
jne 0x490bd4
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x28]
push 0x4b9a0c
call fcn.0045cd80
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
lea ebx, [edi + edx]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], eax
mov esi, dword [ecx + 0x18]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x4b1788]
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x4c]
push dword [ebp - 0x40]
push ebx
push edi
call esi
mov eax, dword [ebp - 0x24]
xor ecx, ecx
test eax, eax
jle 0x4908b3
mov edx, dword [ebp - 0x2c]
cmp byte [edx], 0x2d
sete dl
mov bl, 0xff
lea edi, [ebp - 0x90]
mov dword [edi + 8], ecx
lea esi, [ebp - 0x6c]
mov dword [esi + 8], ecx
lea eax, [ebp - 0x60]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x1e]
mov byte [ecx], bl
lea ecx, [ebp - 0x1d]
mov byte [ecx], bl
lea ebx, [ebp - 0x54]
xor ecx, ecx
dec ecx
mov dword [ebx], ecx
pxor xmm0, xmm0
movq qword [edi], xmm0
movq qword [esi], xmm0
movq qword [eax], xmm0
lea ebx, [ebp - 0x84]
mov dword [ebx], ecx
mov dword [ebp - 0x10], 2
movzx ecx, byte [ebp + 0x10]
movzx edx, dl
mov dword [ebp - 0x7c], edx
push ebx
push eax
push esi
push edi
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00490cf0
add esp, 0x20
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0xa4], xmm0
movdqu xmmword [ebp - 0xb4], xmm0
movdqu xmmword [ebp - 0xc4], xmm0
movdqu xmmword [ebp - 0xd4], xmm0
movdqu xmmword [ebp - 0xe4], xmm0
movdqu xmmword [ebp - 0xf4], xmm0
mov dword [ebp - 0x94], 0xffffffff
movzx ecx, byte [ebp - 0x55]
movzx eax, byte [ebp - 0x61]
test cl, cl
mov edi, dword [ebp - 0x24]
jns 0x490a01
mov ecx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x84]
test al, al
jns 0x490a0e
mov eax, dword [ebp - 0x68]
mov edx, edi
sub edx, esi
jg 0x490a1b
add ecx, esi
add ecx, 2
jmp 0x490a21
lea edx, [esi + edx*2]
add ecx, edx
inc ecx
add ecx, eax
cmp ecx, 0x65
mov dword [ebp - 0x78], esi
jb 0x490a42
push ecx
call fcn.0045d1d0
add esp, 4
mov ecx, eax
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x490a4d
jmp 0x490ba1
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x3c], eax
xor ecx, ecx
lea edx, [ebp - 0x80]
xor eax, eax
dec eax
mov dword [edx], eax
lea esi, [ebp - 0x50]
mov dword [esi], eax
movsx ebx, byte [ebp - 0x1d]
movsx eax, byte [ebp - 0x1e]
mov dword [ebp - 0x70], eax
mov esi, dword [ebp - 0x40]
add edi, esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x10], 3
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x78]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
push dword [ebp - 0x70]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x4c]
push edi
push esi
push dword [ebp - 0x74]
lea eax, [ebp - 0x50]
push eax
call fcn.00490e40
add esp, 0x34
mov al, byte [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x80]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x44], edi
movsx eax, al
push eax
push dword [ebp + 0x14]
push edx
push esi
push dword [ebp - 0x3c]
push ecx
push dword [ebp + 8]
call fcn.004524b0
add esp, 0x1c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x490af5
push 0
push eax
push 0x4a82b0
call fcn.00404790
add esp, 0xc
cmp byte [ebp - 0x55], 0
jns 0x490b06
push dword [ebp - 0x60]
call fcn.0045e41e
add esp, 4
cmp byte [ebp - 0x61], 0
jns 0x490b17
push dword [ebp - 0x6c]
call fcn.0045e41e
add esp, 4
cmp byte [ebp - 0x85], 0
jns 0x490b2e
push dword [ebp - 0x90]
call fcn.0045e41e
add esp, 4
mov esi, dword [ebp - 0x28]
cmp esi, 0x4b9360
je 0x490b5d
xor eax, eax
dec eax
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x490b5d
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x4b1788]
mov ecx, esi
call edi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x490b74
push 0
push eax
push 0x4a82b0
call fcn.00404790
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x490b8b
push 0
push eax
push 0x4a82b0
call fcn.00404790
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], 3
call fcn.00495ca0
jmp 0x490be4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], esi
call fcn.00495ca0
jmp 0x490be4
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
call fcn.00495ca0
lock inc dword [eax + 4]
mov dword [ebp - 0x10], 1
jmp 0x4908e8
nop word cs:[eax + eax]
push ebp
sub esp, 0x34
add ebp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x490c0e
push 0
push eax
push 0x4a82b0
call fcn.00404790
add esp, 0xc
add esp, 0x34
pop ebp
ret