Function at 0x59f150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640e18
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6f8b74]
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.0059ef20
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 0x663ae1
call fcn.00446290
push 0x104
mov dword [ebp - 4], 0
call fcn.005b52a4
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x58]
push eax
push esi
mov dword [ebp - 0x6c], 0x104
call fcn.0059f3f0
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.0043ea30
push dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push ebx
push edi
call fcn.004457c0
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 0x59f240
mov ecx, dword [esi]
mov edi, dword [esi + 0x10]
add edi, ecx
cmp edx, 0x10
jb 0x59f24c
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.0043ea30
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
push edi
push esi
call fcn.00454780
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 0x59f2b9
lea eax, [ebp - 0x5c]
push eax
push 0x20219
push 0
push ebx
push dword [ebp - 0x64]
call edi
test eax, eax
jne 0x59f2ed
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 0x59f2f0
mov edx, ebx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x59f2d8
mov ecx, dword [ebp - 0x60]
sub edx, esi
push edx
push ebx
call fcn.00446290
jmp 0x59f2f0
mov ebx, dword [ebp - 0x68]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.005b52ad
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x59f33c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59f332
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59f3e6
push edx
push ecx
call fcn.005b5296
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 0x59f386
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59f37c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59f3e6
push edx
push ecx
call fcn.005b5296
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 0x59f3ca
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59f3c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59f3e6
push edx
push ecx
call fcn.005b5296
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.005b56fe
mov esp, ebp
pop ebp
ret
call fcn.005c116d
int3