Function at 0x514410
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
lea eax, [esi + 0x280]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x457db0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea edi, [esi + 0x140]
mov dword [edi + 0x60], edx
pcmpeqd xmm0, xmm0
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
lea eax, [esi + 0x1b0]
push 0xc8
push 0xff
mov dword [esi + 0x20], eax
push eax
call fcn.004d5a00
sub esp, 8
movsd xmm0, qword [ebp + 0x1c]
movsd qword [esp + 0xc], xmm0
mov dword [esp], edi
mov dword [esp + 8], str._.0Lf
mov dword [esp + 4], 0x64
call fcn.004bfe70
add esp, 0x14
mov ecx, eax
mov dword [esi + 4], eax
cmp eax, 0x64
jb 0x51455a
mov eax, dword [0x5c5dd0]
mov ecx, dword [0x5c7534]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x51481e
mov eax, dword [0x5c5dc8]
mov ecx, dword [0x5c5dcc]
xor edx, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x288], edx
sub esp, 0x18
movsd xmm0, qword [ebp + 0x1c]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp], eax
mov dword [esp + 0xc], str._.0Lf
call fcn.0050b680
add esp, 0x18
mov dword [esi + 4], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x51486c
mov edi, eax
mov eax, dword [esi + 4]
add eax, eax
push eax
call fcn.004b8610
add esp, 4
test eax, eax
je 0x514879
mov dword [esi + 0x20], eax
jmp 0x51455e
xor eax, eax
xor edi, edi
mov ecx, dword [ebp + 0x14]
lea edx, [esi + 0x14]
mov dword [edx], 0xffffffff
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
push edx
call fcn.004b8140
mov edi, dword [esi + 0x14]
mov dword [esi + 0x78], 0x5c5df0
mov dword [esi + 0x7c], 0x40ad00
mov eax, dword [0x5c5df0]
cmp eax, 0xffffffff
jne 0x5148a7
mov eax, dword [0x5c5df4]
lea edx, [eax - 1]
mov ecx, dword [edi + 8]
mov edi, dword [edi + 0xc]
sub edi, ecx
sar edi, 2
cmp edi, edx
jbe 0x514898
mov ecx, dword [ecx + eax*4 - 4]
mov dword [esi + 0x288], 2
test ecx, ecx
je 0x514898
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 4]
add edx, eax
mov edi, dword [ecx]
mov dword [esi + 0x74], ecx
push dword [esi + 0x20]
push edx
push eax
call dword [edi + 0x28]
xor ecx, ecx
cmp dword [esi + 4], 0
je 0x514813
mov edx, dword [esi + 0x18]
cmp byte [edx], 0x2d
sete al
mov dword [esi], eax
lea ebx, [esi + 0x60]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
lea edi, [esi + 0x28]
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
lea edx, [esi + 0x38]
mov dword [edx + 4], ecx
mov dword [edx], ecx
mov dword [edx + 8], ecx
xor eax, eax
dec eax
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
mov dword [esi + 0x288], 3
movzx eax, byte [esi]
movzx ecx, byte [ebp + 0x10]
mov dword [esi], 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]
call fcn.0043bfb0
add esp, 0x28
lea eax, [esi + 0x78]
push 0xc8
push 0xff
mov dword [esi + 0x1c], eax
push eax
call fcn.004d5a00
add esp, 0xc
mov ebx, dword [esi + 0x58]
mov edx, dword [esi + 4]
sub edx, ebx
jle 0x5146b3
movzx eax, byte [esi + 0x43]
test al, al
jns 0x5146a2
mov eax, dword [esi + 0x3c]
movzx ecx, byte [esi + 0x33]
test cl, cl
jns 0x5146ad
mov ecx, dword [esi + 0x2c]
lea edx, [ebx + edx*2]
inc edx
jmp 0x5146cc
movzx eax, byte [esi + 0x43]
test al, al
jns 0x5146be
mov eax, dword [esi + 0x3c]
movzx ecx, byte [esi + 0x33]
test cl, cl
jns 0x5146c9
mov ecx, dword [esi + 0x2c]
lea edx, [ebx + 2]
add eax, edx
add eax, ecx
mov dword [esi], 0
cmp eax, 0x65
jb 0x5146f3
add eax, eax
push eax
call fcn.004b8610
add esp, 4
mov dword [esi + 0x1c], eax
mov dword [esi], eax
test eax, eax
je 0x514884
lea ecx, [esi + 0x54]
xor eax, eax
dec eax
mov dword [ecx], eax
lea ecx, [esi + 0x50]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
lea edx, [eax + ecx*2]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [esi]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x288], 4
movzx ecx, word [esi + 0x10]
movzx edi, word [esi + 0x12]
push ebx
lea ebx, [esi + 0x38]
push ebx
lea ebx, [esi + 0x28]
push ebx
lea ebx, [esi + 0x60]
push ebx
push ecx
push edi
lea ecx, [esi + 0x5c]
push ecx
push dword [esi + 0x70]
push dword [esi + 0x74]
push edx
push eax
push dword [esi + 4]
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 0x54]
push eax
push dword [esi + 0x1c]
call fcn.00514a10
add esp, 0x3c
movzx eax, word [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x50]
mov edi, dword [esi]
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 + 0x1c]
push ecx
push dword [ebp + 8]
call fcn.0043ade0
add esp, 0x1c
cmp dword [esi], 0
je 0x514793
push dword [esi]
call fcn.004b85f0
add esp, 4
cmp byte [esi + 0x43], 0
jns 0x5147a4
push dword [esi + 0x38]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x33], 0
jns 0x5147b5
push dword [esi + 0x28]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x6b], 0
jns 0x5147c6
push dword [esi + 0x60]
call fcn.004cf0d6
add esp, 4
mov ecx, dword [esi + 0x14]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x5147da
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x5147ea
push eax
call fcn.004b85f0
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x5147fa
push eax
call fcn.004b85f0
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
mov dword [esi], 0
jmp 0x514602
push 0x5c5dd0
call fcn.004d02b9
add esp, 4
cmp dword [0x5c5dd0], 0xffffffff
jne 0x5144ea
mov dword [esi + 0x288], 1
xor eax, eax
push eax
push eax
push 0x579719
push 0x3f
push 0x5c5dc8
call fcn.004226a0
add esp, 0x14
push 0x5c5dd0
call fcn.004d03d3
add esp, 4
jmp 0x5144ea
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00503840
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
call fcn.00503840
mov eax, dword [esi]
mov dword [esi + 0x24], eax
mov dword [esi + 0x288], 4
call fcn.00503840
mov dword [esi + 0x288], 2
call fcn.00504fd0
mov dword [esi], edi
lea eax, [esi + 0x78]
lea ecx, [esi + 0x60]
mov dword [ecx], eax
lea eax, [esi + 0x28]
mov dword [eax], ecx
mov dword [esi + 0x288], 2
push 0x40acf0
push eax
push 0x5c5df0
call fcn.004176f0
add esp, 0xc
mov edi, dword [esi]
jmp 0x5145a5