Function at 0x45044d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], ecx
push eax
push 0xf003f
xor esi, esi
push esi
push 0x417cf8
push 0x80000002
mov dword [ebp - 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jne 0x45048e
xor eax, eax
jmp 0x450733
push edi
call fcn.004503eb
mov edi, eax
cmp edi, 0xffffffff
jne 0x4504ab
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x450732
inc edi
push ebx
lea eax, [edi + edi]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
pop ecx
mov ebx, eax
mov dword [ebp - 0x70], edi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], ebx
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push esi
push 0x417d6c
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
push 0x40
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push esi
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x64], esi
mov edi, esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], edi
cmp word [ebx], si
je 0x4506fe
mov eax, dword [ebp - 0x58]
and eax, 1
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x50]
push eax
push 0x417d80
push ebx
call dword [sym.imp.MSVCR120.dll_swscanf_s]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + 1]
lea edi, [ebx + edi*2]
cmp word [ebp - 0x6c], si
je 0x45059d
push 0x417d88
push edi
call dword [sym.imp.MSVCR120.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x45059d
mov ebx, 0x47e6a0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x45054f
sub ecx, edx
sar ecx, 1
je 0x45056f
push 0x417d98
push 0x20
pop edx
mov ecx, ebx
call fcn.004433b9
push 0xa
push 0x21
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.MSVCR120.dll__itow_s]
add esp, 0x10
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
push 0x20
pop edx
call fcn.004433b9
mov dword [ebp - 0x64], 1
jmp 0x4506e5
mov ebx, dword [ebp - 0x58]
test bl, 2
je 0x45060f
push 0x417d9c
push edi
call dword [sym.imp.MSVCR120.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x45060f
mov ebx, 0x47e6a0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4505c1
sub ecx, edx
sar ecx, 1
je 0x4505e1
push 0x417d98
push 0x20
pop edx
mov ecx, ebx
call fcn.004433b9
push 0xa
push 0x21
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.MSVCR120.dll__itow_s]
add esp, 0x10
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
push 0x20
pop edx
call fcn.004433b9
mov dword [ebp - 0x5c], 1
jmp 0x4506e5
test bl, 4
je 0x45067b
push 0x417dc8
push edi
call dword [sym.imp.MSVCR120.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x45067b
mov ebx, 0x47e6a0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x450630
sub ecx, edx
sar ecx, 1
je 0x450650
push 0x417d98
push 0x20
pop edx
mov ecx, ebx
call fcn.004433b9
push 0xa
push 0x21
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.MSVCR120.dll__itow_s]
add esp, 0x10
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
push 0x20
pop edx
call fcn.004433b9
mov dword [ebp - 0x60], 1
jmp 0x4506e5
test bl, 8
je 0x4506e5
push 0x417dd8
push edi
call dword [sym.imp.MSVCR120.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4506e5
mov ebx, 0x47e6a0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x45069c
sub ecx, edx
sar ecx, 1
je 0x4506bc
push 0x417d98
push 0x20
pop edx
mov ecx, ebx
call fcn.004433b9
push 0xa
push 0x21
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.MSVCR120.dll__itow_s]
add esp, 0x10
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
push 0x20
pop edx
call fcn.004433b9
mov dword [ebp - 0x68], 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + 1]
lea ebx, [edi + ebx*2]
cmp word [ebx], si
jne 0x45050d
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x74]
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [ebp - 0x58]
pop ecx
pop ebx
test al, 1
je 0x45071c
mov esi, dword [ebp - 0x64]
test al, 2
je 0x450723
or esi, dword [ebp - 0x5c]
test al, 4
je 0x45072a
or esi, dword [ebp - 0x60]
test al, 8
je 0x450730
or esi, edi
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00466ce7
mov esp, ebp
pop ebp
ret