Function at 0x485a26
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x78], esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.004866bd
push ebx
push ebx
lea eax, [ebp - 0x74]
mov dword [ebp - 0x54], ebx
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x88], ebx
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
push ebx
lea eax, [ebp - 0x88]
mov dword [ebp - 0x70], ebx
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x74], ebx
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
je 0x485af7
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x485adc
push ecx
push 0x82
push 0x509218
lea ecx, [ebp - 0x15c]
call fcn.0044bca0
push esi
mov edx, str.Failed_getting_info_of_key_to_backup__result:
lea ecx, [eax + 8]
call fcn.0041cec3
mov ecx, eax
call fcn.0041af3b
xor eax, eax
inc eax
jmp 0x485adf
mov eax, dword [ebp - 0x50]
test al, 1
je 0x485f35
lea ecx, [ebp - 0x15c]
call fcn.0044bd90
jmp 0x485f35
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
cmp eax, dword [ebp - 0x70]
cmovb eax, dword [ebp - 0x70]
inc eax
push eax
call fcn.004436a0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x485cec
cmp eax, 0x6666666
ja 0x48602e
push eax
lea ecx, [ebp - 0x60]
call fcn.00486627
xor eax, eax
lea ecx, [ebp - 0x6c]
inc eax
cmp dword [ebp - 0x74], ebx
cmovne eax, dword [ebp - 0x74]
push eax
call fcn.00421b86
mov esi, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x90], esi
cmp dword [ebp - 0x4c], ebx
jbe 0x485ce4
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x84]
sub edx, ecx
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x94], edx
sub edi, eax
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x34]
push edx
push ecx
lea ecx, [ebp - 0x8c]
sar edi, 1
push ecx
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push ecx
push eax
mov eax, dword [ebp - 0x78]
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x40], eax
sub eax, ebx
je 0x485be1
sub eax, 0xea
jne 0x485c68
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x34], eax
jbe 0x485bc7
push dword [ebp - 0x34]
lea ecx, [ebp - 0x6c]
call fcn.0047e137
mov eax, dword [ebp - 0x38]
inc eax
cmp eax, edi
jbe 0x485c5d
push eax
lea ecx, [ebp - 0x84]
call fcn.0048652f
jmp 0x485c5d
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004864cc
lea ecx, [ebp - 0x18]
call fcn.00421a6e
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0041b875
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x5c]
push dword [ebp - 0x84]
mov edi, dword [ebp - 0x34]
add ebx, 0xffffffd8
mov esi, dword [ebp - 0x8c]
mov ecx, ebx
call fcn.0041b8e7
mov ecx, dword [ebp - 0x6c]
mov dword [ebx + 0x24], esi
lea eax, [ecx + edi]
push eax
push ecx
lea ecx, [ebx + 0x18]
call fcn.0047e17d
mov esi, dword [ebp - 0x90]
inc esi
xor ebx, ebx
mov dword [ebp - 0x90], esi
cmp esi, dword [ebp - 0x4c]
jb 0x485b60
jmp 0x485ce1
sub eax, 0x19
je 0x485cde
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x485cbf
push ecx
push 0xa7
push 0x509218
lea ecx, [ebp - 0x15c]
call fcn.0044bca0
push dword [ebp - 0x40]
mov edx, str.Failed_backing_up_value
push esi
lea ecx, [eax + 8]
call fcn.0041cec3
mov ecx, eax
call fcn.00421ad0
mov edx, str.__result:
mov ecx, eax
call fcn.0041cec3
mov ecx, eax
call fcn.0041af3b
push 2
pop eax
jmp 0x485cc2
mov eax, dword [ebp - 0x50]
test al, 2
je 0x485cd1
lea ecx, [ebp - 0x15c]
call fcn.0044bd90
lea ecx, [ebp - 0x6c]
call fcn.00421a6e
jmp 0x485f2a
mov dword [ebp - 0x4c], esi
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
call fcn.00421a6e
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x485edf
mov esi, dword [ebp - 0x84]
mov ecx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x80]
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
push ebx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x78]
push esi
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x40], eax
sub eax, ebx
je 0x485d54
sub eax, 0xea
jne 0x485dfa
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x84]
inc eax
push eax
call fcn.0048652f
mov esi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x34]
jmp 0x485def
xorps xmm0, xmm0
mov dword [ebp - 0x9c], ebx
lea ecx, [ebp - 0xa0]
movups xmmword [ebp - 0xac], xmm0
call fcn.004866bd
lea eax, [ebp - 0xac]
mov dword [ebp - 0x20], esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.004867a8
lea ecx, [ebp - 0x48]
call fcn.00486935
mov dword [ebp - 0x3c], eax
mov word [eax + 0xc], 0
add eax, 0x10
mov dword [ebp - 0x40], eax
je 0x485db6
push dword [ebp - 0x20]
mov ecx, eax
call fcn.0041ae60
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push eax
add ecx, 0x28
call fcn.004867a8
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x3c]
push eax
push ecx
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x48]
call fcn.00486882
lea ecx, [ebp - 0x1c]
call fcn.00485a13
lea ecx, [ebp - 0xa0]
call fcn.0048649d
lea ecx, [ebp - 0xac]
call fcn.0048658b
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x54]
jb 0x485d05
jmp 0x485e75
sub eax, 0x19
je 0x485e6f
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x485e54
push ecx
push 0xc7
push 0x509218
lea ecx, [ebp - 0x15c]
call fcn.0044bca0
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov edx, str.Failed_getting_name_of_subkey
push ecx
lea ecx, [eax + 8]
call fcn.0041cec3
mov ecx, eax
call fcn.00421ad0
mov edx, str._for_backup__result:
mov ecx, eax
call fcn.0041cec3
mov ecx, eax
call fcn.0041af3b
push 4
pop eax
jmp 0x485e57
mov eax, dword [ebp - 0x50]
test al, 4
je 0x485f2a
lea ecx, [ebp - 0x15c]
call fcn.0044bd90
jmp 0x485f2a
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov esi, dword [eax]
mov dword [ebp - 0x3c], esi
cmp esi, eax
je 0x485ed7
lea eax, [esi + 0x10]
cmp dword [eax + 0x14], 8
jb 0x485e95
mov eax, dword [eax]
push 0x20009
push eax
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
push dword [eax]
call fcn.00442850
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x485fb3
lea eax, [ebp - 0x6c]
push eax
lea ecx, [esi + 0x28]
call fcn.00485a26
test al, al
je 0x485f5a
lea ecx, [ebp - 0x3c]
call fcn.00421ea5
mov esi, dword [ebp - 0x3c]
cmp esi, dword [ebp - 0x48]
jne 0x485e8a
lea ecx, [ebp - 0x6c]
call fcn.004426e0
lea eax, [ebp - 0x60]
cmp edi, eax
je 0x485f08
mov ecx, dword [edi]
mov eax, dword [ebp - 0x60]
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [edi + 4], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov dword [edi + 8], eax
mov dword [ebp - 0x58], ecx
lea edx, [edi + 0xc]
lea eax, [ebp - 0x48]
cmp edx, eax
je 0x485f28
mov ecx, dword [edx]
mov eax, dword [ebp - 0x48]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov dword [ebp - 0x44], ecx
mov bl, 1
lea ecx, [ebp - 0x84]
call fcn.00443730
lea ecx, [ebp - 0x48]
call fcn.0048649d
lea ecx, [ebp - 0x60]
call fcn.0048658b
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 4
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x485fac
push ecx
push 0xdc
push 0x509218
lea ecx, [ebp - 0x15c]
call fcn.0044bca0
mov edx, str.Failed_backing_up_subkey__
lea ecx, [eax + 8]
call fcn.0041cec3
lea edx, [esi + 0x10]
cmp dword [edx + 0x14], 8
jb 0x485f94
mov edx, dword [edx]
mov ecx, eax
call fcn.0044c7c0
mov edx, 0x500aa8
mov ecx, eax
call fcn.0041cec3
push 0x10
pop eax
jmp 0x485faf
mov eax, dword [ebp - 0x50]
test al, 0x10
jmp 0x486014
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x48600f
push ecx
push 0xd7
push 0x509218
lea ecx, [ebp - 0x15c]
call fcn.0044bca0
mov edx, str.Failed_opening_subkey__
lea ecx, [eax + 8]
call fcn.0041cec3
lea edx, [esi + 0x10]
cmp dword [edx + 0x14], 8
jb 0x485fed
mov edx, dword [edx]
mov ecx, eax
call fcn.0044c7c0
push dword [ebp - 0x40]
mov edx, str.__for_backup__result:
mov ecx, eax
call fcn.0041cec3
mov ecx, eax
call fcn.0041af3b
push 8
pop eax
jmp 0x486012
mov eax, dword [ebp - 0x50]
test al, 8
je 0x486021
lea ecx, [ebp - 0x15c]
call fcn.0044bd90
lea ecx, [ebp - 0x6c]
call fcn.004426e0
jmp 0x485f2a
call fcn.0041bf20
int3