Function at 0x4137b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44336d
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4563d4]
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 0x413820
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.0042c6dc
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x1b4], ebx
call fcn.0042dc9b
push 4
push str.HKLM
push ebx
mov dword [ebp - 4], 1
call fcn.0042e849
add esp, 0x1c
test eax, eax
jne 0x41387c
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x413899
push 4
push str.HKCU
push ebx
call fcn.0042e849
add esp, 0xc
test eax, eax
jne 0x413ae8
mov esi, SysReAllocString
push 2
lea edi, [ebx + 8]
push 0x44c4e8
push edi
call fcn.0042e849
add esp, 0xc
test eax, eax
jne 0x4138bd
mov dword [ebp - 0x1a8], 0x20119
add edi, 4
cmp word [edi], 0x5c
je 0x4138f1
push 0x83
push 0xd
lea eax, [ebp - 0xf4]
push eax
mov ecx, str.Properties.cpp
mov ebx, str.Missing_backslash
call fcn.004073e0
push 0x450a78
lea ecx, [ebp - 0xf4]
push ecx
call fcn.0042ed12
add edi, 2
push 0x2c
push edi
call fcn.0042e882
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41390d
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 0x413ab7
mov esi, dword [ebp - 0x1ac]
push 1
mov eax, 0x448a3c
call fcn.004047c0
xor esi, esi
cmp ebx, esi
je 0x413ab7
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 0x413a7a
mov eax, dword [ebp - 0x1bc]
dec eax
je 0x4139f4
sub eax, 3
je 0x413999
lea edi, [esi + 0x57]
jmp 0x413a4d
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 0x413a4d
mov edx, dword [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x40]
push 0x44b514
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.00403070
jmp 0x413ab7
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.0042c6dc
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 0x413a40
mov edx, dword [ebp - 0x1ac]
push edx
mov eax, esi
call fcn.00403070
push esi
call fcn.0042e6d9
add esp, 4
test edi, edi
je 0x413ab7
push 0xbc
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.004073e0
push 0x450a78
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.0042ed12
cmp eax, 2
je 0x413aac
push 0xc2
push eax
lea edx, [ebp - 0x9c]
push edx
mov ecx, str.Properties.cpp
mov ebx, str.Error_reading_registry
call fcn.004073e0
push 0x450a78
lea eax, [ebp - 0x9c]
push eax
call fcn.0042ed12
mov eax, dword [ebp - 0x1ac]
call fcn.00414de0
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.0042e6d9
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.0042d215
mov esp, ebp
pop ebp
ret
push 0x75
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.004073e0
push 0x450a78
lea eax, [ebp - 0x14c]
push eax
call fcn.0042ed12
mov eax, dword [ebp - 0x1b4]
mov byte [ebp - 4], 3
test eax, eax
je 0x413b2a
push eax
call fcn.0042e6d9
add esp, 4
push 0
push 0
call fcn.0042ed12
int3