Function at 0x424d90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x483a28
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x4c], 1
mov eax, dword [0x4a657c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x424e14
push str.GetNativeSystemInfo
push str.kernel32
call ebp
push eax
call edi
test eax, eax
je 0x424e0d
lea ecx, [esp + 0x20]
push ecx
call eax
mov ax, word [esp + 0x20]
cmp ax, 9
je 0x424e03
cmp ax, 6
jne 0x424e0d
mov dword [0x4a99d4], 1
xor eax, eax
mov dword [0x4a657c], eax
test esi, esi
je 0x424e41
cmp esi, 1
jne 0x424e2b
cmp dword [0x4a99d4], 0
je 0x424e41
jmp 0x424f5d
cmp esi, 2
jne 0x424f5d
cmp dword [0x4a99d4], 0
je 0x424f5d
mov dword [esp + 0x14], 0
test eax, eax
je 0x424e8c
push str.GetNativeSystemInfo
push str.kernel32
call ebp
push eax
call edi
test eax, eax
je 0x424e82
lea edx, [esp + 0x20]
push edx
call eax
mov ax, word [esp + 0x20]
cmp ax, 9
je 0x424e78
cmp ax, 6
jne 0x424e82
mov dword [0x4a99d4], 1
mov dword [0x4a657c], 0
cmp dword [0x4a99d4], 0
jne 0x424e97
xor ebx, ebx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x14]
push eax
or ebx, 0x20019
push ebx
push 0
push ecx
push edx
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
cmp eax, edi
jne 0x424f18
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x24]
push ecx
push edi
push edx
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x424f07
cmp dword [esp + 0x18], edi
jbe 0x424f07
mov ecx, dword [esp + 0x14]
mov eax, 1
push ecx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424f5d
mov ecx, dword [esp + 0x14]
xor eax, eax
push ecx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424f5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea esi, [esp + 0x1c]
call fcn.00414000
mov ecx, dword [esp + 0x64]
push eax
mov byte [esp + 0x50], 2
call fcn.00407570
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424f5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424f82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424faa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret