Function at 0x10004b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b46d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1002b580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
push 0x518
mov dword [ebp - 0x1c], 0x518
call fcn.1000d555
add esp, 4
xor esi, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x10004c3b
push 0xc
call fcn.1000ddd1
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x10004bb3
mov dword [esi + 4], ebx
mov ebx, 1
push str.SoftwareAppDataLow_
mov dword [esi + 8], ebx
call fcn.10017870
mov dword [esi], eax
jmp 0x10004bb8
xor esi, esi
lea ebx, [esi + 1]
mov edi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x10004bd2
push 0x8007000e
call fcn.10017850
mov eax, dword [ebp - 0x20]
add eax, 0xc
push eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
call fcn.100029c0
mov esi, dword [eax]
mov ebx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], ebx
test esi, esi
je 0x10004c16
cmp dword [esi + 4], 0
jne 0x10004c11
mov edx, dword [esi]
push edx
call fcn.100179f0
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x10004c18
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10004c3e
mov byte [ebp - 0xd], 1
jmp 0x10004c42
mov edi, dword [ebp - 0x18]
mov byte [ebp - 0xd], 0
test bl, 2
je 0x10004c95
mov eax, dword [ebp - 0x28]
and ebx, 0xfffffffd
test eax, eax
je 0x10004c95
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10004c8b
test edi, edi
je 0x10004c8b
mov eax, dword [edi]
test eax, eax
je 0x10004c72
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x10004c82
push eax
call fcn.1000d6ec
add esp, 4
push edi
call fcn.1000d6ec
add esp, 4
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x10004cd9
test edi, edi
je 0x10004cd9
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10004cd9
mov eax, dword [edi]
test eax, eax
je 0x10004cc0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x10004cd0
push eax
call fcn.1000d6ec
add esp, 4
push edi
call fcn.1000d6ec
add esp, 4
cmp byte [ebp - 0xd], 0
mov edi, dword [ebp - 0x2c]
je 0x10004d37
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push edx
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.data
push ecx
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x10004d26
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push edi
push edx
add ecx, 0x34
call fcn.10001fd0
mov eax, dword [ebp - 0x1c]
push eax
push edi
call fcn.10001ed0
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
test esi, esi
je 0x10004d4c
mov ecx, dword [ebp - 0x20]
push 0
push 0
add ecx, 0x34
call fcn.10001fd0
xor esi, esi
push edi
call fcn.1000e37f
add esp, 4
test esi, esi
jle 0x10004d65
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret