Function at 0x5bc7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7371c5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
push 0x7652d2
lea ecx, [ebp - 0x18]
call fcn.00577f20
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp + 0xc]
call fcn.005785c0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x18]
or ecx, 0x20019
push ecx
push 0
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bc9d0
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x5bc920
cmp dword [ebp - 0x20], 1
jne 0x5bc91b
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00577170
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x5bc8eb
mov dword [ebp - 0x30], 0
jmp 0x5bc8fa
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.005772d0
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.005c2f70
mov dword [ebp - 0x34], 1
jmp 0x5bc9d0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0x400
mov edx, dword [ebp - 0x28]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0x7652f0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + eax + 0x28]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0x765304
push 0x765318
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalSize]
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0059a670
add esp, 0x18
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x765334
push str.CAutoUpdateCommonFunctions::GetRegistryValue
push 0xa3
push 0x765398
push 4
push 0
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x24
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], 0
je 0x5bc9e0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.00577240
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
sub ecx, 0x10
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00577240
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14