Function at 0x4016a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x384]
sub esp, 0x404
mov eax, dword [0x425424]
xor eax, ebp
mov dword [ebp + 0x380], eax
mov eax, dword [ebp + 0x38c]
mov ecx, dword [ebp + 0x398]
push ebx
push esi
mov esi, dword [ebp + 0x390]
push edi
mov edi, dword [ebp + 0x394]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x80], ecx
call dword [0x4253fc]
test esi, esi
mov dword [ebp - 0x7c], eax
jne 0x4016ed
xor eax, eax
jmp 0x40171a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x401702
xor eax, eax
jmp 0x40171a
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004091a0
mov edx, dword [ebp - 0x7c]
mov eax, esp
push edx
push ebx
push esi
push eax
call fcn.00401260
mov edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x6c]
push ecx
push 1
xor ebx, ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401886
cmp edi, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
jne 0x401744
xor eax, eax
jmp 0x401771
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x401759
xor eax, eax
jmp 0x401771
lea esi, [eax + eax]
mov eax, esi
call fcn.004091a0
mov ecx, dword [ebp - 0x7c]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.00401260
lea edx, [ebp - 0x78]
push edx
mov edx, dword [ebp - 0x6c]
push ebx
lea ecx, [ebp - 0x74]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
je 0x40179d
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x401886
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.004063cc
add esp, 4
test edi, edi
mov ebx, eax
jne 0x4017b3
xor eax, eax
jmp 0x4017e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4017c8
xor eax, eax
jmp 0x4017e0
lea esi, [eax + eax]
mov eax, esi
call fcn.004091a0
mov edx, dword [ebp - 0x7c]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.00401260
lea ecx, [ebp - 0x78]
push ecx
push ebx
lea edx, [ebp - 0x74]
push edx
push 0
push eax
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x401813
push ebx
call fcn.00409639
mov ecx, dword [ebp - 0x6c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x401886
mov eax, dword [ebp - 0x74]
cmp eax, 1
jne 0x40181e
push ebx
jmp 0x401838
cmp eax, 4
jne 0x40186e
mov edx, dword [ebx]
push 0xa
lea ecx, [ebp - 0x68]
push ecx
push edx
call fcn.00409614
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401640
mov ecx, dword [eax]
mov edx, dword [ebp - 0x80]
mov dword [eax], 0
mov eax, dword [ebp - 0x70]
push eax
mov dword [edx], ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call fcn.00409639
mov ecx, dword [ebp - 0x6c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401886
push ebx
call fcn.00409639
mov edx, dword [ebp - 0x6c]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x380]
xor ecx, ebp
call fcn.00408fe9
add ebp, 0x384
mov esp, ebp
pop ebp
ret