Function at 0x403ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44192d
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 0x403d10
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.0042abb9
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x1b4], ebx
call fcn.0042c4dd
push 4
push str.HKLM
push ebx
mov dword [ebp - 4], 1
call fcn.0042c55e
add esp, 0x1c
test eax, eax
jne 0x403d6c
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x403d89
push 4
push str.HKCU
push ebx
call fcn.0042c55e
add esp, 0xc
test eax, eax
jne 0x403fd5
mov esi, SysReAllocString
push 2
lea edi, [ebx + 8]
push 0x446ab8
push edi
call fcn.0042c55e
add esp, 0xc
test eax, eax
jne 0x403dad
mov dword [ebp - 0x1a8], 0x20119
add edi, 4
cmp word [edi], 0x5c
je 0x403dde
push 0x6a
push 0xd
lea eax, [ebp - 0xf4]
push eax
mov ecx, str.Properties.cpp
mov ebx, str.Missing_backslash
call fcn.00402e60
push 0x44d554
lea ecx, [ebp - 0xf4]
push ecx
call fcn.0042d423
add edi, 2
push 0x2c
push edi
call fcn.0042c597
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403dfa
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 0x403fa4
mov esi, dword [ebp - 0x1ac]
push 1
mov eax, 0x4462c0
call fcn.00402c70
xor esi, esi
cmp ebx, esi
je 0x403fa4
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 0x403f67
mov eax, dword [ebp - 0x1bc]
dec eax
je 0x403ee1
sub eax, 3
je 0x403e86
lea edi, [esi + 0x57]
jmp 0x403f3a
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 0x403f3a
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.00401970
jmp 0x403fa4
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.0042abb9
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 0x403f2d
mov edx, dword [ebp - 0x1ac]
push edx
mov eax, esi
call fcn.00401970
push esi
call fcn.0042c5c5
add esp, 4
test edi, edi
je 0x403fa4
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.00402e60
push 0x44d554
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.0042d423
cmp eax, 2
je 0x403f99
push 0xa9
push eax
lea edx, [ebp - 0x9c]
push edx
mov ecx, str.Properties.cpp
mov ebx, str.Error_reading_registry
call fcn.00402e60
push 0x44d554
lea eax, [ebp - 0x9c]
push eax
call fcn.0042d423
mov eax, dword [ebp - 0x1ac]
call fcn.004054e0
mov ecx, dword [ebp - 0x1b4]
push ecx
call fcn.0042c5c5
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.0042b939
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.00402e60
push 0x44d554
lea eax, [ebp - 0x14c]
push eax
call fcn.0042d423
mov eax, dword [ebp - 0x1b4]
mov byte [ebp - 4], 3
test eax, eax
je 0x404017
push eax
call fcn.0042c5c5
add esp, 4
push 0
push 0
call fcn.0042d423
int3