Function at 0x4720c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
mov esi, dword [0x4c7f00]
push edi
mov ecx, esi
mov ebx, eax
mov dword [esp + 0x28], esi
call fcn.004130e0
test ebx, ebx
jne 0x472116
mov dword [esp + 0x18], 0x57
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x18], 0
mov ecx, dword [0x4c440c]
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp + 8]
setne dl
movzx eax, dl
push eax
push ecx
call fcn.00430280
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4c440c]
mov edx, dword [ecx + 0xcc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
or edx, 0x20019
push edx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4721b9
mov ebx, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push eax
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push edx
call edi
xor ecx, ecx
mov dword [esp + 0x18], eax
cmp eax, ecx
jne 0x4721ae
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 6
ja case.0x472174.5
jmp dword [eax*4 + 0x4724b8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x2c], 4
call edi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4721ae
mov edx, dword [esp + 0x20]
push 0x18
push eax
push edx
mov eax, esi
call fcn.004010e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], 0xffffffff
jne 0x4720eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4720ef
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ecx
push ecx
push ecx
push ebx
push eax
mov dword [esp + 0x2c], ecx
call edi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4721ae
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4721ae
push 1
shr eax, 1
push 0
add eax, 2
push eax
push 0
push esi
call fcn.00478360
cmp eax, 1
je 0x472220
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x17], 0
jne 0x47222b
mov ebx, dword [esi + 0xc]
jmp 0x47222d
mov ebx, esi
test byte [ebx + 0x15], 8
je 0x47223a
mov eax, ebx
call fcn.00401160
mov al, byte [ebx + 0x17]
cmp al, 1
jne 0x472253
test byte [ebx + 0x15], 4
je 0x47224e
mov eax, ebx
call fcn.00430cc0
mov ebx, dword [ebx + 8]
jmp 0x472265
cmp al, 2
jne 0x472260
call fcn.00401000
mov ebx, eax
jmp 0x472265
mov ebx, 0x4ca0b8
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ebx
push 0
push 0
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
mov edi, eax
push edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4722c1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4722c1
shr eax, 1
xor ecx, ecx
mov dword [ebx + eax*2], ecx
cmp dword [esp + 0x1c], 7
jne 0x4722c6
mov eax, ebx
cmp word [eax], 0
jne 0x4722bc
cmp word [eax + 2], 0
mov ecx, 0xa
mov word [eax], cx
je 0x4722c6
add eax, 2
jmp 0x4722a7
xor edx, edx
mov word [ebx], dx
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4722d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4722d0
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, esi
call fcn.00413570
cmp byte [esi + 0x17], 0
jne 0x4722f3
mov eax, dword [esi + 0xc]
jmp 0x4722f5
mov eax, esi
cmp byte [eax + 0x17], 2
jne 0x47231f
cmp dword [0x4ca0f0], 0
je 0x47231f
mov ecx, 0x4ca0e4
call fcn.00404270
test eax, eax
jne 0x4721b9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [eax + 0x15], 0x86
jmp 0x4721b9
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ecx
push ecx
push ecx
push ebx
push eax
mov dword [esp + 0x2c], ecx
call edi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x472494
mov eax, dword [esp + 0x14]
test eax, eax
je 0x472494
push 1
push 0
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.00478360
cmp eax, 1
je 0x47237f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x17], 0
jne 0x472388
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x472395
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4723ae
test byte [esi + 0x15], 4
je 0x4723a9
mov eax, esi
call fcn.00430cc0
mov ebx, dword [esi + 8]
jmp 0x4723c0
cmp al, 2
jne 0x4723bb
call fcn.00401000
mov ebx, eax
jmp 0x4723c0
mov ebx, 0x4ca0b8
mov edx, dword [ebp + 0x10]
xor eax, eax
mov word [ebx], ax
mov ecx, dword [esp + 0x14]
lea eax, [ebx + ecx*2]
add eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4721b9
mov ecx, 8
mov esi, str.0123456789ABCDEF
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor edx, edx
movsw word es:[edi], word [esi]
cmp dword [esp + 0x14], ecx
jbe 0x472450
lea esp, [esp]
mov eax, dword [esp + 0x24]
movzx eax, byte [ecx + eax]
mov esi, eax
shr eax, 4
and esi, 0xf
mov si, word [esp + esi*2 + 0x2c]
and eax, 0xf
mov ax, word [esp + eax*2 + 0x2c]
mov word [ebx + edx*2 + 2], si
mov word [ebx + edx*2], ax
inc ecx
add edx, 2
cmp ecx, dword [esp + 0x14]
jb 0x472420
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov word [ebx + edx*2], cx
cmp byte [eax + 0x17], cl
jne 0x472462
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x17], 2
jne 0x47248b
cmp dword [0x4ca0f0], ecx
je 0x47248b
mov ecx, 0x4ca0e4
call fcn.00404270
test eax, eax
jne 0x4720eb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
and byte [eax + 0x15], 0x86
jmp 0x4720eb
mov edx, dword [esp + 0x10]
push edx
jmp 0x4721b3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0x65e
jmp 0x4720eb