Function at 0x4161f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44448d
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4563e4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1c0], edi
mov esi, ecx
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], 0x20019
mov word [eax], cx
mov eax, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c0], 1
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x416260
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042eb5a
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x1b4], ebx
call fcn.0042eee3
push 4
push str.HKLM
push ebx
mov dword [ebp - 4], 1
call fcn.0042ff5e
add esp, 0x1c
test eax, eax
jne 0x4162bc
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4162d9
push 4
push str.HKCU
push ebx
call fcn.0042ff5e
add esp, 0xc
test eax, eax
jne 0x416525
mov esi, SysReAllocString
push 2
lea edi, [ebx + 8]
push 0x44c1f8
push edi
call fcn.0042ff5e
add esp, 0xc
test eax, eax
jne 0x4162fd
mov dword [ebp - 0x1a8], 0x20119
add edi, 4
cmp word [edi], 0x5c
je 0x41632e
push 0x6a
push 0xd
lea eax, [ebp - 0xf4]
push eax
mov ecx, str.Properties.cpp
mov ebx, str.Missing_backslash
call fcn.00407ad0
push 0x450534
lea ecx, [ebp - 0xf4]
push ecx
call fcn.00430884
add edi, 2
push 0x2c
push edi
call fcn.0042ffdf
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41634a
xor edx, edx
mov word [ebx], dx
add ebx, 2
mov ecx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1b0]
push eax
push ecx
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4164f4
mov esi, dword [ebp - 0x1ac]
push 1
mov eax, 0x4493f8
call fcn.00403fb0
xor esi, esi
cmp ebx, esi
je 0x4164f4
mov ecx, dword [ebp - 0x1b0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x1a8]
push edx
push esi
lea eax, [ebp - 0x1bc]
push eax
push esi
push ebx
push ecx
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1bc], esi
mov dword [ebp - 0x1b8], esi
call edi
cmp eax, esi
jne 0x4164b7
mov eax, dword [ebp - 0x1bc]
dec eax
je 0x416431
sub eax, 3
je 0x4163d6
lea edi, [esi + 0x57]
jmp 0x41648a
mov ecx, dword [ebp - 0x1b0]
lea edx, [ebp - 0x1a8]
push edx
lea eax, [ebp - 0x1b8]
push eax
push esi
push esi
push ebx
push ecx
mov dword [ebp - 0x1a8], 4
call edi
mov edi, eax
cmp edi, esi
jne 0x41648a
mov edx, dword [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x40]
push 0x44b40c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x1ac]
add esp, 0xc
push ecx
lea eax, [ebp - 0x40]
call fcn.00402b40
jmp 0x4164f4
mov eax, dword [ebp - 0x1a8]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042eb5a
mov ecx, dword [ebp - 0x1b0]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1a8]
push eax
push esi
push 0
push 0
push ebx
push ecx
call edi
mov edi, eax
test edi, edi
jne 0x41647d
mov edx, dword [ebp - 0x1ac]
push edx
mov eax, esi
call fcn.00402b40
push esi
call fcn.0042ff19
add esp, 4
test edi, edi
je 0x4164f4
push 0xa3
push edi
lea eax, [ebp - 0x1a4]
push eax
mov ecx, str.Properties.cpp
mov ebx, str.Unsupported_registry_type_or_error_reading_registry
call fcn.00407ad0
push 0x450534
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.00430884
cmp eax, 2
je 0x4164e9
push 0xa9
push eax
lea edx, [ebp - 0x9c]
push edx
mov ecx, str.Properties.cpp
mov ebx, str.Error_reading_registry
call fcn.00407ad0
push 0x450534
lea eax, [ebp - 0x9c]
push eax
call fcn.00430884
mov eax, dword [ebp - 0x1ac]
call fcn.00414120
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.0042ff19
mov eax, dword [ebp - 0x1ac]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042ee49
mov esp, ebp
pop ebp
ret
push 0x5c
push 0xd
lea edx, [ebp - 0x14c]
push edx
mov ecx, str.Properties.cpp
mov ebx, str.Missing_or_unknown_root_type_in_REG:
call fcn.00407ad0
push 0x450534
lea eax, [ebp - 0x14c]
push eax
call fcn.00430884
mov eax, dword [ebp - 0x1b4]
mov byte [ebp - 4], 3
test eax, eax
je 0x416567
push eax
call fcn.0042ff19
add esp, 4
push 0
push 0
call fcn.00430884
int3