Function at 0x403c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441f8d
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4533e4]
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 0x403cc0
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.0042b2bc
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x1b4], ebx
call fcn.0042cbdd
push 4
push str.HKLM
push ebx
mov dword [ebp - 4], 1
call fcn.0042cc5e
add esp, 0x1c
test eax, eax
jne 0x403d1c
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x403d39
push 4
push str.HKCU
push ebx
call fcn.0042cc5e
add esp, 0xc
test eax, eax
jne 0x403f88
mov esi, SysReAllocString
push 2
lea edi, [ebx + 8]
push 0x446ab8
push edi
call fcn.0042cc5e
add esp, 0xc
test eax, eax
jne 0x403d5d
mov dword [ebp - 0x1a8], 0x20119
add edi, 4
cmp word [edi], 0x5c
je 0x403d91
push 0x83
push 0xd
lea eax, [ebp - 0xf4]
push eax
mov ecx, str.Properties.cpp
mov ebx, str.Missing_backslash
call fcn.00402e10
push 0x44d9ac
lea ecx, [ebp - 0xf4]
push ecx
call fcn.0042db23
add edi, 2
push 0x2c
push edi
call fcn.0042cc97
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403dad
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 0x403f57
mov esi, dword [ebp - 0x1ac]
push 1
mov eax, 0x4462c0
call fcn.00402c20
xor esi, esi
cmp ebx, esi
je 0x403f57
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 0x403f1a
mov eax, dword [ebp - 0x1bc]
dec eax
je 0x403e94
sub eax, 3
je 0x403e39
lea edi, [esi + 0x57]
jmp 0x403eed
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 0x403eed
mov edx, dword [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x40]
push 0x446ae4
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.00401990
jmp 0x403f57
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.0042b2bc
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 0x403ee0
mov edx, dword [ebp - 0x1ac]
push edx
mov eax, esi
call fcn.00401990
push esi
call fcn.0042ccc5
add esp, 4
test edi, edi
je 0x403f57
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.00402e10
push 0x44d9ac
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.0042db23
cmp eax, 2
je 0x403f4c
push 0xc2
push eax
lea edx, [ebp - 0x9c]
push edx
mov ecx, str.Properties.cpp
mov ebx, str.Error_reading_registry
call fcn.00402e10
push 0x44d9ac
lea eax, [ebp - 0x9c]
push eax
call fcn.0042db23
mov eax, dword [ebp - 0x1ac]
call fcn.004052a0
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.0042ccc5
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.0042c039
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.00402e10
push 0x44d9ac
lea eax, [ebp - 0x14c]
push eax
call fcn.0042db23
mov eax, dword [ebp - 0x1b4]
mov byte [ebp - 4], 3
test eax, eax
je 0x403fca
push eax
call fcn.0042ccc5
add esp, 4
push 0
push 0
call fcn.0042db23
int3