Function at 0x402930
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40fba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42u.DLL_CString::CString_3
push 0x414180
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
mov dword [esp + 0x1c], ebx
call sub.MFC42u.DLL_CString::CString_2
lea eax, [esp + 0x20]
mov byte [esp + 0x30], 4
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftInternet_ExplorerMAIN
push 0x80000001
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4029bb
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push ebx
push edx
push ebx
push eax
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x18]
lea edx, [ecx + ecx]
push edx
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x20], ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ebp
push ecx
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
push ebp
jne 0x402aa8
lea ecx, [esp + 0x18]
call fcn.0040efa4
push ebp
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0xc
cmp eax, ebx
jne 0x402ab0
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call sub.MFC42u.DLL_CString::CString
cmp esi, ebx
je 0x402a7f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
push eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebp
push 1
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov edi, eax
je 0x402ae7
push esi
call ebp
xor esi, esi
mov dword [esp + 0x24], esi
cmp edi, ebx
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x10]
jne 0x402b45
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call sub.MFC42u.DLL_CString::CString
cmp esi, ebx
je 0x402b1c
push esi
call ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call sub.MFC42u.DLL_CString::CString
cmp esi, ebx
je 0x402b6d
push esi
call ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret