Function at 0x4a33f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [0x51ae08]
push esi
mov esi, ecx
push edi
mov ecx, ebx
mov edi, eax
mov dword [esp + 0x28], ebx
call fcn.0041acb0
test esi, esi
jne 0x4a3448
mov dword [esp + 0x18], 0x57
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x18], 0
mov ecx, dword [0x5165ec]
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp + 8]
setne dl
movzx eax, dl
push eax
push ecx
call fcn.0042db70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x5165ec]
mov edx, dword [ecx + 0xd0]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
or edx, 0x20019
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4a34e8
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push eax
lea ecx, [esp + 0x28]
push ecx
push eax
push edi
push edx
call esi
xor ecx, ecx
mov dword [esp + 0x18], eax
cmp eax, ecx
jne 0x4a34dd
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 6
ja case.0x4a34a3.5
jmp dword [eax*4 + 0x4a3780]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x20]
push edi
push ecx
mov dword [esp + 0x2c], 4
call esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4a34dd
mov edx, dword [esp + 0x24]
push 0x18
push eax
push edx
mov eax, ebx
call fcn.00401590
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], 0xffffffff
jne 0x4a341d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a3421
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ecx
push ecx
push ecx
push edi
push eax
mov dword [esp + 0x2c], ecx
call esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4a3634
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a3634
push 1
shr eax, 1
push 0
add eax, 2
push eax
push 0
push ebx
call fcn.004aefb0
cmp eax, 1
je 0x4a3557
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 8
push 0
push 1
mov ecx, ebx
call fcn.004016f0
lea edx, [esp + 0x14]
push edx
push eax
push 0
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push edi
push eax
call esi
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 0x4a35ca
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a35ca
mov ecx, dword [esp + 0x1c]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2 + 2], dx
mov word [ecx + eax*2], dx
cmp dword [esp + 0x20], 7
jne 0x4a35d3
mov eax, ecx
nop
cmp word [eax], 0
jne 0x4a35c5
cmp word [eax + 2], 0
mov edx, 0xa
mov word [eax], dx
je 0x4a35d3
add eax, 2
jmp 0x4a35b0
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov word [ecx], ax
mov eax, ecx
lea edx, [eax + 2]
jmp 0x4a35e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a35e0
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, ebx
call fcn.0041b0d0
cmp byte [ebx + 0x17], 0
jne 0x4a3601
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 2
jne 0x4a362b
cmp dword [0x51c0a8], 0
je 0x4a362b
mov ecx, 0x51c09c
call fcn.004049a0
test eax, eax
jne 0x4a34e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
and byte [ebx + 0x15], 0x86
jmp 0x4a34e8
mov edx, dword [esp + 0x10]
push edx
jmp 0x4a34e2
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
push ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push edi
push ecx
call esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4a3634
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a3634
push 1
push 0
lea edx, [eax + eax]
push edx
push 0
push ebx
call fcn.004aefb0
cmp eax, 1
je 0x4a368d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 1
mov ecx, ebx
call fcn.004016f0
mov ebx, eax
xor ecx, ecx
mov word [ebx], cx
mov ecx, dword [esp + 0x14]
lea eax, [ebx + ecx*2]
add eax, ecx
lea edx, [esp + 0x14]
push edx
push eax
push 0
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push edi
push eax
call esi
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 0x4a34e8
mov ecx, 8
mov esi, 0x50d130
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 0x4a3723
mov eax, dword [esp + 0x1c]
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 0x4a36f3
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov word [ebx + edx*2], cx
cmp byte [eax + 0x17], cl
jne 0x4a3735
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x17], 2
jne 0x4a375e
cmp dword [0x51c0a8], ecx
je 0x4a375e
mov ecx, 0x51c09c
call fcn.004049a0
test eax, eax
jne 0x4a341d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
and byte [eax + 0x15], 0x86
jmp 0x4a341d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0x65e
jmp 0x4a341d