Function at 0x5ad570
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x78b3e2
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x18], eax
call fcn.00402200
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xa8]
xor ebx, ebx
cmp ecx, ebx
je 0x5ad81f
add eax, 0x94
push eax
mov edi, str.SOFTWARE_
lea esi, [esp + 0x90]
call fcn.00403060
mov edi, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x4dc], ebx
call fcn.00439630
push eax
mov edi, 0x81d740
lea esi, [esp + 0x40]
mov byte [esp + 0x4e0], 1
call fcn.00402fb0
mov ecx, dword [esp + 0x1c]
push ecx
push eax
lea esi, [esp + 0x80]
mov byte [esp + 0x4e8], 2
call fcn.00402f10
add esp, 0x10
mov edi, eax
lea eax, [esp + 0xa8]
mov byte [esp + 0x4d8], 3
call fcn.00439630
mov edi, 0x10
cmp dword [esp + 0x88], edi
jb 0x5ad666
mov edx, dword [esp + 0x74]
push edx
call fcn.006441c7
add esp, 4
mov esi, 0xf
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
cmp dword [esp + 0x50], edi
jb 0x5ad690
mov eax, dword [esp + 0x3c]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x6c], edi
jb 0x5ad6af
mov ecx, dword [esp + 0x58]
push ecx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x4d8], 8
cmp dword [esp + 0xa4], edi
jb 0x5ad6dc
mov edx, dword [esp + 0x90]
push edx
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0xac]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
cmp dword [esp + 0xc0], edi
jae 0x5ad708
lea eax, [esp + 0xac]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ad806
mov eax, dword [esp + 0x10]
push 0x400
lea edx, [esp + 0xc8]
push edx
push ebx
push eax
xor esi, esi
call dword [sym.imp.advapi32.dll_RegEnumKeyA]
cmp eax, ebx
jne 0x5ad7de
jmp 0x5ad752
xor ebx, ebx
lea eax, [esp + 0xc4]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5ad770
sub eax, edx
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x24]
call fcn.004016e0
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x4dc], 9
call fcn.00402150
mov byte [esp + 0x4d8], 8
cmp dword [esp + 0x34], edi
jb 0x5ad7bc
mov eax, dword [esp + 0x20]
push eax
call fcn.006441c7
add esp, 4
mov edx, dword [esp + 0x10]
push 0x400
lea ecx, [esp + 0xc8]
push ecx
inc esi
push esi
push edx
call dword [sym.imp.advapi32.dll_RegEnumKeyA]
test eax, eax
je 0x5ad750
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [esp + 0xc0], edi
jb 0x5ad802
mov ecx, dword [esp + 0xac]
push ecx
call fcn.006441c7
add esp, 4
mov al, 1
jmp 0x5ad821
cmp dword [esp + 0xc0], edi
jb 0x5ad81f
mov edx, dword [esp + 0xac]
push edx
call fcn.006441c7
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret 8