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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x270
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x477830
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea esi, [ebp - 0x1b4]
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 - 0x3c], esi
lea eax, [ebp - 0x27c]
push 0xc8
push 0xff
mov dword [ebp - 0x28], eax
push eax
call fcn.004e3a90
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.0050dca0
add esp, 0x14
cmp eax, 0x64
jb 0x47091b
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x20], eax
add eax, 4
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ecx
push eax
call fcn.004d91e0
add esp, 4
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov dword [ecx + 0x10], str._.0Lf
movsd xmm0, qword [ebp + 0x1c]
movsd qword [ecx + 0x14], xmm0
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
call fcn.0047a9a0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov esp, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x470c78
mov esi, dword [ebp - 0x3c]
add eax, eax
push eax
call fcn.004dd0b0
add esp, 4
test eax, eax
je 0x470c67
mov dword [ebp - 0x28], eax
jmp 0x470922
mov dword [ebp - 0x20], eax
xor eax, eax
xor esi, esi
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x38]
mov dword [edx], 0xffffffff
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x10], 0
push edx
call fcn.00459430
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x48], 0x5451d4
mov eax, dword [0x5451d4]
cmp eax, 0xffffffff
je 0x47098b
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x150]
mov dword [ecx], eax
lea eax, [ebp - 0x78]
mov dword [eax], ecx
mov dword [ebp - 0x10], 1
push 0x476b90
push eax
push 0x5451d4
call fcn.00458090
add esp, 0xc
mov esi, dword [ebp - 0x24]
mov eax, dword [0x5451d8]
lea edx, [eax - 1]
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0xc]
sub esi, ecx
sar esi, 2
cmp esi, edx
jbe 0x470c44
mov ebx, dword [ecx + eax*4 - 4]
test ebx, ebx
je 0x470c44
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
add eax, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x28]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x53a380]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x84], ebx
mov ecx, ebx
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push edi
call esi
xor eax, eax
cmp dword [ebp - 0x20], 0
jle 0x470ab6
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx], 0x2d
sete cl
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x6c]
xor ebx, ebx
dec ebx
mov dword [ecx], ebx
lea esi, [ebp - 0x78]
mov dword [esi + 8], eax
lea edx, [ebp - 0x48]
mov dword [edx + 8], eax
lea ecx, [ebp - 0x58]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x34]
mov word [eax], bx
lea eax, [ebp - 0x32]
mov word [eax], bx
xorps xmm0, xmm0
movsd qword [esi], xmm0
movsd qword [edx], xmm0
movsd qword [ecx], xmm0
lea edi, [ebp - 0x88]
mov dword [edi], ebx
mov dword [ebp - 0x10], 2
movzx eax, byte [ebp - 0x24]
movzx ebx, byte [ebp + 0x10]
push edi
push ecx
push edx
push esi
lea ecx, [ebp - 0x32]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x24], eax
push eax
push ebx
call fcn.00470d60
add esp, 0x28
lea esi, [ebp - 0x150]
push 0xc8
push 0xff
push esi
call fcn.004e3a90
add esp, 0xc
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x20]
sub eax, edi
jg 0x470ac2
movzx eax, byte [ebp - 0x4d]
test al, al
mov edx, dword [ebp + 0x14]
jns 0x470aa2
mov eax, dword [ebp - 0x54]
movzx ecx, byte [ebp - 0x3d]
test cl, cl
jns 0x470aad
mov ecx, dword [ebp - 0x44]
add eax, edi
add eax, ecx
add eax, 2
jmp 0x470ae3
mov dword [ebp - 0x24], 0
jmp 0x470a01
movzx ecx, byte [ebp - 0x4d]
test cl, cl
jns 0x470acd
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0x3d]
test dl, dl
jns 0x470ad8
mov edx, dword [ebp - 0x44]
lea eax, [edi + eax*2]
add eax, ecx
add eax, edx
inc eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x80], edi
xor ecx, ecx
cmp eax, 0x65
jb 0x470b07
add eax, eax
push eax
call fcn.004dd0b0
mov edx, dword [ebp + 0x14]
add esp, 4
mov ecx, eax
mov esi, eax
test eax, eax
je 0x470c52
lea edi, [ebp - 0x68]
xor eax, eax
dec eax
mov dword [edi], eax
lea edi, [ebp - 0x64]
mov dword [edi], eax
movzx ebx, word [ebp - 0x32]
mov edi, esi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
lea eax, [esi + eax*2]
mov dword [ebp - 0x7c], eax
mov edx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x10], 3
movzx eax, word [ebp - 0x34]
push dword [ebp - 0x80]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push ebx
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x84]
push dword [ebp - 0x7c]
push esi
push edx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x28], edi
push edi
call fcn.00470f40
add esp, 0x3c
movzx eax, word [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x4c], edi
movzx eax, ax
push eax
push dword [ebp + 0x14]
push edx
push esi
push dword [ebp - 0x28]
push ecx
push dword [ebp + 8]
call fcn.00466630
add esp, 0x1c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x470bac
push eax
call fcn.004dd100
add esp, 4
cmp byte [ebp - 0x4d], 0
jns 0x470bbd
push dword [ebp - 0x58]
call fcn.004dfb35
add esp, 4
cmp byte [ebp - 0x3d], 0
jns 0x470bce
push dword [ebp - 0x48]
call fcn.004dfb35
add esp, 4
cmp byte [ebp - 0x6d], 0
jns 0x470bdf
push dword [ebp - 0x78]
call fcn.004dfb35
add esp, 4
mov esi, dword [ebp - 0x38]
cmp esi, 0x545124
je 0x470c0e
xor eax, eax
dec eax
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x470c0e
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x53a380]
mov ecx, esi
call edi
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x470c1e
push eax
call fcn.004dd100
add esp, 4
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x470c2e
push eax
call fcn.004dd100
add esp, 4
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 - 0x10], 1
call fcn.0050dd90
jmp 0x470c85
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x10], 3
call fcn.0050e5d0
jmp 0x470c85
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esi
call fcn.0050e5d0
jmp 0x470c85
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
call fcn.0050e5d0
nop word cs:[eax + eax]
push ebp
sub esp, 0x3c
add ebp, 0xc
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x470ca7
push eax
call fcn.004dd100
add esp, 4
add esp, 0x3c
pop ebp
ret