Function at 0x4227a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520709
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x562904]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x84c], ebx
cmp dword [edi + 0x2f4], ebx
jne 0x422960
call fcn.00402800
lea eax, [ebp - 0x880]
push eax
call fcn.00404030
mov esi, eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.004f3680
add esp, 0xc
mov dword [ebp - 0x84c], ebx
cmp dword [esi + 0x14], 8
jb 0x42281d
mov esi, dword [esi]
lea eax, [ebp - 0x84c]
push eax
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x422878
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0x800
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x84c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x84c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x858], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x854], 7
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4228a0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.004046e0
lea eax, [ebp - 0x868]
mov ebx, 0x10
push eax
lea ecx, [edi + 0x2e4]
call fcn.00406310
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x422919
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42290f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422ef6
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x86c]
cmp edx, 8
jb 0x422960
mov ecx, dword [ebp - 0x880]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422956
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422ef6
push edx
push ecx
call fcn.004f19ca
add esp, 8
cmp dword [edi + 0x2f8], 8
lea esi, [edi + 0x2e4]
mov eax, esi
jb 0x422973
mov eax, dword [esi]
push eax
push str.reg:_path_is__s
push 0xd8
push str.XZModel::_calcInstallPath
call fcn.00432000
add esp, 0x10
cmp dword [edi + 0x2f4], 0
je 0x422af8
push 8
xor eax, eax
mov dword [ebp - 0x868], 0
push str.ayer.exe
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 7
mov word [ebp - 0x868], ax
call fcn.004046e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x830]
push 4
xor eax, eax
mov dword [ebp - 0x830], 0
or ebx, 1
mov dword [ebp - 0x820], 0
push str.dnpl
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x81c], 7
mov word [ebp - 0x830], ax
call fcn.004046e0
lea eax, [ebp - 0x868]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x830]
or ebx, 2
push eax
push dword [ebp - 0x814]
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x84c], ebx
call fcn.00411b10
or ebx, 0x20
mov dword [ebp - 4], 3
lea eax, [ebp - 0x848]
mov edx, dword [esi + 0x10]
or ebx, 4
cmp dword [ebp - 0x834], 8
mov dword [ebp - 0x84c], ebx
cmovae eax, dword [ebp - 0x848]
mov ecx, eax
mov dword [ebp - 0x818], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x814], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422a84
sub ecx, dword [ebp - 0x814]
mov eax, bind
sar ecx, 1
sub eax, edx
cmp eax, ecx
jb 0x422efb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x422ab0
mov eax, dword [esi]
push ecx
push dword [ebp - 0x818]
push edx
push eax
push ecx
push dword [ebp - 0x814]
lea ecx, [ebp - 0x880]
call fcn.004072b0
or ebx, 0x40
lea eax, [ebp - 0x880]
mov dword [ebp - 4], 4
or ebx, 8
push eax
mov dword [ebp - 0x84c], ebx
call fcn.00437090
add esp, 4
mov byte [ebp - 0x84d], 1
test al, al
je 0x422aff
mov byte [ebp - 0x84d], 0
mov dword [ebp - 4], 3
test bl, 8
je 0x422b6b
mov edx, dword [ebp - 0x86c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x422b4e
mov ecx, dword [ebp - 0x880]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422b44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422f00
push edx
push ecx
call fcn.004f19ca
add esp, 8
xor eax, eax
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x86c], 7
mov word [ebp - 0x880], ax
mov dword [ebp - 4], 2
test bl, 4
je 0x422bba
mov edx, dword [ebp - 0x834]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x422bba
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422bb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422f00
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov dword [ebp - 4], 1
test bl, 2
je 0x422c09
mov edx, dword [ebp - 0x81c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x422c09
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422bff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422f00
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x422c55
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x422c55
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422c4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422f00
push edx
push ecx
call fcn.004f19ca
add esp, 8
cmp byte [ebp - 0x84d], 0
je 0x422c8e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x422c68
mov eax, dword [esi]
push eax
push str._s_is_not_exist
push 0xdc
push str.XZModel::_calcInstallPath
call fcn.00432000
add esp, 0x10
mov ecx, esi
push 0
push 0x549f8c
call fcn.004046e0
lea ecx, [edi + 0x2cc]
cmp ecx, esi
je 0x422cab
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x422ca2
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.004046e0
cmp dword [edi + 0x2f4], 0
jne 0x422dea
lea edx, [edi + 0x314]
lea ecx, [ebp - 0x830]
call fcn.0040c5c0
mov dword [ebp - 4], 5
call fcn.00402800
lea eax, [ebp - 0x848]
push eax
call fcn.00402a80
mov byte [ebp - 4], 6
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x422cef
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x830]
call fcn.00404840
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x834]
cmp edx, 8
jb 0x422d42
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422d38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422f05
push edx
push ecx
call fcn.004f19ca
add esp, 8
lea eax, [ebp - 0x830]
cmp esi, eax
je 0x422d68
cmp dword [ebp - 0x81c], 8
mov ecx, esi
push dword [ebp - 0x820]
cmovae eax, dword [ebp - 0x830]
push eax
call fcn.004046e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x422d72
mov eax, dword [esi]
push eax
push str.path_from_max_space:__s
push 0xfb
push str.XZModel::_calcInstallPath
call fcn.00432000
lea ecx, [edi + 0x2fc]
add esp, 0x10
cmp ecx, esi
je 0x422da7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x422d9e
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.004046e0
mov edx, dword [ebp - 0x81c]
cmp edx, 8
jb 0x422eda
mov ecx, dword [ebp - 0x830]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422ed0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422f0a
jmp 0x422ed0
mov eax, dword [esi + 0x10]
mov ecx, bind
sub ecx, eax
cmp ecx, 5
jb 0x422f0f
cmp dword [esi + 0x14], 8
jb 0x422e05
mov esi, dword [esi]
push 5
push str._vms_
push eax
push esi
push ecx
push dword [ebp - 0x814]
lea ecx, [ebp - 0x848]
call fcn.004072b0
lea eax, [ebp - 0x848]
mov dword [ebp - 4], 7
push eax
call fcn.00437090
add esp, 4
test al, al
je 0x422e41
mov byte [edi + 0x2c8], 1
lea edx, [edi + 0x314]
lea ecx, [ebp - 0x898]
call fcn.0040c5c0
push eax
lea ecx, [edi + 0x2fc]
call fcn.00406310
mov edx, dword [ebp - 0x884]
cmp edx, 8
jb 0x422e9e
mov ecx, dword [ebp - 0x898]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422e94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422f14
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov edx, dword [ebp - 0x834]
cmp edx, 8
jb 0x422eda
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422ed0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422f19
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1532
mov esp, ebp
pop ebp
ret
call fcn.004fbf0c
call fcn.004027e0
call fcn.004fbf0c
call fcn.004fbf0c
call fcn.004fbf0c
call fcn.004027e0
call fcn.004fbf0c
call fcn.004fbf0c
int3