Function at 0x45de60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562c58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov dword [ebp + 8], esi
mov edx, dword [eax]
mov eax, dword [ecx]
lea ecx, [ebp + 8]
push ecx
push 0x20019
push esi
push edx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x45dec5
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
sete al
test eax, eax
jne 0x45dee5
push 0x5afaa8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x80004005
push eax
call fcn.00532408
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
xor edi, edi
lea eax, [ebp - 0x10]
push edi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x45df23
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x45df1c
cmp eax, 2
je 0x45df1c
lea ecx, [edi + 0xd]
jmp 0x45df23
mov edi, dword [ebp + 8]
shr edi, 1
xor ecx, ecx
xor eax, eax
test ecx, ecx
sete al
test eax, eax
jne 0x45df64
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45df47
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
jns 0x45df72
push 0x80070057
call fcn.004027b0
mov ebx, dword [ebp + 0x10]
mov ecx, 1
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x45df90
push edi
mov ecx, ebx
call fcn.00402590
mov edx, dword [ebx]
mov dword [ebp - 0x14], edx
cmp edi, dword [edx - 8]
jg 0x45df68
mov dword [edx - 0xc], edi
lea ecx, [edi + edi]
mov eax, dword [ebx]
xor edi, edi
mov word [ecx + eax], di
lea eax, [ebp + 8]
push eax
push edx
lea eax, [ebp + 0x10]
mov dword [ebp + 8], ecx
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x45e002
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x45dfd9
cmp eax, 2
je 0x45dfd9
lea ecx, [edi + 0xd]
jmp 0x45e002
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x45e000
mov eax, dword [ebp + 8]
test eax, eax
je 0x45dffb
test al, 1
jne 0x45dff4
shr eax, 1
cmp word [ecx + eax*2 - 2], di
je 0x45e000
mov ecx, 0xd
jmp 0x45e002
xor eax, eax
mov word [ecx], ax
xor ecx, ecx
xor eax, eax
test ecx, ecx
sete al
test eax, eax
jne 0x45e02a
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45e022
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
jmp 0x45df4e
mov eax, dword [ebx]
test eax, eax
jne 0x45e034
xor ecx, ecx
jmp 0x45e04a
push dword [eax - 8]
push eax
call fcn.00529878
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x45df68
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x45df68
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45e075
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc