Function at 0x437620
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.004cebf0
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, 0x536350
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 0x4376db
mov edx, dword [esi + 8]
inc ecx
add edi, 0x10
mov dword [esp + 0x14], ecx
cmp ecx, 4
mov ecx, dword [esi + 0xc]
jb 0x4376a6
jmp 0x4376e7
shl ecx, 4
mov eax, dword [ecx + 0x536348]
mov dword [esi + 0x54], eax
cmp dword [esp + 0x18], 1
jb 0x43793a
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 0x437751
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 0x437790
or dword [esi + 0x68], 0x100000
test al, 2
je 0x43779b
or dword [esi + 0x68], 0x80000000
test al, 8
je 0x4377a6
or dword [esi + 0x68], 0x4000000
test eax, 0x200
je 0x4377b4
or dword [esi + 0x68], 0x200000
test eax, 0x2000
je 0x4377bf
or dword [esi + 0x68], 0x40
test eax, 0x80000
je 0x4377cd
or dword [esi + 0x68], 0x800000
test eax, 0x100000
je 0x4377db
or dword [esi + 0x68], 0x1000000
test eax, 0x400000
je 0x4377e9
or dword [esi + 0x68], 0x8000000
test eax, 0x800000
je 0x4377f7
or dword [esi + 0x68], 0x10000000
test eax, 0x2000000
je 0x437805
or dword [esi + 0x68], 0x40000000
test eax, 0x4000000
je 0x437810
or dword [esi + 0x6c], 8
test eax, 0x8000000
je 0x43781b
or dword [esi + 0x6c], 0x10
test eax, 0x40000000
je 0x437826
or dword [esi + 0x6c], 1
mov ecx, dword [esp + 0x38]
test cl, 0x10
je 0x437833
or dword [esi + 0x68], 4
test ecx, 0x100
je 0x43783f
or dword [esi + 0x68], 0x20
test ecx, 0x8000
je 0x43784b
or dword [esi + 0x68], 0x10
test ecx, 0x80000
je 0x43785a
or dword [esi + 0x68], 0x80
test ecx, 0x800000
je 0x437869
or dword [esi + 0x68], 0x4000
test ecx, 0x1000000
je 0x437878
or dword [esi + 0x68], 0x1000
test ecx, 0x2000000
je 0x437887
or dword [esi + 0x68], 0x48000
test ecx, 0x4000000
je 0x437896
or dword [esi + 0x68], 0xc0000
and ecx, 0x10000000
je 0x4378a2
or dword [esi + 0x68], 2
cmp dword [esi + 0x64], 1
jne 0x4378b9
cmp dword [esi + 0x54], 2
jne 0x4378b9
test ecx, ecx
je 0x4378b9
mov dword [esi + 0x64], 2
mov ecx, eax
and ecx, 0xc000000
cmp ecx, 0xc000000
jne 0x4378d6
xor ecx, ecx
xgetbv
mov ebx, eax
mov eax, dword [esp + 0x34]
jmp 0x4378da
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
test eax, 0x10000000
je 0x437942
mov ecx, ebx
and ecx, 6
cmp cl, 6
jne 0x437942
mov ecx, dword [esi + 0x6c]
or ecx, 0x20
mov dword [esi + 0x6c], ecx
test eax, 0x800
je 0x437908
or ecx, 0x400
mov dword [esi + 0x6c], ecx
test eax, 0x4000
je 0x437918
or ecx, 0x100
mov dword [esi + 0x6c], ecx
test eax, 0x10000
je 0x437928
or ecx, 0x200
mov dword [esi + 0x6c], ecx
test eax, 0x20000000
je 0x437942
or ecx, 0x80
mov dword [esi + 0x6c], ecx
jmp 0x437942
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], 7
jb 0x437abe
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 ecx, dword [esi + 0x6c]
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x30]
test al, 1
je 0x43797d
or ecx, 0x20000
mov dword [esi + 0x6c], ecx
mov edx, ecx
test al, 8
je 0x43798e
or edx, 0x800
mov dword [esi + 0x6c], edx
mov ecx, edx
test al, 0x10
je 0x43799d
or edx, 0x2000
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x100
je 0x4379af
or edx, 0x1000
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x200
je 0x4379c1
or edx, 0x40000
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x800
je 0x4379d3
or edx, 0x4000
mov dword [esi + 0x6c], edx
mov ecx, edx
mov ebx, eax
shr ebx, 0xe
and bl, 1
test eax, 0x40000
je 0x4379ea
or edx, 2
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x80000
je 0x4379fc
or edx, 0x8000
mov dword [esi + 0x6c], edx
mov ecx, edx
test eax, 0x800000
je 0x437a0c
or dword [esi + 0x68], 0x100
mov edx, ecx
test eax, 0x20000000
je 0x437a1b
or edx, 4
mov dword [esi + 0x6c], edx
mov ecx, edx
test byte [esp + 0x34], 1
je 0x437a2b
or dword [esi + 0x68], 0x400
mov edx, ecx
mov ecx, edx
mov edi, edx
shr ecx, 5
test cl, 1
je 0x437a41
test al, 0x20
je 0x437a41
or edi, 0x40
mov dword [esi + 0x6c], edi
mov dl, bl
test eax, 0x10000
je 0x437ac2
mov ecx, dword [esp + 0x14]
and ecx, 0x76
cmp cl, 0x76
jne 0x437ac2
or edi, 0x80000
mov dword [esi + 0x6c], edi
test eax, 0x20000
je 0x437a6f
or edi, 0x800000
mov dword [esi + 0x6c], edi
test eax, 0x4000000
je 0x437a7f
or edi, 0x200000
mov dword [esi + 0x6c], edi
test eax, 0x8000000
je 0x437a8f
or edi, 0x400000
mov dword [esi + 0x6c], edi
test eax, 0x10000000
je 0x437a9f
or edi, 0x100000
mov dword [esi + 0x6c], edi
test eax, 0x40000000
je 0x437aaf
or edi, 0x1000000
mov dword [esi + 0x6c], edi
test eax, eax
jns 0x437ac2
or edi, 0x2000000
mov dword [esi + 0x6c], edi
jmp 0x437ac2
mov dl, byte [esp + 0x13]
cmp dword [esp + 0x18], 0xd
jb 0x437aff
test dl, dl
je 0x437aff
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 0x437aff
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
lea eax, [esi + 0x14]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
cmp edx, 0x80000004
jae 0x437b46
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp edx, 0x80000001
jb 0x437c5b
jmp 0x437b52
mov dword [esp + 0x1c], 0x80000004
mov dword [esp + 0x18], eax
mov ecx, 0x80000001
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
mov eax, ecx
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 ecx, dword [esp + 0x14]
mov dword [ebx + 0xc], edx
lea eax, [ecx + 0x7fffffff]
cmp eax, 3
ja case.default.0x437b8c
jmp dword [eax*4 + 0x437c98]
mov eax, dword [esp + 0x34]
test al, 1
je 0x437ba2
or dword [esi + 0x68], 0x800
test al, 0x20
je 0x437bad
or dword [esi + 0x68], 0x20000000
test al, 0x40
je 0x437bb8
or dword [esi + 0x68], 0x400000
test al, al
jns 0x437bc3
or dword [esi + 0x68], 0x2000000
test eax, 0x100
je 0x437bd1
or dword [esi + 0x68], 0x200
mov eax, dword [esp + 0x38]
test eax, 0x100000
je 0x437be0
or dword [esi + 0x68], 1
test eax, 0x200000
je 0x437bee
or dword [esi + 0x68], 0x2000
test eax, 0x400000
je 0x437bfc
or dword [esi + 0x68], 0x8000
test eax, 0x8000000
je 0x437c07
or dword [esi + 0x68], 8
test eax, 0x40000000
je 0x437c15
or dword [esi + 0x68], 0x28000
test eax, eax
jns case.default.0x437b8c
or dword [esi + 0x68], 0x10000
jmp case.default.0x437b8c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 0xc], eax
add edx, 0x10
mov dword [esp + 0x18], edx
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x1c]
jbe 0x437b60
mov eax, dword [esp + 0x20]
mov cl, byte [eax]
xor ch, ch
mov byte [eax], ch
mov edx, eax
test cl, cl
je 0x437c8d
cmp cl, 0x20
jne 0x437c7d
cmp ch, 0x40
je 0x437c82
mov bl, byte [eax + 1]
cmp bl, cl
je 0x437c82
cmp bl, 0x40
je 0x437c82
mov byte [edx], cl
mov ch, cl
inc edx
mov cl, byte [eax + 1]
inc eax
mov byte [eax], 0
test cl, cl
jne 0x437c67
pop edi
pop esi
mov byte [edx], 0
pop ebx
mov esp, ebp
pop ebp
ret