Function at 0x59a920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x695d98
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x780784]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x60], eax
call fcn.0059a6f0
add esp, 4
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0
push 0x6c3ff5
call fcn.004753c0
push 0x104
mov dword [ebp - 4], 0
call fcn.0060c9a0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x58]
push eax
push esi
mov dword [ebp - 0x6c], 0x104
call fcn.0059abc0
mov ebx, dword [ebp - 0x48]
lea edx, [ebp - 0x58]
add esp, 0xc
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x44], 0x10
lea edi, [ebp - 0x58]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
cmovae edx, dword [ebp - 0x58]
add ebx, edx
cmp dword [ebp - 0x44], 0x10
cmovae edi, dword [ebp - 0x58]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, ebx
sub eax, edi
push eax
call fcn.004717f0
push dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push ebx
push edi
call fcn.00473f70
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov ecx, esi
mov byte [ebp - 4], 1
cmovae ebx, dword [ebp - 0x40]
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x59aa10
mov ecx, dword [esi]
mov edi, dword [esi + 0x10]
add edi, ecx
cmp edx, 0x10
jb 0x59aa1c
mov esi, dword [esi]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov eax, edi
mov dword [ebp - 0x14], 7
sub eax, esi
push eax
call fcn.004717f0
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
push edi
push esi
call fcn.00473f70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x5c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x64]
mov byte [ebp - 4], 2
call edi
test eax, eax
je 0x59aa89
lea eax, [ebp - 0x5c]
push eax
push 0x20219
push 0
push ebx
push dword [ebp - 0x64]
call edi
test eax, eax
jne 0x59aabd
mov ebx, dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x59aac0
mov edx, ebx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x59aaa8
mov ecx, dword [ebp - 0x60]
sub edx, esi
push edx
push ebx
call fcn.004753c0
jmp 0x59aac0
mov ebx, dword [ebp - 0x68]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0060c9a9
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x59ab0c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59ab02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59abb6
push edx
push ecx
call fcn.0060c992
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x59ab56
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59ab4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59abb6
push edx
push ecx
call fcn.0060c992
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 0x10
jb 0x59ab9a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59ab90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59abb6
push edx
push ecx
call fcn.0060c992
add esp, 8
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.0060cdfa
mov esp, ebp
pop ebp
ret
call fcn.0061883f
int3