Function at 0x4052c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x618
mov eax, dword [0x429130]
push esi
push edi
mov edi, dword [esp + 0x628]
test edi, edi
mov dword [esp + 0x61c], eax
je 0x4054e6
mov esi, dword [esp + 0x624]
test esi, esi
je 0x4054e6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4054e6
mov ecx, dword [edi]
and ecx, 0xff
mov al, cl
test al, 0x1f
mov dword [edi], ecx
je 0x4054e6
push esi
push str.SoftwareColasoftColasoft_CapsaTools
lea eax, [esp + 0x41c]
push 0x41c88c
push eax
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x10
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x418]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4054e6
mov al, byte [edi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
mov ebx, 1
test bl, al
push ebp
mov ebp, 0x400
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
je 0x4053ac
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.Title
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x405497
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
test byte [edi], 2
je 0x4053ec
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.Command
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x405497
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
test byte [edi], 4
je 0x405428
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.Arguments
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x405497
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
test byte [edi], 8
je 0x405464
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.WndClass
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x405497
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
test byte [edi], 0x10
je 0x4054c2
mov eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.Enable
push eax
call esi
test eax, eax
je 0x4054bb
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x614]
call fcn.00417721
add esp, 0x618
ret
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x14], edx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x614]
call fcn.00417721
add esp, 0x618
ret
mov ecx, dword [esp + 0x61c]
pop edi
xor eax, eax
pop esi
call fcn.00417721
add esp, 0x618
ret