Function at 0x434540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cbb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [0x59aa00]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
jne 0x43476d
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.004a10b0
mov edx, dword [0x5ba8ac]
mov ecx, dword [0x5baedc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x18]
neg edx
push eax
push 1
sbb edx, edx
push ebx
add edx, 0x80000002
push ecx
push edx
mov byte [ebp - 4], 1
call edi
mov esi, eax
cmp esi, ebx
je 0x434630
cmp esi, 2
je 0x43462c
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x5ba8ac]
mov byte [ebp - 4], 2
cmp eax, ebx
mov eax, str.CURRENT_USER
jne 0x4345d6
mov eax, str.MACHINE
mov ecx, dword [0x5baedc]
lea edx, [ebp - 0x14]
push ecx
push eax
push 0x5987d4
push edx
call fcn.0053091a
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
call fcn.004a1160
cmp eax, ebx
je 0x434620
mov eax, dword [0x5ba8ac]
mov edx, dword [0x5baedc]
lea ecx, [ebp - 0x18]
neg eax
push ecx
push 1
sbb eax, eax
push ebx
add eax, 0x80000002
push edx
push eax
call edi
mov esi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
cmp esi, ebx
jne 0x43466c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x140]
push ecx
push edx
push ebx
push ebx
push str.MData
push eax
mov dword [ebp - 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x434762
lea ecx, [ebp - 0x40]
call fcn.004a10b0
lea edx, [ebp - 0x18]
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push 0x80000001
call edi
mov esi, eax
cmp esi, ebx
je 0x4346f8
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x14], eax
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
lea ecx, [ebp - 0x14]
push str.CURRENT_USER_s
push ecx
mov byte [ebp - 4], 4
call fcn.0053091a
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x40]
push edx
call fcn.004a1160
cmp eax, ebx
je 0x4346e8
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push 0x80000001
call edi
mov esi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00537b04
cmp esi, ebx
jne 0x434756
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x140]
push ecx
push edx
push ebx
push ebx
push str.MData
push eax
mov dword [ebp - 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004a10f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004a10f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004a10f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004a10f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret