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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x288
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x4368b0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea esi, [ebp - 0x104]
mov dword [esi + 0x60], edx
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x50], xmm0
movdqu xmmword [esi + 0x40], xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x294]
push 0xc8
push 0xff
mov dword [ebp - 0x3c], eax
push eax
call fcn.004628e0
sub esp, 8
movsd xmm0, qword [ebp + 0x1c]
movsd qword [esp + 0xc], xmm0
mov dword [esp], esi
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], 0x64
call fcn.00419e10
add esp, 0x14
cmp eax, 0x64
jb 0x491652
mov dword [ebp - 0x20], esp
push eax
sub esp, 0x18
mov esi, esp
lea ecx, [esi + 4]
call fcn.00459850
lea eax, [ebp - 0x30]
mov dword [esi], eax
mov dword [esi + 0x10], str._.0Lf
movsd xmm0, qword [ebp + 0x1c]
movsd qword [esi + 0x14], xmm0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], eax
call fcn.00496570
add esp, 0x1c
mov edi, eax
mov esp, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x49195c
mov esi, dword [ebp - 0x30]
lea eax, [edi + edi]
push eax
call fcn.0045d1d0
add esp, 4
test eax, eax
je 0x49194b
mov dword [ebp - 0x3c], eax
jmp 0x491658
mov dword [ebp - 0x2c], 0
jmp 0x4916d9
mov edi, eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], eax
cmp eax, 0x4b9360
jne 0x491969
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x44]
push 0x4b9410
call fcn.0045cd80
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
lea ebx, [edi + edx]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov esi, dword [eax + 0x28]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x4b1788]
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x3c]
push ebx
push edi
call esi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
test eax, eax
jle 0x491646
mov edx, dword [ebp - 0x30]
cmp byte [edx], 0x2d
sete al
mov dword [ebp - 0x2c], eax
lea esi, [ebp - 0x5c]
xor edx, edx
dec edx
mov dword [esi], edx
lea edi, [ebp - 0xa0]
mov dword [edi + 8], ecx
lea esi, [ebp - 0x74]
mov dword [esi + 8], ecx
lea eax, [ebp - 0x68]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x26]
mov word [ecx], dx
lea ecx, [ebp - 0x24]
mov word [ecx], dx
xorps xmm0, xmm0
movsd qword [edi], xmm0
movsd qword [esi], xmm0
movsd qword [eax], xmm0
lea ebx, [ebp - 0x94]
mov dword [ebx], edx
mov dword [ebp - 0x10], 2
movzx ecx, byte [ebp + 0x10]
movzx edx, byte [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
push ebx
push eax
push esi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00491a80
add esp, 0x20
lea edi, [ebp - 0x1cc]
push 0xc8
push 0xff
push edi
call fcn.004628e0
add esp, 0xc
movzx ebx, byte [ebp - 0x5d]
movzx eax, byte [ebp - 0x69]
mov edx, eax
mov ecx, ebx
mov dword [ebp - 0x78], ebx
test bl, bl
mov esi, dword [ebp - 0x20]
jns 0x491779
mov ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x94]
mov byte [ebp - 0x21], dl
test dl, dl
jns 0x491789
mov eax, dword [ebp - 0x70]
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x8c], ebx
jg 0x49179c
add ecx, ebx
add ecx, 2
jmp 0x4917a2
lea edx, [ebx + edx*2]
add ecx, edx
inc ecx
add ecx, eax
xor ebx, ebx
cmp ecx, 0x65
jb 0x4917c2
add ecx, ecx
push ecx
call fcn.0045d1d0
add esp, 4
mov ebx, eax
mov edi, eax
test eax, eax
je 0x491936
lea edx, [ebp - 0x90]
xor eax, eax
dec eax
mov dword [edx], eax
lea ecx, [ebp - 0x58]
mov dword [ecx], eax
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x80], eax
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
lea eax, [esi + eax*2]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x10], 3
movzx eax, word [ebp - 0x26]
mov dword [ebp - 0x7c], edi
mov ecx, edi
push dword [ebp - 0x8c]
lea ebx, [ebp - 0x68]
push ebx
lea ebx, [ebp - 0x74]
push ebx
lea ebx, [ebp - 0xa0]
push ebx
push dword [ebp - 0x80]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x40]
push dword [ebp - 0x84]
push esi
push dword [ebp - 0x88]
lea eax, [ebp - 0x58]
push eax
call fcn.00491be0
add esp, 0x34
mov ecx, dword [ebp + 8]
movzx eax, word [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x48], ebx
movzx eax, ax
push eax
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp - 0x7c]
call fcn.0048c670
add esp, 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49188a
push 0
push eax
push 0x4a82b0
call fcn.00404790
add esp, 0xc
cmp byte [ebp - 0x78], 0
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x4c]
jns 0x4918a1
push dword [ebp - 0x68]
call fcn.0045e41e
add esp, 4
cmp byte [ebp - 0x21], 0
jns 0x4918b2
push dword [ebp - 0x74]
call fcn.0045e41e
add esp, 4
cmp byte [ebp - 0x95], 0
jns 0x4918c9
push dword [ebp - 0xa0]
call fcn.0045e41e
add esp, 4
cmp ebx, 0x4b9360
je 0x4918f5
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
test eax, eax
jne 0x4918f5
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x4b1788]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x49190c
push 0
push eax
push 0x4a82b0
call fcn.00404790
add esp, 0xc
test edi, edi
je 0x491920
push 0
push edi
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 - 0x48], 0
mov dword [ebp - 0x10], 3
call fcn.00495ca0
jmp 0x49197c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], esi
call fcn.00495ca0
jmp 0x49197c
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
call fcn.00495ca0
mov eax, dword [ebp - 0x4c]
lock inc dword [eax + 4]
mov dword [ebp - 0x10], 1
jmp 0x491678
nop dword [eax]
push ebp
sub esp, 0x34
add ebp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x49199e
push 0
push eax
push 0x4a82b0
call fcn.00404790
add esp, 0xc
add esp, 0x34
pop ebp
ret