Function at 0x4135a0
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x290
mov esi, esp
mov dword [esi + 0x278], ebp
xor edx, edx
lea eax, [esi + 0x280]
lea edi, [esi + 0x80]
pcmpeqd xmm0, xmm0
dec edx
mov dword [eax - 4], esp
mov dword [eax + 8], edx
mov dword [eax + 4], 0x41d2f0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [esi + 0x1b0]
mov dword [edi + 0x60], edx
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov dword [esi + 0x18], edi
push 0xc8
push 0xff
mov dword [esi + 0x20], eax
push eax
call fcn.005076c0
sub esp, 8
movsd xmm0, qword [ebp + 0x1c]
mov ebx, 0x64
mov dword [esp], edi
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], ebx
movsd qword [esp + 0xc], xmm0
call fcn.00405010
add esp, 0x14
cmp eax, ebx
jb 0x4136cb
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x288], eax
lea eax, [esi + 0x78]
push eax
call fcn.00409590
add esp, 4
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
xor edx, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
sub esp, 0x18
movsd xmm0, qword [ebp + 0x1c]
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], str._.0Lf
mov dword [esp], eax
movsd qword [esp + 0x10], xmm0
call fcn.0041fac7
add esp, 0x18
mov dword [esi], eax
mov edi, dword [esi + 0x18]
test edi, edi
je 0x413981
mov eax, dword [esi]
add eax, eax
push eax
call fcn.0051abd0
add esp, 4
test eax, eax
je 0x41398e
mov dword [esi + 0x20], eax
jmp 0x4136d1
mov dword [esi], eax
xor eax, eax
xor edi, edi
mov ecx, dword [ebp + 0x14]
lea edx, [esi + 0x14]
mov dword [esi + 0x48], eax
mov dword [esi + 8], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x288], 0
mov dword [edx], 0xffffffff
push edx
call fcn.004066aa
mov dword [esi + 0x288], 1
lea ecx, [esi + 0x14]
push 0x586258
call fcn.0040a130
mov edx, dword [esi]
mov dword [esi], edx
mov ecx, eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi]
mov edi, dword [ecx]
lea edx, [eax + edx]
push dword [esi + 0x20]
push edx
push eax
mov dword [esi + 0x74], ecx
call dword [edi + 0x28]
mov eax, dword [esi]
xor ecx, ecx
test eax, eax
je 0x413741
mov edx, dword [esi + 0x18]
cmp byte [edx], 0x2d
sete al
mov dword [esi + 4], eax
jmp 0x413748
mov dword [esi + 4], 0
lea ebx, [esi + 0x60]
lea edi, [esi + 0x38]
lea edx, [esi + 0x28]
mov eax, 0xffffffff
mov dword [esi + 0x288], 2
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
mov dword [edx], ecx
mov dword [edx + 8], ecx
lea ecx, [esi + 0x5c]
mov dword [ecx], eax
lea ecx, [esi + 0x12]
mov word [ecx], ax
lea ecx, [esi + 0x10]
mov word [ecx], ax
lea ecx, [esi + 0x58]
mov dword [ecx], eax
movzx ecx, byte [ebp + 0x10]
movzx eax, byte [esi + 4]
mov dword [esi + 4], ecx
lea ecx, [esi + 0x58]
push ecx
push edx
push edi
push ebx
lea edx, [esi + 0x10]
push edx
lea edx, [esi + 0x12]
push edx
lea edx, [esi + 0x5c]
push edx
lea edx, [esi + 0x14]
push edx
mov dword [esi + 0x70], eax
push eax
push dword [esi + 4]
call fcn.0041b980
add esp, 0x28
lea eax, [esi + 0xe8]
push 0xc8
push 0xff
mov dword [esi + 4], eax
push eax
call fcn.005076c0
add esp, 0xc
mov edi, dword [esi]
mov eax, dword [esi + 0x58]
mov edx, edi
mov dword [esi + 0x1c], eax
sub edx, eax
jle 0x4137f8
movzx eax, byte [esi + 0x28]
mov bl, 1
test al, bl
je 0x41380a
mov eax, dword [esi + 0x2c]
jmp 0x41380c
movzx eax, byte [esi + 0x28]
mov ebx, dword [ebp + 0x14]
mov dl, 1
test al, dl
je 0x413819
mov eax, dword [esi + 0x2c]
jmp 0x41381b
shr eax, 1
movzx ecx, byte [esi + 0x38]
test cl, bl
je 0x413828
mov ecx, dword [esi + 0x3c]
jmp 0x41382a
shr eax, 1
movzx ecx, byte [esi + 0x38]
test cl, dl
je 0x41383a
mov ecx, dword [esi + 0x3c]
jmp 0x41383c
shr ecx, 1
mov ebx, dword [esi + 0x1c]
mov edi, dword [ebp + 0x14]
lea edx, [ebx + edx*2 + 1]
mov ebx, edi
mov edi, dword [esi]
jmp 0x413842
shr ecx, 1
mov edx, dword [esi + 0x1c]
add edx, 2
add eax, edx
add eax, ecx
xor ecx, ecx
cmp eax, 0x65
jb 0x413865
add eax, eax
push eax
call fcn.0051abd0
add esp, 4
mov ecx, eax
test eax, eax
je 0x413999
mov dword [esi + 4], ecx
xor eax, eax
lea edx, [esi + 0x54]
mov dword [esi], ecx
dec eax
mov dword [edx], eax
lea edx, [esi + 0x50]
mov dword [edx], eax
mov eax, dword [esi + 0x20]
lea edx, [eax + edi*2]
mov edi, dword [ebx + 4]
mov dword [esi + 0x24], ecx
movzx ecx, word [esi + 0x12]
mov dword [esi + 0x288], 3
mov dword [esi + 0x6c], edi
movzx edi, word [esi + 0x10]
push dword [esi + 0x1c]
lea ebx, [esi + 0x28]
push ebx
lea ebx, [esi + 0x38]
push ebx
lea ebx, [esi + 0x60]
push ebx
push edi
push ecx
lea ecx, [esi + 0x5c]
push ecx
push dword [esi + 0x70]
push dword [esi + 0x74]
push edx
push eax
push dword [esi + 0x6c]
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x54]
push eax
push dword [esi + 4]
call fcn.0041baf8
add esp, 0x3c
mov edi, dword [esi]
movzx eax, word [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x50]
mov dword [esi + 0x24], edi
mov edi, dword [esi + 0x54]
movzx eax, ax
push eax
push dword [ebp + 0x14]
push edx
push edi
push dword [esi + 4]
push ecx
push dword [ebp + 8]
call fcn.00418340
add esp, 0x1c
mov eax, dword [esi]
test eax, eax
je 0x413901
push eax
call fcn.0051a200
add esp, 4
test byte [esi + 0x28], 1
mov edi, dword [esi + 0x4c]
je 0x413915
push dword [esi + 0x30]
call fcn.005031ac
add esp, 4
test byte [esi + 0x38], 1
je 0x413926
push dword [esi + 0x40]
call fcn.005031ac
add esp, 4
test byte [esi + 0x60], 1
je 0x413937
push dword [esi + 0x68]
call fcn.005031ac
add esp, 4
mov ecx, dword [esi + 0x14]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x41394b
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x41395b
push eax
call fcn.0051a200
add esp, 4
test edi, edi
je 0x413968
push edi
call fcn.0051a200
add esp, 4
mov eax, dword [esi + 0x280]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0041d6cc
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
call fcn.0041d6cc
mov dword [esi + 0x24], ecx
mov dword [esi + 0x288], 3
call fcn.0041d6cc
nop
push ebp
sub esp, 0x3c
lea esi, [ebp - 0x28c]
mov ebp, dword [esi + 0x278]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4139cc
push eax
call fcn.0051a200
add esp, 4
add esp, 0x3c
pop ebp
ret