Function at 0x10005210
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x100b5020], esi
jne 0x10005579
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x140]
push ecx
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x240]
mov dword [0x100b5020], 1
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x10005266
mov dword [0x10013c54], eax
mov eax, 0x40
cmp dword [0x10013c54], eax
jbe 0x10005278
mov dword [0x10013c54], eax
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x10005374
push str.GetLogicalProcessorInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x10005374
lea edx, [ebp - 0x10]
push edx
push esi
mov dword [ebp - 0x10], esi
call ebx
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x10005374
call fcn.1000b930
mov esi, esp
test esi, esi
je 0x10005374
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x10005374
cmp dword [ebp - 0x10], 0x18
mov ebx, dword [0x10013c54]
jb 0x10005335
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 4]
test eax, eax
je 0x10005305
cmp eax, 3
jne 0x10005324
mov eax, edx
sar eax, 2
cmp eax, ebx
jae 0x10005324
mov eax, dword [esi]
mov dword [edi], eax
add edi, 4
add edx, 4
jmp 0x10005324
mov eax, ecx
sar eax, 2
cmp eax, ebx
jae 0x10005324
mov eax, dword [ebp - 0x18]
mov ebx, dword [esi]
mov dword [eax], ebx
mov ebx, dword [0x10013c54]
add eax, 4
mov dword [ebp - 0x18], eax
add ecx, 4
mov eax, dword [ebp - 0x10]
sub eax, 0x18
add esi, 0x18
mov dword [ebp - 0x10], eax
cmp eax, 0x18
jae 0x100052e4
lea edx, [ebp - 0x240]
sub edi, edx
sar edi, 2
lea ecx, [ebx + 0x100b4f47]
sub edi, 1
mov dword [ebp - 0x14], 0x100b4f48
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], edi
jns 0x1000549f
mov edx, dword [ebp - 0x18]
mov eax, edx
lea ecx, [ebp - 0x140]
sub eax, ecx
test eax, 0xfffffffc
jne 0x10005475
mov edi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x100051e0
mov dword [ebp - 8], 0
call edi
mov esi, eax
mov dword [ebp - 8], 0
mov eax, 1
cpuid
mov dword [ebp - 8], edx
push esi
call edi
mov edx, dword [ebp - 8]
shr edx, 0x1c
and edx, 1
mov dword [ebp - 8], edx
je 0x10005449
mov eax, dword [0x10013c54]
mov ecx, eax
shr ecx, 1
mov esi, 0x100b4f48
mov dword [ebp - 0xc], esi
mov dword [0x100b501c], ecx
test al, 1
je 0x100053d9
dec eax
mov esi, 0x100b4f49
mov byte [0x100b4f48], al
mov dword [ebp - 0xc], esi
mov ecx, eax
shr ecx, 1
test al, 3
jne 0x10005410
mov edi, ecx
shr edi, 1
mov eax, 0
je 0x10005427
lea ebx, [edi + esi]
mov edx, esi
sub edx, ebx
mov bl, al
add bl, bl
add esi, edi
add esi, eax
inc bl
mov byte [edx + esi], bl
mov bl, al
add bl, bl
inc eax
mov byte [esi], bl
mov esi, dword [ebp - 0xc]
cmp eax, edi
jb 0x100053f3
jmp 0x10005427
xor eax, eax
test ecx, ecx
jbe 0x10005422
mov dl, al
inc dl
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jb 0x10005416
mov byte [ecx + esi - 1], 0
xor eax, eax
test ecx, ecx
jbe 0x1000546b
add esi, ecx
lea edi, [esi - 1]
mov dl, byte [edi]
add dl, cl
mov byte [esi + eax], dl
inc eax
dec edi
cmp eax, ecx
jb 0x10005432
mov eax, 1
jmp 0x1000557b
mov ecx, dword [0x10013c54]
xor eax, eax
test ecx, ecx
jbe 0x10005464
mov dl, al
inc dl
mov byte [eax + 0x100b4f48], dl
inc eax
cmp eax, ecx
jb 0x10005455
mov byte [ecx + 0x100b4f47], 0
mov eax, 1
jmp 0x1000557b
lea eax, [ebp - 0x140]
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x240], ecx
cmp esi, edx
jae 0x1000549f
or ecx, dword [eax]
add eax, 4
cmp eax, edx
jb 0x10005490
mov dword [ebp - 0x240], ecx
mov edi, dword [ebp - 0xc]
mov dword [0x100b501c], 0
lea edi, [ebp + edi*4 - 0x240]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov eax, dword [edi]
test eax, eax
je 0x1000550a
mov esi, 1
mov ecx, ebx
shl esi, cl
test esi, eax
je 0x10005501
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], ecx
ja 0x100054dc
mov ecx, dword [ebp - 0x14]
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0x14], ecx
mov ecx, esi
not ecx
and eax, ecx
lea edx, [ebp - 0x140]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov ebx, edx
cmp ebx, eax
jae 0x100054fe
test dword [edx], esi
jne 0x10005531
add edx, 4
cmp edx, eax
jb 0x100054f3
mov ebx, dword [ebp - 8]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, 0x20
jb 0x100054b8
mov eax, dword [ebp - 0xc]
dec eax
sub edi, 4
mov dword [ebp - 0xc], eax
test eax, eax
jge 0x100054b3
mov eax, 0x40
cmp dword [0x100b501c], eax
jbe 0x1000552a
mov dword [0x100b501c], eax
mov eax, 1
jmp 0x1000557b
and dword [edx], ecx
mov ebx, dword [ebp - 8]
mov ecx, 0x1f
cmp ebx, ecx
jae 0x10005501
nop
mov esi, dword [edx]
test esi, esi
je 0x10005501
mov eax, 1
shl eax, cl
test esi, eax
je 0x10005572
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], ebx
ja 0x1000555f
mov byte [ebx], cl
dec ebx
mov dword [ebp - 0x1c], ebx
inc dword [0x100b501c]
not eax
mov ebx, eax
and ebx, esi
and dword [edi], eax
mov dword [edx], ebx
mov ebx, dword [ebp - 8]
dec ecx
cmp ecx, ebx
ja 0x10005540
jmp 0x10005501
xor eax, eax
lea esp, [ebp - 0x24c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100055da
mov esp, ebp
pop ebp
ret