Function at 0x4a3320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [0x4db120]
push edi
push 1
push 0
push 0xffffffffffffffff
mov dword [esp + 0x30], ecx
mov ecx, esi
push 0
mov dword [esp + 0x30], esi
call fcn.004b04f0
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x4a3354
lea ebx, [edx + 0x57]
jmp 0x4a3628
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4d70f4]
mov eax, dword [eax + 0xb0]
or eax, 0x20019
push eax
push 0
push dword [esp + 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x4a3628
mov ebp, dword [esp + 0x48]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4a33e3
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 6
ja case.0x4a33ae.5
jmp dword [eax*4 + 0x4a3648]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4a33e3
push dword [esp + 0x1c]
mov ecx, esi
call fcn.004015b0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a3628
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4a33e3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a33e3
push 1
push ebx
add eax, 2
mov ecx, esi
push eax
push ebx
call fcn.004b04f0
cmp eax, 1
je 0x4a3444
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0xc
push 0
push 1
mov ecx, esi
call fcn.00401640
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4a34a1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a34a1
mov word [edi + eax], bx
cmp dword [esp + 0x18], 7
jne 0x4a34a4
mov eax, edi
nop dword [eax + eax]
cmp byte [eax], 0
jne 0x4a349e
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je 0x4a34a4
inc eax
jmp 0x4a3490
mov byte [edi], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4a34a7
sub edi, ecx
cmp byte [esi + 0x17], al
jne 0x4a34ba
mov ebp, dword [esi + 0xc]
jmp 0x4a34bc
mov ebp, esi
cmp byte [ebp + 0x17], 1
jne 0x4a34d4
test byte [ebp + 0x15], 8
je 0x4a34cf
mov ecx, ebp
call fcn.004014a0
add ebp, 0xc
jmp 0x4a34d9
mov ebp, 0x4dd524
mov dword [ebp], edi
cmp byte [esi + 0x17], 0
jne 0x4a34e5
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4a34f8
cmp dword [0x4dba88], 0
jne 0x4a35ff
and byte [esi + 0x15], 0x86
jmp 0x4a3628
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4a33e3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a33e3
push 1
push ebx
add eax, eax
mov ecx, esi
push eax
push ebx
call fcn.004b04f0
cmp eax, 1
jne 0x4a342e
push ebx
push eax
mov ecx, esi
call fcn.00401640
mov ebp, eax
lea ecx, [esp + 0x14]
push ecx
mov byte [ebp], bl
mov eax, dword [esp + 0x18]
add eax, ebp
push eax
push ebx
push ebx
push dword [esp + 0x58]
mov dword [esp + 0x54], eax
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4a3628
movups xmm0, xmmword [str.0123456789ABCDEF]
mov al, byte [0x4cf9e4]
xor edx, edx
xor edi, edi
mov byte [esp + 0x38], al
movups xmmword [esp + 0x28], xmm0
cmp dword [esp + 0x14], edx
jbe 0x4a35db
mov esi, dword [esp + 0x40]
nop dword [eax]
movzx ecx, byte [edi + esi]
inc edi
mov eax, ecx
shr ecx, 4
and eax, 0xf
movzx eax, byte [esp + eax + 0x28]
mov byte [edx + ebp + 1], al
movzx eax, byte [esp + ecx + 0x28]
mov byte [edx + ebp], al
add edx, 2
cmp edi, dword [esp + 0x14]
jb 0x4a35b0
mov esi, dword [esp + 0x20]
mov byte [edx + ebp], 0
cmp byte [esi + 0x17], 0
jne 0x4a35e8
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4a34f8
cmp dword [0x4dba88], 0
je 0x4a34f8
push 1
mov ecx, 0x4dba7c
call fcn.00406200
test eax, eax
jne 0x4a3628
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x65e
mov ecx, dword [esp + 0x24]
test ebx, ebx
push ebx
setne al
movzx eax, al
push eax
call fcn.0044d3d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc