Function at 0x45fed0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push 0
push eax
call fcn.004ff750
push 0x400
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004ff750
add esp, 0x18
mov byte [ebp - 0x809], 0xff
lea eax, [ebp - 0x868]
mov dword [ebp - 0x81c], 1
mov dword [edi], 0
mov dword [edi + 0x134], 1
push eax
mov dword [edi + 0x130], 1
mov dword [ebp - 0x854], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x854]
mov dword [edi], eax
call fcn.00455b90
test al, al
je 0x45ff81
push dword [edi]
push str.CPU_NP:__d
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
cmp dword [edi + 0x402b0], 0
push ebx
push esi
je 0x45ffff
xor ebx, ebx
xorps xmm0, xmm0
mov dword [ebp - 0x814], ebx
movq qword [ebp - 0x840], xmm0
cmp dword [edi + 0x24], ebx
je 0x46000a
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
nop
lea ebx, [ebp - 0x844]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x840]
cdq
shrd eax, edx, 0x10
movzx ebx, al
mov dword [ebp - 0x814], ebx
call fcn.00455b90
test al, al
je 0x46000a
push ebx
push str.CPU_LogPPerPhyP:__d
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
jmp 0x46000a
mov ebx, 1
mov dword [ebp - 0x814], ebx
call fcn.00455b90
test al, al
je 0x460039
push dword [edi + 0x138]
lea eax, [edi + 0x28]
push eax
push str.CPU_MaxInputV:__s___d
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x14
lea ecx, [edi + 0x28]
mov dword [edi + 0x130], 1
mov edx, ecx
mov eax, str.GenuineIntel
nop dword [eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x460076
test si, si
je 0x460072
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x460076
add eax, 4
add edx, 4
test si, si
jne 0x460050
xor eax, eax
jmp 0x46007b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4601d1
cmp dword [edi + 0x138], 4
jl 0x4600a0
push edi
call fcn.0045c7e0
add esp, 4
mov dword [edi + 0x130], eax
jmp 0x460265
cmp dword [edi], 4
jl 0x4600dc
push str.Quad_CPU
push ecx
call fcn.004fe706
add esp, 8
test eax, eax
je 0x4600dc
mov eax, dword [edi]
and eax, reloc.WS2_32.dll_closesocket
jns 0x4600c7
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x460265
mov dword [edi + 0x130], 4
jmp 0x460265
cmp dword [edi + 0x138], 4
jge 0x46011d
mov eax, dword [edi]
cmp eax, 4
je 0x46013b
cmp eax, 8
je 0x46013b
cmp eax, 2
jne 0x46011d
lea esi, [edi + 0x50]
push str.Core_2_Duo
push esi
call fcn.004fe706
add esp, 8
test eax, eax
jne 0x46012c
push str.Pentium_Dual
push esi
call fcn.004fe706
add esp, 8
test eax, eax
jne 0x46012c
mov dword [edi + 0x130], 1
jmp 0x460265
mov dword [edi + 0x130], 2
jmp 0x460265
lea esi, [edi + 0x50]
push 0x5833dc
push esi
call fcn.004fe706
add esp, 8
test eax, eax
jne 0x4600cd
push 0x5833e4
push esi
call fcn.004fe706
add esp, 8
test eax, eax
jne 0x4600cd
push 0x5833ec
push esi
call fcn.004fe706
add esp, 8
test eax, eax
jne 0x4600cd
push str.Core_2_Quad
push esi
call fcn.004fe706
add esp, 8
test eax, eax
jne 0x4600cd
push str.Core_2_Extreme_Q6
push esi
call fcn.004fe706
add esp, 8
test eax, eax
jne 0x4600cd
push str.Core_2_Extreme_X9
push esi
call fcn.004fe706
add esp, 8
test eax, eax
jne 0x4600cd
mov dword [edi + 0x130], 1
jmp 0x460265
mov edx, ecx
mov eax, str.AuthenticAMD
mov si, word [eax]
cmp si, word [edx]
jne 0x4601fe
test si, si
je 0x4601fa
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x4601fe
add eax, 4
add edx, 4
test si, si
jne 0x4601d8
xor eax, eax
jmp 0x460203
sbb eax, eax
or eax, 1
test eax, eax
je 0x46024b
mov eax, str.HygonGenuine
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460236
test dx, dx
je 0x460232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460236
add eax, 4
add ecx, 4
test dx, dx
jne 0x460210
xor eax, eax
jmp 0x46023b
sbb eax, eax
or eax, 1
test eax, eax
je 0x46024b
mov dword [edi + 0x134], 1
jmp 0x460265
push edi
call fcn.0045c7e0
add esp, 4
mov dword [edi + 0x130], eax
cmp ebx, eax
cmovge eax, ebx
mov dword [edi + 0x134], eax
cmp dword [edi + 0x402b0], 0
je 0x46054e
cmp ebx, 1
jb 0x46054e
mov eax, dword [ebp - 0x814]
mov ecx, 1
cdq
xor bl, bl
idiv dword [edi + 0x130]
xor bh, bh
mov byte [ebp - 0x805], 0xff
mov edx, eax
mov byte [ebp - 0x807], bl
mov byte [ebp - 0x808], 0xff
mov byte [ebp - 0x806], bh
cmp edx, ecx
jle 0x4602d6
mov bh, byte [ebp - 0x805]
add ecx, ecx
add bh, bh
movzx ecx, cx
inc bl
cmp ecx, edx
jl 0x4602b7
mov byte [ebp - 0x805], bh
mov bh, byte [ebp - 0x806]
mov byte [ebp - 0x807], bl
mov edx, dword [edi + 0x130]
cmp edx, 1
jle 0x46030a
mov bl, byte [ebp - 0x805]
mov ecx, 1
nop dword [eax]
lea eax, [ecx + ecx]
add bl, bl
movzx ecx, ax
inc bh
cmp ecx, edx
jl 0x4602f0
mov byte [ebp - 0x808], bl
mov byte [ebp - 0x806], bh
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov ecx, dword [ebp - 0x810]
cmp ecx, dword [ebp - 0x82c]
je 0x460353
push str.Only_a_subset_of_the_CPUs_are_available.
push 0x6419e0
call fcn.00432fe0
mov ecx, dword [ebp - 0x810]
add esp, 8
movzx edx, byte [ebp - 0x807]
mov ebx, 1
movzx eax, byte [ebp - 0x806]
add eax, edx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x830], edx
mov dword [ebp - 0x834], eax
nop word [eax + eax]
cmp ebx, ecx
ja 0x4604aa
test ecx, ebx
je 0x460496
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
je 0x460490
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x824], eax
movq qword [ebp - 0x840], xmm0
cmp dword [edi + 0x24], eax
je 0x4603f4
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
nop
lea ebx, [ebp - 0x844]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x840]
mov ebx, dword [ebp - 0x818]
shr eax, 0x18
mov dword [ebp - 0x824], eax
movzx esi, byte [ebp - 0x808]
mov dl, byte [ebp - 0x805]
not esi
mov ecx, dword [ebp - 0x830]
and esi, eax
shr esi, cl
not dl
mov ecx, dword [ebp - 0x834]
and dl, al
shr eax, cl
mov cl, byte [ebp - 0x809]
cmp cl, 0xff
jne 0x46042c
mov byte [ebp - 0x809], al
jmp 0x460436
cmp cl, al
jne 0x460436
inc dword [ebp - 0x81c]
movzx eax, al
mov dword [ebp - 0x820], eax
movzx eax, dl
mov byte [ebp + esi - 0x404], 1
mov dword [ebp - 0x818], eax
mov byte [ebp + eax - 0x804], 1
call fcn.00455b90
test al, al
je 0x460490
push dword [ebp - 0x818]
push esi
push dword [ebp - 0x820]
push dword [ebp - 0x824]
push str.APIC_ID__d__PHYS_ID__d__CORE_ID__d__LOG_ID__d_n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x1c
mov ecx, dword [ebp - 0x810]
mov esi, dword [ebp - 0x828]
add ebx, ebx
mov dword [ebp - 0x818], ebx
jne 0x460380
lea edx, [ebp - 0x404]
mov esi, 0x400
xor ebx, ebx
cmp byte [edx], 0
lea eax, [ebx + 1]
lea edx, [edx + 1]
cmove eax, ebx
mov ebx, eax
sub esi, 1
jne 0x4604b7
mov dword [ebp - 0x820], ebx
lea edx, [ebp - 0x804]
mov esi, 0x400
xor ebx, ebx
nop dword [eax]
cmp byte [edx], 0
lea eax, [ebx + 1]
lea edx, [edx + 1]
cmove eax, ebx
mov ebx, eax
sub esi, 1
jne 0x4604e0
mov eax, dword [ebp - 0x820]
push ecx
push dword [ebp - 0x828]
mov dword [edi + 0x130], eax
mov eax, dword [ebp - 0x814]
mov dword [edi + 0x134], eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
cmp ebx, 1
jne 0x460529
mov dword [edi + 0x124], 2
jmp 0x460558
cmp ebx, 2
jl 0x460558
mov ecx, dword [ebp - 0x81c]
xor eax, eax
cmp ecx, dword [edi + 0x130]
setle al
lea eax, [eax*2 + 1]
mov dword [edi + 0x124], eax
jmp 0x460558
mov dword [edi + 0x124], 0
call fcn.00455b90
pop esi
pop ebx
test al, al
je 0x460593
push dword [edi + 0x124]
push dword [edi + 0x134]
push dword [edi + 0x130]
push dword [edi]
push str.CPUF1:_NP__d__NCPP__d__NTPP__d___d__n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x1c
cmp dword [edi + 0x124], 1
je 0x4605a8
mov eax, dword [edi + 0x130]
mov dword [edi + 0x134], eax
mov eax, dword [edi]
mov ecx, dword [edi + 0x134]
cdq
idiv ecx
mov dword [edi], eax
test eax, eax
jg 0x4605ea
mov eax, dword [edi + 0x130]
mov dword [edi], 1
cmp ecx, eax
jle 0x4605db
mov dword [edi + 0x134], eax
mov dword [edi + 0x124], 4
jmp 0x4605ea
cmp eax, 2
jl 0x4605ea
mov dword [edi + 0x130], 1
call fcn.00455b90
test al, al
je 0x460623
push dword [edi + 0x124]
push dword [edi + 0x134]
push dword [edi + 0x130]
push dword [edi]
push str.CPUF2:_NP__d__NCPP__d__NTPP__d___d__n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x1c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004f66cd
mov esp, ebp
pop ebp
ret