Function at 0x1002dd20
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 [0x10045290], esi
jne 0x1002e089
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x140]
push ecx
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x240]
mov dword [0x10045290], 1
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x1002dd76
mov dword [0x1003b134], eax
mov eax, 0x40
cmp dword [0x1003b134], eax
jbe 0x1002dd88
mov dword [0x1003b134], eax
push 0x10037254
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x1002de84
push str.GetLogicalProcessorInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x1002de84
lea edx, [ebp - 0x10]
push edx
push esi
mov dword [ebp - 0x10], esi
call ebx
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x1002de84
call fcn.10032aa0
mov esi, esp
test esi, esi
je 0x1002de84
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x1002de84
cmp dword [ebp - 0x10], 0x18
mov ebx, dword [0x1003b134]
jb 0x1002de45
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 4]
test eax, eax
je 0x1002de15
cmp eax, 3
jne 0x1002de34
mov eax, edx
sar eax, 2
cmp eax, ebx
jae 0x1002de34
mov eax, dword [esi]
mov dword [edi], eax
add edi, 4
add edx, 4
jmp 0x1002de34
mov eax, ecx
sar eax, 2
cmp eax, ebx
jae 0x1002de34
mov eax, dword [ebp - 0x18]
mov ebx, dword [esi]
mov dword [eax], ebx
mov ebx, dword [0x1003b134]
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 0x1002ddf4
lea edx, [ebp - 0x240]
sub edi, edx
sar edi, 2
lea ecx, [ebx + 0x10045067]
sub edi, 1
mov dword [ebp - 0x14], 0x10045068
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], edi
jns 0x1002dfaf
mov edx, dword [ebp - 0x18]
mov eax, edx
lea ecx, [ebp - 0x140]
sub eax, ecx
test eax, 0xfffffffc
jne 0x1002df85
mov edi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1002dcf0
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 0x1002df59
mov eax, dword [0x1003b134]
mov ecx, eax
shr ecx, 1
mov esi, 0x10045068
mov dword [ebp - 0xc], esi
mov dword [0x1004528c], ecx
test al, 1
je 0x1002dee9
dec eax
mov esi, 0x10045069
mov byte [0x10045068], al
mov dword [ebp - 0xc], esi
mov ecx, eax
shr ecx, 1
test al, 3
jne 0x1002df20
mov edi, ecx
shr edi, 1
mov eax, 0
je 0x1002df37
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 0x1002df03
jmp 0x1002df37
xor eax, eax
test ecx, ecx
jbe 0x1002df32
mov dl, al
inc dl
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jb 0x1002df26
mov byte [ecx + esi - 1], 0
xor eax, eax
test ecx, ecx
jbe 0x1002df7b
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 0x1002df42
mov eax, 1
jmp 0x1002e08b
mov ecx, dword [0x1003b134]
xor eax, eax
test ecx, ecx
jbe 0x1002df74
mov dl, al
inc dl
mov byte [eax + 0x10045068], dl
inc eax
cmp eax, ecx
jb 0x1002df65
mov byte [ecx + 0x10045067], 0
mov eax, 1
jmp 0x1002e08b
lea eax, [ebp - 0x140]
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x240], ecx
cmp esi, edx
jae 0x1002dfaf
or ecx, dword [eax]
add eax, 4
cmp eax, edx
jb 0x1002dfa0
mov dword [ebp - 0x240], ecx
mov edi, dword [ebp - 0xc]
mov dword [0x1004528c], 0
lea edi, [ebp + edi*4 - 0x240]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov eax, dword [edi]
test eax, eax
je 0x1002e01a
mov esi, 1
mov ecx, ebx
shl esi, cl
test esi, eax
je 0x1002e011
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], ecx
ja 0x1002dfec
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 0x1002e00e
test dword [edx], esi
jne 0x1002e041
add edx, 4
cmp edx, eax
jb 0x1002e003
mov ebx, dword [ebp - 8]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, 0x20
jb 0x1002dfc8
mov eax, dword [ebp - 0xc]
dec eax
sub edi, 4
mov dword [ebp - 0xc], eax
test eax, eax
jge 0x1002dfc3
mov eax, 0x40
cmp dword [0x1004528c], eax
jbe 0x1002e03a
mov dword [0x1004528c], eax
mov eax, 1
jmp 0x1002e08b
and dword [edx], ecx
mov ebx, dword [ebp - 8]
mov ecx, 0x1f
cmp ebx, ecx
jae 0x1002e011
nop
mov esi, dword [edx]
test esi, esi
je 0x1002e011
mov eax, 1
shl eax, cl
test esi, eax
je 0x1002e082
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], ebx
ja 0x1002e06f
mov byte [ebx], cl
dec ebx
mov dword [ebp - 0x1c], ebx
inc dword [0x1004528c]
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 0x1002e050
jmp 0x1002e011
xor eax, eax
lea esp, [ebp - 0x24c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100329a0
mov esp, ebp
pop ebp
ret