Function at 0x51f790
Capabilities:
Get number of processors
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x568946
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], ecx
mov ebx, 0x7530
lea ecx, [ecx]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 0x64
mov eax, 0x4000
mov dword [esp + 0x20], ebx
xor edi, edi
mov dword [esp + 0x18], eax
lea ebx, [ebx]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov ebx, eax
mov dword [esp + 0x18], eax
add esp, 4
test ebx, ebx
je 0x51faa4
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0x2e
push 0
call fcn.0054fce4
mov esi, eax
cmp esi, 0x6f
jne 0x51f840
push ebx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], ebx
inc edi
cmp esi, 0x6f
jne 0x51f855
cmp edi, 3
jae 0x51fa96
mov eax, dword [esp + 0x18]
jmp 0x51f800
test esi, esi
jne 0x51fa96
test ebx, ebx
je 0x51faa4
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [esp + 0x34]
push ebx
call fcn.00430f80
add esp, 4
mov dword [esp + 0xf8], esi
nop
mov esi, dword [ebx + 0xc]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51f888
sub eax, edx
cmp eax, 0x26
jb 0x51f901
lea eax, [esp + 0x4c]
inc esi
push eax
lea eax, [esp + 0xc4]
mov ecx, 9
lea edi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
push eax
mov byte [esp + 0xec], 0
call dword [0x5c03e8]
test eax, eax
jne 0x51f901
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x4c]
lea esi, [eax + 0xc]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x51f901
add ecx, 4
add edx, 4
sub esi, 4
jae 0x51f8d0
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x51f912
mov dword [esp + 0xf8], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00416890
jmp 0x51faa4
mov ebx, dword [ebx + 8]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x51f880
jmp 0x51f8e8
xor edi, edi
lea ebx, [edi + 0x17]
lea esi, [edi + 2]
lea ebx, [ebx]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], eax
movzx eax, word [edx]
cmp si, ax
jne 0x51f93a
cmp word [edx + 4], 0xfea9
jmp 0x51f953
cmp bx, ax
jne 0x51f955
mov ax, word [edx + 8]
mov edx, 0xc0ff
and ax, dx
mov edx, 0x80fe
cmp ax, dx
je 0x51f956
inc edi
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x51f920
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x51f8e8
lea eax, [edi*8]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x51f8e8
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [esp + 0x40]
push eax
call fcn.00430f80
add esp, 4
mov byte [esp + 0xf8], 1
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x51f9db
mov ebx, dword [esp + 0x24]
jmp 0x51f9b0
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.0051f470
add esp, 8
test al, al
je 0x51f9d0
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 4], eax
add ebx, 8
mov esi, dword [esi + 8]
test esi, esi
jne 0x51f9b0
mov ebx, dword [esp + 0x14]
push 0x51f3f0
push 8
push edi
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_qsort]
add esp, 0x10
mov dword [esp + 0x5c], 0x67452301
mov dword [esp + 0x60], 0xefcdab89
mov dword [esp + 0x64], 0x98badcfe
mov dword [esp + 0x68], 0x10325476
mov dword [esp + 0x6c], 0xc3d2e1f0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov esi, dword [ebx + 0x10]
test edi, edi
jle 0x51fa5b
jmp 0x51fa40
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x5c]
push dword [esi + 0x10]
add edx, 2
call fcn.004d8120
mov esi, dword [esi + 8]
add esp, 4
dec edi
jne 0x51fa40
lea ecx, [esp + 0x5c]
call fcn.004d81d0
lea ecx, [esp + 0x5c]
call fcn.004d82f0
mov esi, dword [eax]
mov byte [esp + 0xf8], 0
lea ecx, [esp + 0x40]
call fcn.00416890
mov dword [esp + 0xf8], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00416890
jmp 0x51faa6
test ebx, ebx
je 0x51faa4
push ebx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor esi, esi
cmp byte [ebp + 8], 0
je 0x51fab5
cmp esi, dword [esp + 0x1c]
setne cl
jmp 0x51fabc
cmp esi, dword [esp + 0x1c]
sete cl
test cl, cl
je 0x51facc
mov ebx, dword [esp + 0x20]
test ebx, ebx
jg 0x51f7e0
xor eax, eax
test cl, cl
sete al
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret