Function at 0x1002dcc0
Capabilities:
Get system information on windows
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
xor cl, cl
push edi
push 0x74
xorps xmm0, xmm0
mov byte [esp + 0x16], cl
lea edi, [esi + 4]
movlpd qword [esp + 0x24], xmm0
push 0
push edi
call fcn.10049980
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov dword [esi + 0x64], eax
xor eax, eax
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], esi
xor esi, esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [edi], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov esi, 0x100a0d48
mov dword [esp + 0x14], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
nop word [eax + eax]
cmp dword [esi + 4], edx
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
sete bh
cmp dword [esi], ecx
sete bl
and bh, bl
mov byte [esp + 0x13], bh
xor ebx, ebx
cmp dword [edi - 4], eax
movzx esi, byte [esp + 0x13]
mov edi, dword [ebp + 8]
cmove ebx, esi
test bl, bl
jne 0x1002dd98
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
inc ebx
add esi, 0x10
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
cmp ebx, 4
jb 0x1002dd50
jmp 0x1002dda8
mov esi, dword [esp + 0x18]
shl esi, 4
mov eax, dword [esi + 0x100a0d40]
mov dword [edi + 0x54], eax
cmp dword [esp + 0x1c], 1
jb 0x1002e068
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x2c]
mov ecx, edx
shr ecx, 8
mov esi, edx
shr esi, 4
and ecx, 0xf
mov eax, edx
mov dword [edi + 0x58], ecx
and esi, 0xf
and eax, 0xf
mov dword [edi + 0x5c], esi
mov dword [edi + 0x60], eax
cmp ecx, 0xf
jne 0x1002de12
mov eax, edx
shr eax, 0x14
movzx eax, al
add eax, ecx
mov dword [edi + 0x58], eax
mov eax, edx
shr eax, 0xc
and eax, 0xf0
add eax, esi
mov dword [edi + 0x5c], eax
mov eax, dword [esp + 0x30]
movzx ecx, al
mov dword [edi + 0x7c], ecx
mov ecx, eax
shr eax, 0x10
shr ecx, 8
shr edx, 0xc
movzx eax, al
and edx, 3
movzx ecx, cl
shl ecx, 3
mov dword [edi + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x78], edx
lea edx, [edi + 0x68]
mov dword [edi + 0x80], ecx
test al, 1
je 0x1002de53
or dword [edx], 0x100000
test al, 2
je 0x1002de62
or dword [edx], 0x80000000
lea esi, [edi + 0x68]
jmp 0x1002de64
mov esi, edx
test al, 8
je 0x1002de70
or dword [edx], 0x4000000
jmp 0x1002de72
mov esi, edx
test eax, 0x200
je 0x1002de88
mov ecx, dword [edx]
lea ebx, [edi + 0x68]
or ecx, 0x200000
mov dword [esi], ecx
jmp 0x1002de8a
mov ebx, esi
test eax, 0x2000
je 0x1002de96
or dword [esi], 0x40
jmp 0x1002de98
mov ebx, esi
test eax, 0x80000
je 0x1002deae
mov ecx, dword [esi]
lea edx, [edi + 0x68]
or ecx, 0x800000
mov dword [ebx], ecx
jmp 0x1002deb0
mov edx, ebx
test eax, 0x100000
je 0x1002debf
or dword [ebx], 0x1000000
jmp 0x1002dec1
mov edx, ebx
test eax, 0x400000
je 0x1002ded7
mov ecx, dword [ebx]
lea esi, [edi + 0x68]
or ecx, 0x8000000
mov dword [edx], ecx
jmp 0x1002ded9
mov esi, edx
test eax, 0x800000
je 0x1002dee8
or dword [edx], 0x10000000
jmp 0x1002deea
mov esi, edx
test eax, 0x2000000
je 0x1002defb
mov ecx, dword [edx]
or ecx, 0x40000000
mov dword [esi], ecx
test eax, 0x4000000
je 0x1002df06
or dword [edi + 0x6c], 8
test eax, 0x8000000
je 0x1002df11
or dword [edi + 0x6c], 0x10
test eax, 0x40000000
je 0x1002df1c
or dword [edi + 0x6c], 1
mov ecx, dword [esp + 0x38]
lea esi, [edi + 0x68]
test cl, 0x10
je 0x1002df2b
or dword [esi], 4
test ecx, 0x100
je 0x1002df3b
or dword [esi], 0x20
lea ebx, [edi + 0x68]
jmp 0x1002df3d
mov ebx, esi
test ecx, 0x8000
je 0x1002df4a
or dword [esi], 0x10
jmp 0x1002df4c
mov ebx, esi
test ecx, 0x80000
je 0x1002df63
mov edx, dword [esi]
lea esi, [edi + 0x68]
or edx, 0x80
mov dword [ebx], edx
jmp 0x1002df65
mov esi, ebx
test ecx, 0x800000
je 0x1002df75
or dword [ebx], 0x4000
jmp 0x1002df77
mov esi, ebx
test ecx, 0x1000000
je 0x1002df8e
mov edx, dword [ebx]
lea ebx, [edi + 0x68]
or edx, 0x1000
mov dword [esi], edx
jmp 0x1002df90
mov ebx, esi
test ecx, 0x2000000
je 0x1002dfa6
or dword [esi], 0x40000
or dword [esi], 0x8000
jmp 0x1002dfa8
mov ebx, esi
test ecx, 0x4000000
je 0x1002dfc0
mov edx, dword [esi]
or edx, 0x40000
or edx, 0x80000
mov dword [ebx], edx
and ecx, 0x10000000
je 0x1002dfcb
or dword [ebx], 2
cmp dword [edi + 0x64], 1
jne 0x1002dfe2
cmp dword [edi + 0x54], 2
jne 0x1002dfe2
test ecx, ecx
je 0x1002dfe2
mov dword [edi + 0x64], 2
mov ecx, eax
and ecx, 0xc000000
cmp ecx, 0xc000000
jne 0x1002dfff
xor ecx, ecx
xgetbv
mov ebx, eax
mov eax, dword [esp + 0x34]
jmp 0x1002e003
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
test eax, 0x10000000
je 0x1002e070
mov ecx, ebx
and ecx, 6
cmp cl, 6
jne 0x1002e070
mov ecx, dword [edi + 0x6c]
lea edx, [edi + 0x6c]
or ecx, 0x20
mov dword [edx], ecx
test eax, 0x800
je 0x1002e032
or ecx, 0x400
mov dword [edx], ecx
mov esi, edx
test eax, 0x4000
je 0x1002e046
or ecx, 0x100
lea esi, [edi + 0x6c]
mov dword [edx], ecx
test eax, 0x10000
je 0x1002e057
or ecx, 0x200
mov dword [edx], ecx
mov edx, esi
test eax, 0x20000000
je 0x1002e070
or ecx, 0x80
mov dword [edx], ecx
jmp 0x1002e070
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], 7
jb 0x1002e1e9
mov eax, 7
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], esi
lea esi, [edi + 0x6c]
mov dword [ebx + 8], ecx
mov ecx, dword [esi]
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x30]
test al, 1
je 0x1002e0ac
or ecx, 0x20000
mov dword [esi], ecx
mov edx, esi
test al, 8
je 0x1002e0bd
or ecx, 0x800
lea edx, [edi + 0x6c]
mov dword [esi], ecx
test al, 0x10
je 0x1002e0cb
or ecx, 0x2000
mov dword [esi], ecx
mov esi, edx
test eax, 0x100
je 0x1002e0da
or ecx, 0x1000
mov dword [esi], ecx
mov edx, esi
test eax, 0x200
je 0x1002e0ee
or ecx, 0x40000
lea edx, [edi + 0x6c]
mov dword [esi], ecx
test eax, 0x800
je 0x1002e0ff
or ecx, 0x4000
mov dword [esi], ecx
mov esi, edx
mov ebx, eax
shr ebx, 0xe
and bl, 1
test eax, 0x40000
je 0x1002e113
or ecx, 2
mov dword [esi], ecx
mov edx, esi
test eax, 0x80000
je 0x1002e127
or ecx, 0x8000
lea edx, [edi + 0x6c]
mov dword [esi], ecx
test eax, 0x800000
je 0x1002e139
or dword [edi + 0x68], 0x100
mov ecx, dword [esi]
mov esi, edx
test eax, 0x20000000
je 0x1002e145
or ecx, 4
mov dword [esi], ecx
test byte [esp + 0x34], 1
je 0x1002e153
or dword [edi + 0x68], 0x400
mov ecx, dword [esi]
mov edx, ecx
shr ecx, 5
test cl, 1
je 0x1002e16a
mov ecx, edx
test al, 0x20
je 0x1002e16a
or edx, 0x40
mov dword [esi], edx
mov cl, bl
test eax, 0x10000
je 0x1002e1f1
mov ecx, dword [esp + 0x14]
and ecx, 0x76
cmp cl, 0x76
jne 0x1002e1ef
or edx, 0x80000
mov dword [edi + 0x6c], edx
test eax, 0x20000
je 0x1002e198
or edx, 0x800000
mov dword [edi + 0x6c], edx
test eax, 0x4000000
je 0x1002e1a8
or edx, 0x200000
mov dword [edi + 0x6c], edx
test eax, 0x8000000
je 0x1002e1b8
or edx, 0x400000
mov dword [edi + 0x6c], edx
test eax, 0x10000000
je 0x1002e1c8
or edx, 0x100000
mov dword [edi + 0x6c], edx
test eax, 0x40000000
je 0x1002e1d8
or edx, 0x1000000
mov dword [edi + 0x6c], edx
mov cl, bl
test eax, eax
jns 0x1002e1f1
or edx, 0x2000000
mov dword [edi + 0x6c], edx
jmp 0x1002e1f1
mov cl, byte [esp + 0x12]
jmp 0x1002e1f1
mov cl, bl
cmp dword [esp + 0x1c], 0xd
jb 0x1002e22e
test cl, cl
je 0x1002e22e
mov eax, 0xd
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
and eax, dword [esp + 0x2c]
and eax, 0x18
cmp al, 0x18
jne 0x1002e22e
or dword [edi + 0x6c], 0x10000
mov eax, 0x80000000
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
lea eax, [edi + 0x14]
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, 0x80000001
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
cmp ecx, 0x80000004
jae 0x1002e274
cmp ecx, edx
jb 0x1002e3b8
jmp 0x1002e280
mov dword [esp + 0x14], 0x80000004
nop dword [eax]
mov eax, edx
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x7fffffff]
cmp eax, 3
ja case.default.0x1002e2ac
jmp dword [eax*4 + 0x1002e3f4]
mov eax, dword [esp + 0x34]
lea esi, [edi + 0x68]
test al, 1
je 0x1002e2c8
mov ecx, dword [esi]
or ecx, 0x800
mov dword [esi], ecx
test al, 0x20
je 0x1002e2d7
or dword [esi], 0x20000000
lea ebx, [edi + 0x68]
jmp 0x1002e2d9
mov ebx, esi
test al, 0x40
je 0x1002e2e5
or dword [esi], 0x400000
jmp 0x1002e2e7
mov ebx, esi
test al, al
jns 0x1002e2fa
mov ecx, dword [esi]
lea esi, [edi + 0x68]
or ecx, 0x2000000
mov dword [ebx], ecx
jmp 0x1002e2fc
mov esi, ebx
test eax, 0x100
je 0x1002e30b
or dword [ebx], 0x200
jmp 0x1002e30d
mov esi, ebx
mov eax, dword [esp + 0x38]
test eax, 0x100000
je 0x1002e324
mov ecx, dword [ebx]
lea ebx, [edi + 0x68]
or ecx, 1
mov dword [esi], ecx
jmp 0x1002e326
mov ebx, esi
test eax, 0x200000
je 0x1002e335
or dword [esi], 0x2000
jmp 0x1002e337
mov ebx, esi
test eax, 0x400000
je 0x1002e34d
mov ecx, dword [esi]
lea esi, [edi + 0x68]
or ecx, 0x8000
mov dword [ebx], ecx
jmp 0x1002e34f
mov esi, ebx
test eax, 0x8000000
je 0x1002e35b
or dword [ebx], 8
jmp 0x1002e35d
mov esi, ebx
test eax, 0x40000000
je 0x1002e374
mov ecx, dword [ebx]
or ecx, 0x20000
or ecx, 0x8000
mov dword [esi], ecx
test eax, eax
jns case.default.0x1002e2ac
or dword [esi], 0x10000
jmp case.default.0x1002e2ac
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov dword [esp + 0x1c], ecx
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x14]
jbe 0x1002e280
lea eax, [edi + 0x14]
mov cl, byte [eax]
xor ch, ch
mov byte [eax], ch
mov edx, eax
test cl, cl
je 0x1002e3ea
cmp cl, 0x20
jne 0x1002e3da
cmp ch, 0x40
je 0x1002e3df
mov bl, byte [eax + 1]
cmp bl, cl
je 0x1002e3df
cmp bl, 0x40
je 0x1002e3df
mov byte [edx], cl
mov ch, cl
inc edx
mov cl, byte [eax + 1]
inc eax
mov byte [eax], 0
test cl, cl
jne 0x1002e3c4
pop edi
pop esi
mov byte [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret