Function at 0x5ba480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
xor edx, edx
push 0x20019
push edx
lea ecx, [ebx + 0xd0]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x2c], 0x32
mov dword [ebx + 0x84], edx
call esi
test eax, eax
jne 0x5ba765
lea edx, [esp + 0x1c]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x2c]
push str.License
push eax
call esi
test eax, eax
jne 0x5ba75a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x284]
push edx
push 0
push eax
call edi
cmp eax, 0x103
je 0x5ba74f
mov ecx, dword [esp + 0x14]
inc ecx
push 3
mov dword [esp + 0x18], ecx
push 0x5f7084
lea ecx, [esp + 0x278]
push ecx
call fcn.00462850
test eax, eax
je 0x5ba58f
push 1
push 0x5d49c0
lea edx, [esp + 0x278]
push edx
call fcn.00462850
test eax, eax
jne 0x5ba70a
push 1
push 0x5d49c0
lea eax, [esp + 0x38]
push eax
call fcn.00462850
test eax, eax
je 0x5ba70a
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.005b9ff0
mov esi, eax
cmp esi, 0x8004e12d
je 0x5ba70a
mov ecx, dword [ebp + 0x10]
cmp dword [esp + 0x28], ecx
jne 0x5ba70a
mov ecx, dword [ebx + 0x84]
inc ecx
cmp esi, 0x4e12e
mov dword [ebx + 0x84], ecx
je 0x5ba797
cmp esi, 0x4e131
je 0x5ba797
cmp esi, 0x4e12d
je 0x5ba797
push 0
push 0
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.005b9ff0
test eax, eax
jl 0x5ba6bf
test esi, esi
jl 0x5ba6d6
cmp esi, 0x4e130
jne 0x5ba661
cmp eax, esi
jne 0x5ba661
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x24]
jle 0x5ba70a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
push ecx
jmp 0x5ba702
cmp eax, 0x4e12f
jne 0x5ba675
cmp esi, 0x4e130
jne 0x5ba6b3
jmp 0x5ba6f8
cmp eax, 0x4e138
jne 0x5ba690
cmp esi, 0x4e130
jne 0x5ba6b3
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x6c]
push edx
jmp 0x5ba702
cmp eax, 0x4e139
jne 0x5ba6b3
cmp esi, 0x4e130
jne 0x5ba6ab
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
push ecx
jmp 0x5ba702
cmp esi, 0x4e12f
je 0x5ba6f8
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x24]
jle 0x5ba70a
jmp 0x5ba6f8
test esi, esi
jl 0x5ba6d6
cmp eax, 0x8004e12d
je 0x5ba6d6
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x6c]
push edx
jmp 0x5ba702
cmp esi, 0x8004e135
jne 0x5ba6f1
cmp eax, 0x8004e151
jne 0x5ba6f1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
push ecx
jmp 0x5ba702
cmp eax, 0x8004e12d
jne 0x5ba70a
lea edx, [esp + 0x30]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.005c43d6
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x284]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x38], 0x32
call edi
cmp eax, 0x103
jne 0x5ba552
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x68]
push 0x5f7394
push eax
call fcn.005c44fa
add esp, 8
test eax, eax
je 0x5ba7ab
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x68]
push ecx
push edx
call fcn.005c43d6
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.005c43d6
add esp, 8
jmp 0x5ba765
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0xc