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

Disassembly:
push 0xffffffffffffffff
push 0x41c0fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa38
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov esi, dword [esp + 0xa5c]
mov dword [esp + 0xa50], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403001
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa50], 1
call sub.MFC42.DLL_CString::CString_2
mov ax, word [0x42a43c]
mov ecx, 0x13f
mov word [esp + 0x548], ax
xor eax, eax
lea edi, [esp + 0x54a]
push str.Path
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa54], 2
stosw word es:[edi], ax
mov dword [esp + 0x3c], 0x500
call sub.MFC42.DLL_CString::CString_1
push 0x42a438
lea ecx, [esp + 0x14]
mov byte [esp + 0xa54], 3
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0xa58]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.user
push ecx
mov byte [esp + 0xa58], 4
call edi
add esp, 8
test eax, eax
jne 0x402c3f
mov dword [esp + 0x2c], 0x80000001
push str.Environment
jmp 0x402c62
mov edx, dword [esp + 0xa58]
push 0x4290c4
push edx
call edi
add esp, 8
test eax, eax
jne 0x402c6b
mov dword [esp + 0x2c], 0x80000002
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
lea ecx, [esp + 0x24]
call fcn.0041b81e
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fbd
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x548]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push 0
push edx
push eax
mov byte [esp + 0xa68], 5
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e6a
lea ecx, [esp + 0x548]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041b81e
mov esi, dword [esi + 4]
test esi, esi
je 0x402e12
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x14]
push eax
call fcn.0041b82a
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0041b7f4
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0xa5c], 6
call fcn.0041b7f4
mov ecx, ebp
mov byte [esp + 0xa58], 5
call fcn.00402a00
cmp eax, 0xffffffff
jne 0x402e0a
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x402dd3
lea edx, [esp + 0x34]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4290d0
push eax
call edi
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x402dd3
lea eax, [esp + 0x10]
push 0x4290d0
lea ecx, [esp + 0x34]
push eax
push ecx
call sub.MFC42.DLL_operator
lea edx, [esp + 0x14]
mov byte [esp + 0xa50], 8
push edx
push eax
lea eax, [esp + 0x30]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa54], 9
call fcn.0041b82a
lea ecx, [esp + 0x28]
mov byte [esp + 0xa50], 8
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xa50], 5
lea ecx, [esp + 0x30]
jmp 0x402e05
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa54], 7
call fcn.0041b82a
mov byte [esp + 0xa50], 5
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x402ce5
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x4290d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
lea edi, [esp + 0x48]
jne 0x402f7e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 1
jmp 0x402f8f
mov esi, dword [esi + 4]
test esi, esi
je 0x402f2d
mov bl, 0xb
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x14]
push eax
call fcn.0041b82a
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x402ec7
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa54], 0xa
call fcn.0041b82a
mov byte [esp + 0xa50], 5
lea ecx, [esp + 0x24]
jmp 0x402f20
lea edx, [esp + 0x10]
push 0x4290d0
lea eax, [esp + 0x2c]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
mov byte [esp + 0xa5c], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa54], 0xc
call fcn.0041b82a
lea ecx, [esp + 0x30]
mov byte [esp + 0xa50], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xa50], 5
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x402e77
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x4290d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
lea edi, [esp + 0x48]
jne 0x402f7e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 1
jmp 0x402f8f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 2
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0xa50], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa50], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa50], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa50], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xa50], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa58]
mov dword [esp + 0xa50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa44
ret 8