Function at 0x414630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44281d
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4553d4]
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 0x4146a0
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.0042bb49
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x1b4], ebx
call fcn.0042d2d5
push 4
push str.HKLM
push ebx
mov dword [ebp - 4], 1
call fcn.0042dc89
add esp, 0x1c
test eax, eax
jne 0x4146fc
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x414719
push 4
push str.HKCU
push ebx
call fcn.0042dc89
add esp, 0xc
test eax, eax
jne 0x414965
mov esi, SysReAllocString
push 2
lea edi, [ebx + 8]
push 0x44b498
push edi
call fcn.0042dc89
add esp, 0xc
test eax, eax
jne 0x41473d
mov dword [ebp - 0x1a8], 0x20119
add edi, 4
cmp word [edi], 0x5c
je 0x41476e
push 0x6a
push 0xd
lea eax, [ebp - 0xf4]
push eax
mov ecx, str.Properties.cpp
mov ebx, str.Missing_backslash
call fcn.00407520
push 0x44f4e0
lea ecx, [ebp - 0xf4]
push ecx
call fcn.0042e152
add edi, 2
push 0x2c
push edi
call fcn.0042dcc2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41478a
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 0x414934
mov esi, dword [ebp - 0x1ac]
push 1
mov eax, 0x4479b8
call fcn.00404910
xor esi, esi
cmp ebx, esi
je 0x414934
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 0x4148f7
mov eax, dword [ebp - 0x1bc]
dec eax
je 0x414871
sub eax, 3
je 0x414816
lea edi, [esi + 0x57]
jmp 0x4148ca
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 0x4148ca
mov edx, dword [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x40]
push 0x44a5b4
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.004034d0
jmp 0x414934
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.0042bb49
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 0x4148bd
mov edx, dword [ebp - 0x1ac]
push edx
mov eax, esi
call fcn.004034d0
push esi
call fcn.0042db19
add esp, 4
test edi, edi
je 0x414934
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.00407520
push 0x44f4e0
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.0042e152
cmp eax, 2
je 0x414929
push 0xa9
push eax
lea edx, [ebp - 0x9c]
push edx
mov ecx, str.Properties.cpp
mov ebx, str.Error_reading_registry
call fcn.00407520
push 0x44f4e0
lea eax, [ebp - 0x9c]
push eax
call fcn.0042e152
mov eax, dword [ebp - 0x1ac]
call fcn.00415e70
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.0042db19
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.0042c682
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.00407520
push 0x44f4e0
lea eax, [ebp - 0x14c]
push eax
call fcn.0042e152
mov eax, dword [ebp - 0x1b4]
mov byte [ebp - 4], 3
test eax, eax
je 0x4149a7
push eax
call fcn.0042db19
add esp, 4
push 0
push 0
call fcn.0042e152
int3