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

Disassembly:
push 0xffffffffffffffff
push 0x405dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push edi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
xor ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0x44], ecx
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edx
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x3c], edx
push 0x9c60
lea ecx, [esp + 8]
mov dword [esp + 0x270], edi
mov byte [esp + 0x10], 0xff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], edx
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 4]
lea eax, [esp + 0x58]
lea ecx, [esp + 8]
push eax
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4046bd
push esi
push ebp
push ebx
push 0x9c61
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edi
push edi
push edx
push eax
mov dword [esp + 0x34], 0x14
call esi
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
test eax, eax
jne 0x404603
cmp dword [esp + 0x1c], edi
jbe 0x404603
mov ebx, 0x104
mov al, byte [esp + edi + 0x24]
cmp al, 0x14
jae 0x4045fa
and eax, 0xff
lea ecx, [esp + 0x68]
push eax
push str.Sauve_03d
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x168]
lea ecx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x38], ebx
call esi
test eax, eax
jne 0x4045fa
mov al, byte [esp + edi + 0x24]
mov cl, byte [esp + eax + 0x50]
lea eax, [esp + eax + 0x50]
test cl, cl
jne 0x4045fa
mov edx, dword [esp + 0x280]
lea ecx, [esp + 0x168]
push ecx
push edx
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4045fa
mov al, byte [esp + edi + 0x24]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jb 0x404583
cmp byte [esp + 0x18], 0xff
jne 0x404625
xor eax, eax
mov cl, byte [esp + eax + 0x50]
test cl, cl
je 0x40461a
inc eax
cmp eax, 0x14
jb 0x40460c
cmp eax, 0x14
jne 0x40462e
mov eax, dword [esp + 0x37]
jmp 0x404629
mov eax, dword [esp + 0x18]
and eax, 0xff
push eax
lea ecx, [esp + 0x6c]
push str.Sauve_03d
push ecx
mov byte [esp + 0x48], al
call ebp
mov esi, dword [esp + 0x28c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea edx, [esp + 0x68]
push eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push edx
push eax
call esi
mov eax, 1
lea ecx, [esp + 0x24]
mov dl, byte [ecx]
mov bl, byte [esp + 0x3c]
cmp dl, bl
jne 0x40467d
inc ecx
mov dl, byte [ecx]
mov byte [esp + eax + 0x3c], dl
inc eax
inc ecx
cmp eax, 0x14
jb 0x404672
push 0x9c61
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push 0x14
push eax
push 3
push 0
push ecx
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop ebp
pop esi
lea ecx, [esp + 4]
mov dword [esp + 0x26c], 0xffffffff
call fcn.0040537c
mov ecx, dword [esp + 0x264]
pop edi
mov dword fs:[0], ecx
add esp, 0x26c
ret 4