Function at 0x10040f80
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], 0x1000c360
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea esi, [ebp - 0xec]
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 - 0x24], eax
push eax
call fcn.100129b0
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.10001000
add esp, 0x14
cmp eax, 0x64
jb 0x100410ab
mov dword [ebp - 0x24], esp
push eax
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x20], eax
add eax, 4
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], ecx
push eax
call fcn.1000cd30
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 - 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.10045ae0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov esp, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100413bb
mov esi, dword [ebp - 0x3c]
add eax, eax
push eax
call fcn.10010759
add esp, 4
test eax, eax
je 0x100413aa
mov dword [ebp - 0x24], eax
jmp 0x100410b2
mov dword [ebp - 0x34], 0
jmp 0x10041138
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 - 0x64], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0
push edx
call fcn.1000d690
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x38]
push 0x100594cc
call fcn.1000d6d0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x3c]
lea ebx, [edi + edx]
mov ecx, dword [eax]
mov dword [ebp - 0x6c], eax
mov esi, dword [ecx + 0x28]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
mov dword [ebp - 0x20], edx
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x6c]
push dword [ebp - 0x24]
push ebx
push edi
call esi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
test eax, eax
jle 0x1004109f
mov edx, dword [ebp - 0x3c]
cmp byte [edx], 0x2d
sete al
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x78]
xor ebx, ebx
dec ebx
mov dword [eax], ebx
lea edi, [ebp - 0x88]
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
lea esi, [ebp - 0x58]
mov dword [esi + 4], ecx
mov dword [esi], ecx
mov dword [esi + 8], ecx
lea edx, [ebp - 0x4c]
mov dword [edx + 4], ecx
mov dword [edx], ecx
mov dword [edx + 8], ecx
lea eax, [ebp - 0x30]
mov word [eax], bx
lea eax, [ebp - 0x2e]
mov word [eax], bx
lea ecx, [ebp - 0x40]
mov dword [ecx], ebx
mov dword [ebp - 0x10], 2
movzx eax, byte [ebp - 0x34]
movzx ebx, byte [ebp + 0x10]
push ecx
push edx
push esi
push edi
lea ecx, [ebp - 0x2e]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x34], eax
push eax
push ebx
call fcn.100414b0
add esp, 0x28
lea edi, [ebp - 0x1b4]
push 0xc8
push 0xff
push edi
call fcn.100129b0
add esp, 0xc
mov ebx, dword [ebp - 0x20]
sub ebx, dword [ebp - 0x40]
jg 0x1004120a
cmp byte [ebp - 0x41], 0
js 0x100411f6
lea ecx, [ebp - 0x4c]
call fcn.1000f180
mov esi, eax
cmp byte [ebp - 0x4d], 0
js 0x100411fb
lea ecx, [ebp - 0x58]
call fcn.1000f180
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x40]
add esi, eax
mov dword [ebp - 0x60], ecx
add esi, ecx
add esi, 2
jmp 0x1004123c
mov esi, dword [ebp - 0x48]
jmp 0x100411d6
mov eax, dword [ebp - 0x54]
jmp 0x100411e4
mov eax, dword [ebp - 0x54]
jmp 0x1004122a
mov esi, dword [ebp - 0x48]
jmp 0x1004121a
cmp byte [ebp - 0x41], 0
js 0x10041205
lea ecx, [ebp - 0x4c]
call fcn.1000f180
mov esi, eax
add ebx, ebx
cmp byte [ebp - 0x4d], 0
js 0x10041200
lea ecx, [ebp - 0x58]
call fcn.1000f180
mov edx, dword [ebp + 0x14]
add esi, eax
mov eax, dword [ebp - 0x40]
or ebx, 1
mov dword [ebp - 0x60], eax
add esi, eax
add esi, ebx
xor ecx, ecx
cmp esi, 0x65
jb 0x1004125d
add esi, esi
push esi
call fcn.10010759
mov edx, dword [ebp + 0x14]
add esp, 4
mov ecx, eax
mov edi, eax
test eax, eax
je 0x10041395
lea esi, [ebp - 0x74]
xor eax, eax
dec eax
mov dword [esi], eax
lea esi, [ebp - 0x70]
mov dword [esi], eax
movzx ebx, word [ebp - 0x2e]
mov esi, edi
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
lea eax, [edi + eax*2]
mov dword [ebp - 0x7c], eax
mov edx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x10], 3
movzx eax, word [ebp - 0x30]
push dword [ebp - 0x60]
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push ebx
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x6c]
push dword [ebp - 0x7c]
push edi
push edx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x24], esi
push esi
call fcn.10041610
add esp, 0x3c
movzx eax, word [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x5c], edi
movzx eax, ax
push eax
push dword [ebp + 0x14]
push edx
push esi
push dword [ebp - 0x24]
push ecx
push dword [ebp + 8]
call fcn.1003a370
add esp, 0x1c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10041302
push eax
call fcn.1000f3b0
add esp, 4
cmp byte [ebp - 0x41], 0
jns 0x10041313
push dword [ebp - 0x4c]
call fcn.1000f3cb
add esp, 4
cmp byte [ebp - 0x4d], 0
jns 0x10041324
push dword [ebp - 0x58]
call fcn.1000f3cb
add esp, 4
cmp byte [ebp - 0x7d], 0
jns 0x10041338
push dword [ebp - 0x88]
call fcn.1000f3cb
add esp, 4
mov esi, dword [ebp - 0x38]
xor eax, eax
dec eax
lock xadd dword [esi + 4], eax
test eax, eax
jne 0x1004135f
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x1004136f
push eax
call fcn.1000f3b0
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x1004137f
push eax
call fcn.1000f3b0
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 - 0x5c], 0
mov dword [ebp - 0x10], 3
call fcn.10045130
jmp 0x100413c8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esi
call fcn.10045130
jmp 0x100413c8
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
call fcn.10045130
nop dword [eax + eax]
push ebp
sub esp, 0x3c
add ebp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x100413e7
push eax
call fcn.1000f3b0
add esp, 4
add esp, 0x3c
pop ebp
ret