Function at 0x469340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1002c
call fcn.0048b740
push ebx
push esi
mov esi, dword [0x4a2b90]
mov ebx, ecx
push edi
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.00412530
test ebx, ebx
jne 0x469395
mov ebx, 0x57
mov eax, ebx
mov ecx, dword [0x49f440]
test ebx, ebx
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp + 8]
setne dl
movzx eax, dl
push eax
push ecx
call fcn.0042cb00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x49f440]
mov edx, dword [ecx + 0xac]
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_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x469435
mov edx, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push eax
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x46942a
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 6
ja case.0x4693ed.5
jmp dword [eax*4 + 0x4696a0]
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], 4
call edi
mov ebx, eax
test ebx, ebx
jne 0x46942a
push 0x18
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, esi
call fcn.004010d0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x46936f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x469371
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], 0
call edi
mov ebx, eax
test ebx, ebx
jne 0x46942a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46942a
push 1
push ebx
add eax, 2
push eax
push ebx
push esi
call fcn.0046f1f0
cmp eax, 1
je 0x46949e
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 0x4694a7
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4694b4
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4694cd
test byte [esi + 0x15], 4
je 0x4694c8
mov eax, esi
call fcn.0042d4f0
mov esi, dword [esi + 8]
jmp 0x4694df
cmp al, 2
jne 0x4694da
call fcn.00401000
mov esi, eax
jmp 0x4694df
mov esi, 0x4a44fd
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call edi
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x469531
mov eax, dword [esp + 0x14]
test eax, eax
je 0x469531
mov word [eax + esi], bx
cmp dword [esp + 0x1c], 7
jne 0x469534
mov eax, esi
lea ebx, [ebx]
cmp byte [eax], 0
jne 0x46952e
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je 0x469534
inc eax
jmp 0x469520
mov byte [esi], 0
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x469540
mov esi, dword [esp + 0x18]
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00412a80
push 0
mov eax, esi
call fcn.00412b80
test eax, eax
jne 0x469435
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0xffff
call edi
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x469435
mov ecx, dword [esp + 0x14]
push 1
push ebx
lea edx, [ecx + ecx]
push edx
push ebx
push esi
call fcn.0046f1f0
cmp eax, 1
jne 0x469493
cmp byte [esi + 0x17], bl
jne 0x4695c9
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4695d6
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4695ef
test byte [esi + 0x15], 4
je 0x4695ea
mov eax, esi
call fcn.0042d4f0
mov edi, dword [esi + 8]
jmp 0x469601
cmp al, 2
jne 0x4695fc
call fcn.00401000
mov edi, eax
jmp 0x469601
mov edi, 0x4a44fd
mov byte [edi], 0
mov eax, dword [str.0123456789ABCDEF]
mov ecx, dword [0x499f70]
mov dword [esp + 0x24], eax
mov eax, dword [0x499f74]
xor edx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [0x499f78]
mov dword [esp + 0x2c], eax
mov al, byte [0x499f7c]
xor esi, esi
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], al
cmp dword [esp + 0x14], edx
jbe 0x469669
lea ecx, [ecx]
movzx ecx, byte [esp + esi + 0x38]
mov eax, ecx
shr ecx, 4
and eax, 0xf
mov al, byte [esp + eax + 0x24]
and ecx, 0xf
mov cl, byte [esp + ecx + 0x24]
mov byte [edx + edi + 1], al
mov byte [edx + edi], cl
inc esi
add edx, 2
cmp esi, dword [esp + 0x14]
jb 0x469640
mov eax, dword [esp + 0x18]
push 0
mov byte [edx + edi], 0
call fcn.00412b80
test eax, eax
jne 0x46936f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x65e
jmp 0x46936f