Function at 0x597350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63f640
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0x48]
push edx
push 0
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x4c]
push ecx
push 0
push edi
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov byte [ebp - 0x39], 0
test ebx, ebx
jne 0x597514
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x597561
push eax
call fcn.00419f69
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x5973df
xor al, al
jmp 0x597564
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x48]
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x5974b9
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
cmp eax, 4
jne 0x59744b
cmp ecx, 4
jne 0x597497
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x38]
push 0x6b63c0
push ecx
call fcn.00629264
mov ecx, dword [ebp - 0x44]
add esp, 0xc
lea edx, [ebp - 0x38]
push edx
call fcn.0053b5d0
mov ecx, dword [ebp - 0x40]
push ecx
mov byte [ebp - 0x39], 1
call fcn.00419f98
add esp, 4
jmp 0x597561
cmp eax, 1
jne 0x597471
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push eax
call fcn.0053b5d0
mov ecx, dword [ebp - 0x40]
push ecx
mov byte [ebp - 0x39], 1
call fcn.00419f98
add esp, 4
jmp 0x597561
cmp eax, 2
jne 0x597497
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.0053b5d0
mov ecx, dword [ebp - 0x40]
push ecx
mov byte [ebp - 0x39], 1
call fcn.00419f98
add esp, 4
jmp 0x597561
mov edx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
push edx
call fcn.0053d400
mov ecx, dword [ebp - 0x40]
push ecx
mov byte [ebp - 0x39], 1
call fcn.00419f98
add esp, 4
jmp 0x597561
lea ecx, [ebp - 0x38]
call fcn.0053ba20
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0053cec0
mov ebx, dword [esi]
lea ecx, [ebp - 0x38]
call fcn.00595640
push eax
mov eax, dword [ebx + 0x28]
push str.RegistryQueryError2
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push edi
push str.ValueName
mov ecx, esi
call eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0053bcf0
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00419f98
add esp, 4
jmp 0x597561
lea ecx, [ebp - 0x78]
call fcn.0053ba20
push ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 1
call fcn.0053cec0
mov ebx, dword [esi]
lea ecx, [ebp - 0x78]
call fcn.00595640
mov edx, dword [ebx + 0x28]
push eax
push str.RegistryQueryError
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push edi
push str.ValueName
mov ecx, esi
call edx
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.0053bcf0
mov al, byte [ebp - 0x39]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret