Function at 0x403ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42029b
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x427040]
xor eax, esp
mov dword [esp + 0x63c], eax
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x650]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040af80
lea ecx, [esp + 0x20]
push ecx
xor ebx, ebx
mov dword [esp + 0x65c], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x2c], ebx
call edi
cmp eax, ebx
jne 0x403faa
push 0x2c
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea esi, [esp + 0x234]
mov dword [esp + 0x2c], 0x80000002
call fcn.004053a0
lea edx, [esp + 0x1c]
push edx
call fcn.0040d250
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x228], al
mov eax, dword [esp + 0x20]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call edi
cmp eax, ebx
je 0x403fd2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x244], 8
jb 0x403fcb
mov edx, dword [esp + 0x230]
push edx
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x4041fc
push 0x1fe
lea eax, [esp + 0x452]
push ebx
push eax
mov word [esp + 0x458], bx
call fcn.00413e90
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x450]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.ProductName
push ecx
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
je 0x40402e
push eax
call edi
jmp 0x404035
cmp dword [esp + 0x14], 1
je 0x404095
cmp byte [esp + 0x228], bl
je 0x404057
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp eax, ebx
je 0x404057
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0x20]
push edx
call esi
cmp eax, ebx
je 0x404070
push eax
call edi
cmp dword [esp + 0x244], 8
jb 0x403fcb
mov eax, dword [esp + 0x230]
push eax
call fcn.004127aa
add esp, 4
xor al, al
jmp 0x4041fc
cmp byte [esp + 0x228], bl
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
je 0x4040bd
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp eax, ebx
je 0x4040bd
push eax
call edi
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x20]
push ecx
call esi
cmp eax, ebx
je 0x4040d6
push eax
call edi
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x404105
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xff
lea eax, [esp + 0x251]
push ebx
push eax
mov byte [esp + 0x258], bl
call fcn.00413e90
add esp, 0xc
push 0xff
lea ecx, [esp + 0x351]
push ebx
push ecx
mov byte [esp + 0x358], bl
call fcn.00413e90
lea eax, [esp + 0x458]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404150
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x450]
push edx
lea eax, [esp + 0x254]
push eax
call fcn.004130d1
add esp, 0xc
cmp dword [esp + 0x10], ebx
lea edi, [esp + 0x34c]
je 0x404194
lea ecx, [esp + 0x24c]
push ecx
push str._s_x64
jmp 0x4041a1
lea edx, [esp + 0x24c]
push edx
push str._s_x86
mov ecx, 0x100
call fcn.00401ee0
add esp, 8
push 0x80
push ebx
push 0x4290a0
call fcn.00413e90
add esp, 0xc
lea eax, [esp + 0x34c]
push eax
push 0x422d94
mov ecx, 0x80
mov edi, 0x4290a0
call fcn.00401ee0
add esp, 8
cmp dword [esp + 0x244], 8
jb 0x4041fa
mov ecx, dword [esp + 0x230]
push ecx
call fcn.004127aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x650]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x63c]
xor ecx, esp
call fcn.0041288d
add esp, 0x64c
ret