Function at 0x4a35dc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a38f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
call fcn.004064c4
push eax
push 0x4a3908
push 1
push 0
mov eax, dword [0x4b1ec4]
push eax
call sub.ole32.dll_CoCreateInstance
mov edi, eax
mov eax, edi
call fcn.00419b08
test al, al
je 0x4a371b
lea eax, [ebp - 4]
call fcn.004064c4
push eax
push 0
push 0
mov eax, dword [0x4b2420]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.0047d0d8
jmp 0x4a36fb
test ebx, ebx
je 0x4a36e0
push 0x4a3920
lea edx, [ebp - 0x12c]
lea eax, [ebp - 0x28]
call fcn.0047d14c
push dword [ebp - 0x12c]
push 0x4a3930
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404c2c
lea eax, [ebp - 0x130]
push eax
mov ecx, 0x80000000
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0047d200
mov eax, dword [ebp - 0x130]
mov edx, 0x4a393c
call fcn.00404cb8
jne 0x4a36fb
lea edx, [ebp - 0x134]
lea eax, [ebp - 0x28]
call fcn.0047d1d4
mov edx, dword [ebp - 0x134]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4a3689
jmp 0x4a38b2
lea eax, [ebp - 0x14]
push eax
push 0x4a3940
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x4a38b2
xor eax, eax
push ebp
push 0x4a38ab
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
jmp 0x4a3876
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x144], eax
mov byte [ebp - 0x140], 6
lea edx, [ebp - 0x148]
mov eax, dword [0x4b2420]
call fcn.0047d14c
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
lea edx, [ebp - 0x144]
mov ecx, 1
mov eax, 0x4a3950
call fcn.00409df8
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404d6c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4a3830
test ebx, ebx
je 0x4a3830
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404ef8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404d6c
push eax
push 0
push 0
mov eax, ebx
call fcn.00404d6c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a3800
mov edx, dword [ebp - 0x10]
dec edx
lea eax, [ebp - 0x18]
call fcn.00404ef8
jmp 0x4a3808
lea eax, [ebp - 0x18]
call fcn.004048ac
lea eax, [ebp - 0x14c]
push eax
mov ecx, 0x80000000
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0047d200
mov eax, dword [ebp - 0x14c]
mov edx, 0x4a393c
call fcn.00404cb8
jne 0x4a3876
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x128]
mov ecx, pe_nt_image_headers32
call fcn.00404b1c
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x144]
call fcn.0047d0f0
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x150]
call fcn.0047d1d4
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc edi
push pe_nt_image_headers32
lea eax, [ebp - 0x128]
push eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
je 0x4a374b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a38b2
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a38ff
lea eax, [ebp - 0x154]
mov edx, 4
call fcn.004048d0
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.004048d0
lea eax, [ebp - 0x18]
call fcn.004048ac
lea eax, [ebp - 0xc]
call fcn.004064c4
lea eax, [ebp - 4]
call fcn.004064c4
ret