Function at 0x41d740
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]
xorps xmm0, xmm0
push edi
push 0x74
push 0
lea eax, [esi + 4]
mov byte [esp + 0x1b], 0
push eax
movlpd qword [esp + 0x2c], xmm0
call fcn.004213e0
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 edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov edi, 0x493e18
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0xc], ecx
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], eax
mov edx, dword [esi + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0xc]
cmp dword [edi + 4], ecx
sete bl
cmp dword [edi], edx
sete cl
xor edx, edx
and bl, cl
cmp dword [edi - 4], eax
movzx ecx, bl
cmove edx, ecx
mov ecx, dword [esp + 0x14]
test dl, dl
jne 0x41d7fb
mov edx, dword [esi + 8]
inc ecx
add edi, 0x10
mov dword [esp + 0x14], ecx
cmp ecx, 4
mov ecx, dword [esi + 0xc]
jb 0x41d7c6
jmp 0x41d807
shl ecx, 4
mov eax, dword [ecx + 0x493e10]
mov dword [esi + 0x54], eax
cmp dword [esp + 0x18], 1
jb 0x41da5a
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x2c]
mov ecx, edx
shr ecx, 8
mov edi, edx
shr edi, 4
and ecx, 0xf
mov eax, edx
mov dword [esi + 0x58], ecx
and edi, 0xf
and eax, 0xf
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
cmp ecx, 0xf
jne 0x41d871
mov eax, edx
shr eax, 0x14
movzx eax, al
add eax, ecx
mov dword [esi + 0x58], eax
mov eax, edx
shr eax, 0xc
and eax, 0xf0
add eax, edi
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x30]
movzx ecx, al
mov dword [esi + 0x7c], ecx
mov ecx, eax
shr eax, 0x10
shr ecx, 8
movzx eax, al
shr edx, 0xc
movzx ecx, cl
and edx, 3
shl ecx, 3
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x78], edx
mov dword [esi + 0x80], ecx
test al, 1
je 0x41d8b0
or dword [esi + 0x68], 0x100000
test al, 2
je 0x41d8bb
or dword [esi + 0x68], 0x80000000
test al, 8
je 0x41d8c6
or dword [esi + 0x68], 0x4000000
test eax, 0x200
je 0x41d8d4
or dword [esi + 0x68], 0x200000
test eax, 0x2000
je 0x41d8df
or dword [esi + 0x68], 0x40
test eax, 0x80000
je 0x41d8ed
or dword [esi + 0x68], 0x800000
test eax, 0x100000
je 0x41d8fb
or dword [esi + 0x68], 0x1000000
test eax, 0x400000
je 0x41d909
or dword [esi + 0x68], 0x8000000
test eax, 0x800000
je 0x41d917
or dword [esi + 0x68], 0x10000000
test eax, 0x2000000
je 0x41d925
or dword [esi + 0x68], 0x40000000
test eax, 0x4000000
je 0x41d930
or dword [esi + 0x6c], 8
test eax, 0x8000000
je 0x41d93b
or dword [esi + 0x6c], 0x10
test eax, 0x40000000
je 0x41d946
or dword [esi + 0x6c], 1
mov ecx, dword [esp + 0x38]
test cl, 0x10
je 0x41d953
or dword [esi + 0x68], 4
test ecx, 0x100
je 0x41d95f
or dword [esi + 0x68], 0x20
test ecx, 0x8000
je 0x41d96b
or dword [esi + 0x68], 0x10
test ecx, 0x80000
je 0x41d97a
or dword [esi + 0x68], 0x80
test ecx, 0x800000
je 0x41d989
or dword [esi + 0x68], 0x4000
test ecx, 0x1000000
je 0x41d998
or dword [esi + 0x68], 0x1000
test ecx, 0x2000000
je 0x41d9a7
or dword [esi + 0x68], 0x48000
test ecx, 0x4000000
je 0x41d9b6
or dword [esi + 0x68], 0xc0000
and ecx, 0x10000000
je 0x41d9c2
or dword [esi + 0x68], 2
test ecx, ecx
je 0x41d9d9
cmp dword [esi + 0x64], 1
jne 0x41d9d9
cmp dword [esi + 0x54], 2
jne 0x41d9d9
mov dword [esi + 0x64], 2
mov ecx, eax
and ecx, 0xc000000
cmp ecx, 0xc000000
jne 0x41d9f6
xor ecx, ecx
xgetbv
mov ebx, eax
mov eax, dword [esp + 0x34]
jmp 0x41d9fa
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
test eax, 0x10000000
je 0x41da62
mov ecx, ebx
and ecx, 6
cmp cl, 6
jne 0x41da62
mov ecx, dword [esi + 0x6c]
or ecx, 0x20
mov dword [esi + 0x6c], ecx
test eax, 0x800
je 0x41da28
or ecx, 0x400
mov dword [esi + 0x6c], ecx
test eax, 0x4000
je 0x41da38
or ecx, 0x100
mov dword [esi + 0x6c], ecx
test eax, 0x10000
je 0x41da48
or ecx, 0x200
mov dword [esi + 0x6c], ecx
test eax, 0x20000000
je 0x41da62
or ecx, 0x80
mov dword [esi + 0x6c], ecx
jmp 0x41da62
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], 7
jb 0x41dbd0
mov eax, 7
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x6c]
test al, 1
je 0x41da9d
or edx, 0x20000
mov dword [esi + 0x6c], edx
test al, 8
je 0x41daaa
or edx, 0x800
mov dword [esi + 0x6c], edx
test al, 0x10
je 0x41dab7
or edx, 0x2000
mov dword [esi + 0x6c], edx
test eax, 0x100
je 0x41dac7
or edx, 0x1000
mov dword [esi + 0x6c], edx
test eax, 0x200
je 0x41dad7
or edx, 0x40000
mov dword [esi + 0x6c], edx
test eax, 0x800
je 0x41dae7
or edx, 0x4000
mov dword [esi + 0x6c], edx
mov ebx, eax
shr ebx, 0xe
and bl, 1
test eax, 0x40000
je 0x41dafc
or edx, 2
mov dword [esi + 0x6c], edx
test eax, 0x80000
je 0x41db0c
or edx, 0x8000
mov dword [esi + 0x6c], edx
test eax, 0x800000
je 0x41db1d
or dword [esi + 0x68], 0x100
mov edx, dword [esi + 0x6c]
test eax, 0x20000000
je 0x41db2a
or edx, 4
mov dword [esi + 0x6c], edx
test byte [esp + 0x34], 1
je 0x41db3b
or dword [esi + 0x68], 0x400
mov edx, dword [esi + 0x6c]
mov ecx, edx
mov edi, edx
shr ecx, 5
test cl, 1
je 0x41db51
test al, 0x20
je 0x41db51
or edi, 0x40
mov dword [esi + 0x6c], edi
mov dl, bl
test eax, 0x10000
je 0x41dbd4
mov ecx, dword [esp + 0x14]
and ecx, 0x76
cmp cl, 0x76
jne 0x41dbd4
or edi, 0x80000
mov dword [esi + 0x6c], edi
test eax, 0x20000
je 0x41db7f
or edi, 0x800000
mov dword [esi + 0x6c], edi
test eax, 0x4000000
je 0x41db8f
or edi, 0x200000
mov dword [esi + 0x6c], edi
test eax, 0x8000000
je 0x41db9f
or edi, 0x400000
mov dword [esi + 0x6c], edi
test eax, 0x10000000
je 0x41dbaf
or edi, 0x100000
mov dword [esi + 0x6c], edi
test eax, 0x40000000
je 0x41dbbf
or edi, 0x1000000
mov dword [esi + 0x6c], edi
mov dl, bl
test eax, eax
jns 0x41dbd4
or edi, 0x2000000
mov dword [esi + 0x6c], edi
jmp 0x41dbd4
mov dl, byte [esp + 0x13]
cmp dword [esp + 0x18], 0xd
jb 0x41dc11
test dl, dl
je 0x41dc11
mov eax, 0xd
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
and eax, dword [esp + 0x2c]
and eax, 0x18
cmp al, 0x18
jne 0x41dc11
or dword [esi + 0x6c], 0x10000
mov eax, 0x80000000
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
lea ecx, [esi + 0x14]
mov dword [ebx + 0xc], edx
mov ebx, 0x80000004
mov eax, dword [esp + 0x2c]
mov edx, 0x80000001
cmp eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
cmovb ebx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
cmp ebx, edx
jb 0x41dd5f
nop dword [eax + eax]
mov eax, edx
xor ecx, ecx
push ebx
cpuid
mov edi, ebx
pop ebx
lea ebx, [esp + 0x2c]
mov dword [ebx], eax
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x14]
cmp edx, 0x80000001
je 0x41dcbf
lea eax, [edx + 0x7ffffffe]
cmp eax, 2
ja 0x41dd4c
mov ecx, dword [esp + 0x18]
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 + 0x18], ecx
jmp 0x41dd4c
mov eax, dword [esp + 0x34]
test al, 1
je 0x41dcce
or dword [esi + 0x68], 0x800
test al, 0x20
je 0x41dcd9
or dword [esi + 0x68], 0x20000000
test al, 0x40
je 0x41dce4
or dword [esi + 0x68], 0x400000
test al, al
jns 0x41dcef
or dword [esi + 0x68], 0x2000000
test eax, 0x100
je 0x41dcfd
or dword [esi + 0x68], 0x200
mov eax, dword [esp + 0x38]
test eax, 0x100000
je 0x41dd0c
or dword [esi + 0x68], 1
test eax, 0x200000
je 0x41dd1a
or dword [esi + 0x68], 0x2000
test eax, 0x400000
je 0x41dd28
or dword [esi + 0x68], 0x8000
test eax, 0x8000000
je 0x41dd33
or dword [esi + 0x68], 8
test eax, 0x40000000
je 0x41dd41
or dword [esi + 0x68], 0x28000
test eax, eax
jns 0x41dd4c
or dword [esi + 0x68], 0x10000
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x1c]
jbe 0x41dc60
mov ecx, dword [esp + 0x20]
mov al, byte [ecx]
xor ah, ah
mov byte [ecx], ah
mov edx, ecx
test al, al
je 0x41dd95
nop dword [eax + eax]
cmp al, 0x20
jne 0x41dd85
cmp ah, 0x40
je 0x41dd8a
mov bl, byte [ecx + 1]
cmp bl, al
je 0x41dd8a
cmp bl, 0x40
je 0x41dd8a
mov byte [edx], al
mov ah, al
inc edx
mov al, byte [ecx + 1]
inc ecx
mov byte [ecx], 0
test al, al
jne 0x41dd70
pop edi
pop esi
mov byte [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret