Function at 0x5536ac
Capabilities:
Access peb ldr_data
Check os version
Get kernel32 base address
Get system information on windows
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x180
mov esi, esp
mov dword [esi + 0x168], ebp
call 0x5536c8
pop eax
mov dword [esi + 0xa0], ecx
mov dword [esi + 0x40], eax
lea eax, [esi + 0x170]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5870a0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 6
pop edx
mov ecx, 0x64f8b4
push 0xe
push str.RtlGetVersion
call fcn.005540d6
pop ecx
pop ecx
test eax, eax
mov dword [esi + 0xc], 0x80000000
mov dword [esi + 0x14], 0
je 0x553749
mov edi, edx
lea ebx, [esi + 0xc4]
push 0x98
push 0
push ebx
call fcn.0058a690
add esp, 0xc
lea eax, [esi + 0xc0]
mov dword [ebx - 4], 0x9c
push eax
call edi
test eax, eax
je 0x553750
xor eax, eax
jmp 0x553c7e
mov edi, dword [esi + 0xc4]
mov ecx, dword [esi + 0xc8]
mov edx, dword [esi + 0xcc]
movzx eax, word [esi + 0x158]
and dword [esi + 0x7c], 0
and dword [esi + 0x178], 0
mov dword [esi + 0x78], edi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x80], ecx
mov cl, byte [esi + 0x15a]
and dword [esi + 0x84], 0
and dword [esi + 0x8c], 0
mov dword [esi + 0x88], edx
mov dword [esi + 8], edx
mov word [esi + 0x2e], ax
mov dword [esi + 0xc], edi
mov dword [esi + 0x70], 1
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProductNameEditionIDWindows_11
mov byte [esi + 4], cl
lea ecx, [esi + 0xa8]
push 0x2c
call fcn.00554202
pop eax
lea eax, [esi + 0x24]
mov ecx, dword [esi + 0xac]
mov dword [esi + 0x178], 2
and dword [eax], 0
push eax
push 0x20019
push 0
mov dword [esi + 0x14], ecx
push ecx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5539b6
cmp dword [esi + 0x24], 0
je 0x5539b6
cmp dword [esi + 0xc], 0xa
mov edx, 0x64f8f4
sete al
cmp dword [esi + 8], 0x55f0
setae cl
and cl, al
mov eax, 0x64f8ff
cmovne edx, eax
mov eax, ecx
mov byte [esi + 0x10], cl
lea ecx, [esi + 0xb4]
xor al, 1
movzx eax, al
lea eax, [eax + eax + 9]
push eax
call fcn.00554202
pop eax
lea eax, [esi + 0xa4]
lea edi, [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0xb8]
mov dword [esi + 0x178], 3
and dword [eax], 0
and dword [edi], 0
push edi
push 0
push eax
push 0
mov dword [esi + 0x1c], edx
push edx
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x5539fb
cmp dword [esi + 0xa4], 1
jne 0x5539fb
mov edx, dword [esi + 0x28]
test edx, edx
je 0x5539fb
mov eax, edx
and eax, 1
jne 0x5539fb
shr edx, 1
lea ecx, [esi + 0x94]
call fcn.005731ee
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x98]
lea edx, [esi + 0x28]
mov dword [esi + 0x178], 4
push edx
mov dword [esi + 0x18], ecx
push ecx
push 0
push 0
push dword [esi + 0x1c]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x553a3c
mov ecx, dword [esi + 0x9c]
lea eax, [ecx + ecx]
cmp dword [esi + 0x28], eax
jne 0x553a3c
mov edx, ecx
xor eax, eax
sub edx, 1
jb 0x553906
mov eax, dword [esi + 0x18]
cmp word [eax + edx*2], 0
mov eax, ecx
jne 0x553906
mov eax, edx
mov dword [esi + 0x9c], edx
mov edx, dword [esi + 0x18]
lea ecx, [esi + 0xc0]
push eax
call fcn.004dbf00
pop eax
mov edx, dword [esi + 0xc4]
mov eax, dword [esi + 0xc8]
mov dword [esi + 0x178], 6
lea ecx, [esi + 0x30]
mov dword [esi + 0x3c], edx
push eax
call fcn.004f1540
pop eax
lea ecx, [esi + 0x44]
lea edx, [esi + 0x30]
call fcn.004f7380
mov ecx, dword [esi + 0xc0]
mov edx, dword [esi + 0x3c]
call fcn.0041b0e1
cmp byte [esi + 0x10], 0
je 0x553eae
lea eax, [esi + 0x44]
lea edx, [esi + 0xc0]
lea ecx, [esi + 0x30]
mov dword [esi + 0x178], 5
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [edx], 0x64f914
mov dword [esi + 0x34], fcn.0041a314
inc eax
mov dword [edx + 4], eax
and dword [edx + 0x10], 0
mov dword [edx + 8], ecx
lea ecx, [esi + 0x50]
mov dword [edx + 0xc], eax
call fcn.00401eab
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov ebx, dword [esi + 0x50]
mov edi, dword [esi + 0x58]
mov dword [esi + 0x10], eax
call fcn.0041b0e1
jmp 0x553eba
mov eax, dword [0x673b84]
test eax, eax
je 0x553a58
lea ecx, [esi + 0xc0]
mov dword [ecx], str.RegOpenKeyExW_HKEY_LOCAL_MACHINE__...__failed
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_srcioimpls.rs
and dword [ecx + 0xc], 0
xor edx, edx
inc edx
push 0x226
push 0x64f89c
call fcn.00465135
pop eax
pop ecx
jmp 0x553a58
mov eax, dword [0x673b84]
test eax, eax
je 0x553a4a
lea ecx, [esi + 0xc0]
mov dword [ecx], str.RegQueryValueExW_failed
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_srcioimpls.rs
and dword [ecx + 0xc], 0
xor edx, edx
inc edx
push 0x242
push 0x64f89c
call fcn.00465135
pop eax
pop ecx
jmp 0x553a4a
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x18]
call fcn.00461f56
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0x1c]
call fcn.00461f56
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0x14]
call fcn.00461f56
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x20]
xor edx, edx
cmp ecx, 5
je 0x553aba
cmp ecx, 6
je 0x553b53
cmp ecx, 0xa
jne 0x553b7d
test eax, eax
jne 0x553c08
cmp byte [esi + 4], 1
jne 0x553c00
cmp dword [esi + 8], 0x55f0
mov eax, 0x64f97e
mov edx, str.Windows_10Windows_11Windows_Server_2016Windows_8.1Windows_Server_2012_R2Windows_8Windows_Server_2012Windows_7Windows_Server_2008_R2Windows_VistaWindows_Server_2008Windows_XPWindows_2000Windows_XP_Professional_x64_EditionWindows_Server_2003Windows_Home_ServerGetModuleHandleA___failed
mov dword [esi + 0x178], 1
cmovae edx, eax
jmp 0x553ba4
test eax, eax
je 0x553b82
cmp eax, 1
je 0x553b95
cmp eax, 2
jne 0x553b7d
mov dword [esi + 0x178], 1
push 0x59
call dword [sym.imp.user32.dll_GetSystemMetrics]
test eax, eax
lea ecx, [esi + 0xc0]
mov edx, 0
jne 0x553c08
and dword [esi + 0xe0], 0
xorps xmm0, xmm0
movaps xmmword [esi + 0xd0], xmm0
movaps xmmword [esi + 0xc0], xmm0
push ecx
call sub.kernel32.dll_GetSystemInfo
cmp word [esi + 0x2e], 0
js 0x553f04
cmp byte [esi + 4], 1
mov edi, 0x64fa2d
mov edx, 0x64fa50
sete al
cmp word [esi + 0xc0], 9
sete cl
and cl, al
movzx eax, cl
shl eax, 4
add eax, 0x13
test cl, cl
cmovne edx, edi
jmp 0x553c08
cmp eax, 3
ja 0x553b7d
mov eax, dword [eax*4 + 0x554058]
add eax, dword [esi + 0x40]
jmp eax
jmp 0x553c08
mov edx, 0x64fa21
mov dword [esi + 0x178], 1
push 0xc
jmp 0x553c07
mov edx, 0x64fa17
mov dword [esi + 0x178], 1
push 0xa
jmp 0x553c07
mov edx, 0x64f988
push 0x13
pop eax
mov dword [esi + 0x178], 1
lea ecx, [esi + 0x50]
push eax
call fcn.0055433f
pop eax
mov edx, dword [esi + 0x10]
mov ecx, 0x80000000
call fcn.0041e52f
mov eax, dword [esi + 0x50]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x8c]
movsd xmm0, qword [esi + 0x84]
movsd xmm1, qword [esi + 0x7c]
mov dword [esi + 0x178], 7
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0x54]
movsd qword [esi + 0xd0], xmm0
movsd xmm0, qword [esi + 0x74]
movsd qword [esi + 0xc8], xmm1
mov dword [esi + 4], eax
mov eax, dword [esi + 0x58]
movsd qword [esi + 0xc0], xmm0
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
lea edx, [esi + 0xc0]
mov dword [esi + 0x50], eax
mov byte [esi + 3], 1
mov dword [esi + 0x178], 7
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov ecx, dword [edx + 0x18]
and dword [edx + 0x20], 0
movsd qword [esi + 0x54], xmm0
movsd xmm0, qword [edx + 0x10]
movsd qword [esi + 0x5c], xmm1
mov dword [esi + 0x6c], ecx
movsd qword [esi + 0x64], xmm0
xorps xmm0, xmm0
movaps xmmword [edx + 0x10], xmm0
movaps xmmword [edx], xmm0
push edx
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
movsd xmm1, qword [esi + 0x60]
movzx eax, word [esi + 0xc0]
movsd xmm0, qword [esi + 0x68]
movsd xmm2, qword [esi + 0x50]
mov dword [esi + 0x178], 8
movsd qword [esi + 0x80], xmm1
movsd xmm1, qword [esi + 0x58]
mov dword [esi + 0x20], eax
movsd qword [esi + 0x88], xmm0
movsd qword [esi + 0x70], xmm2
movsd qword [esi + 0x78], xmm1
push 9
pop edx
mov ecx, 0x64f84b
push 0xf
push str.IsWow64Process
call fcn.005540d6
pop ecx
pop edi
mov ecx, edx
xor edx, edx
test eax, eax
je 0x553d54
and dword [esi + 0x30], 0
mov dword [esi + 8], ecx
call sub.kernel32.dll_GetCurrentProcess
mov edx, dword [esi + 8]
lea ecx, [esi + 0x30]
push ecx
push eax
call edx
test eax, eax
je 0x553d5d
cmp dword [esi + 0x30], 1
mov al, 2
sbb al, 0
mov dword [esi + 8], eax
jmp 0x553da3
mov dword [esi + 8], 0
jmp 0x553da5
mov eax, dword [0x673b84]
test eax, eax
je 0x553d9c
lea ecx, [esi + 0xc0]
mov dword [ecx], str.IsWow64Process_failedc
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_srcioimpls.rs
and dword [ecx + 0xc], 0
xor edx, edx
inc edx
push 0x1ff
push 0x64f89c
call fcn.00465135
pop eax
pop ecx
mov dword [esi + 8], 0
xor edx, edx
mov ecx, dword [esi + 0x20]
lea eax, [ecx - 5]
cmp eax, 7
ja 0x553dc8
mov ecx, dword [esi + 0x40]
add ecx, dword [eax*4 + 0x554068]
push 6
pop eax
jmp ecx
test ecx, ecx
jne 0x553deb
mov edx, 0x64eccc
jmp 0x553de8
push 4
pop eax
lea ecx, [esi + 0x30]
push eax
call fcn.0055433f
pop eax
mov edx, dword [esi + 0xa0]
movsd xmm0, qword [esi + 0x70]
lea ecx, [esi + 0xc0]
mov eax, 0x80000000
movsd xmm1, qword [esi + 0x78]
mov edi, dword [esi + 0x38]
and dword [ecx], 0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x2c], eax
mov word [ecx + 0x44], 0x2900
mov dword [ecx + 0x38], eax
mov eax, dword [esi + 0xc]
mov byte [edx + 0x45], 0x2a
movsd qword [edx], xmm0
movsd xmm0, qword [esi + 0x80]
movsd qword [edx + 8], xmm1
movsd qword [edx + 0x10], xmm0
movsd xmm0, qword [esi + 0x88]
movsd qword [edx + 0x18], xmm0
mov dword [edx + 0x20], eax
mov eax, dword [esi + 4]
movsd xmm0, qword [ecx + 0x2c]
mov dword [edx + 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [edx + 0x28], eax
mov eax, dword [ecx + 0x34]
movsd qword [edx + 0x2c], xmm0
movsd xmm0, qword [esi + 0x30]
mov dword [edx + 0x34], eax
mov eax, dword [esi + 8]
mov byte [edx + 0x44], al
mov dword [edx + 0x40], edi
movsd qword [edx + 0x38], xmm0
call fcn.005540b3
mov ecx, 0x80000000
call fcn.0041e52f
mov ecx, 0x80000000
call fcn.0041e52f
mov eax, dword [esi + 0x170]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x48]
mov ebx, dword [esi + 0x44]
mov edi, dword [esi + 0x4c]
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x18]
call fcn.00461f56
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0x1c]
call fcn.00461f56
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0x14]
call fcn.00461f56
cmp ebx, 0x80000000
je 0x553a66
mov eax, dword [esi + 0x10]
mov dword [esi + 0x50], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
jmp 0x553c2f
mov edx, 0x64fa63
jmp 0x553c05