Function at 0x422590
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42912f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x538
push ebx
push ebp
push esi
push edi
mov dword [esp + 0xc0], ecx
mov ax, word [0x440958]
mov ecx, 0x81
mov word [esp + 0x340], ax
xor eax, eax
lea edi, [esp + 0x342]
lea edx, [esp + 0x108]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10c]
xor ebp, ebp
stosw word es:[edi], ax
push ecx
lea eax, [esp + 0x118]
push edx
lea ecx, [esp + 0x124]
push eax
lea edx, [esp + 0x134]
push ecx
lea eax, [esp + 0x128]
push edx
lea ecx, [esp + 0x138]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x578]
lea eax, [esp + 0xbc]
push ebp
lea ecx, [esp + 0x364]
push eax
mov ebx, 1
push ecx
push edx
mov dword [esp + 0x580], ebx
mov dword [esp + 0xcc], 0x104
mov dword [esp + 0x7c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebp
jne 0x42326d
mov eax, dword [esp + 0x4c]
cmp eax, ebp
je 0x42326d
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x80], esi
jbe 0x42326d
mov edi, dword [esp + 0x564]
mov dword [esp + 0x28], ebx
mov bl, 7
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x55c]
push ebp
push ebp
push ebp
lea edx, [esp + 0x150]
push ecx
push edx
push esi
push eax
mov dword [esp + 0xac], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebp
jne 0x423259
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x140]
lea edx, [esp + 0x1c]
push ecx
push 0x43941c
push edx
mov byte [esp + 0x55c], 2
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x56c]
lea eax, [esp + 0x14c]
push eax
push ecx
lea edx, [esp + 0x30]
push str._s_s
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x1c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xb8]
push eax
call sub.MFC42u.DLL_CString::CString_4
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x80]
mov byte [esp + 0x554], 3
call fcn.00423f32
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x55c]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ecx
push edx
call esi
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x7c]
sete byte [esp + 0x13]
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x422777
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
push 0x80000001
jmp 0x4227be
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0x70]
call fcn.00423f32
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x55c]
push edx
push eax
call esi
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x6c]
sete byte [esp + 0x13]
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4227c4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
push ebp
mov dword [esp + 0x4c], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
push 4
push ecx
call ebp
mov edx, dword [esp + 0x44]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x24]
mov esi, eax
lea eax, [esp + 0x44]
push eax
push esi
push 4
push ecx
call ebp
test eax, eax
je 0x42280d
push 0
push 0
push str.RegGetKeySecurity_failed
call sub.MFC42u.DLL_AfxMessageBox
lea edx, [esp + 0x120]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x42283e
push eax
push eax
push str.GetSecurityDescriptorDacl_failed
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x422881
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x422881
push 2
lea edx, [esp + 0xf4]
push 0xc
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x422873
push eax
push eax
push str.GetAclInformation_failed
call sub.MFC42u.DLL_AfxMessageBox
jmp 0x422881
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xd8], eax
mov esi, dword [esp + 0xd8]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
push 2
push esi
push ebp
mov dword [esp + 0x44], ebp
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x4228b1
push eax
push eax
push str.InitializeAcl_failed
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x422936
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x422936
mov eax, dword [esp + 0xf0]
test eax, eax
jbe 0x422936
xor esi, esi
test eax, eax
jbe 0x422936
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x42292a
mov eax, dword [esp + 0x94]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0xfc], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x100], edx
mov edx, dword [esp + 0xfe]
mov ecx, dword [ecx + 8]
and edx, 0xffff
push edx
push eax
push 0xffffffffffffffff
push 2
push ebp
mov dword [esp + 0x118], ecx
call dword [sym.imp.ADVAPI32.dll_AddAce]
mov eax, dword [esp + 0xf0]
inc esi
cmp esi, eax
jb 0x4228d2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc0]
push eax
call fcn.004224a0
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x54]
call fcn.00423f32
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x55c]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ecx
push edx
call esi
add esp, 8
lea ecx, [esp + 0x50]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x42299d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
jmp 0x4229eb
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0x68]
call fcn.00423f32
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x55c]
push edx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x64]
test eax, eax
sete byte [esp + 0x13]
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4229f1
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x440958
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp + 0x568]
mov byte [esp + 0x550], 4
dec eax
je 0x422bfb
dec eax
jne 0x42319c
lea eax, [esp + 0x140]
lea ecx, [esp + 0x54]
push eax
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x74]
push 4
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x558], 0x1a
call sub.MFC42u.DLL_CString::Left
mov edx, dword [esp + 0x74]
xor eax, eax
push str.0000
push edx
mov byte [esp + 0x558], 0x1b
mov dword [esp + 0x8c], eax
mov dword [esp + 0x38], eax
call esi
add esp, 8
test eax, eax
jne 0x422bd4
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x84]
push eax
push 0
push ecx
push 0
push 0x4408dc
push edx
call ebp
mov eax, dword [esp + 0x30]
inc eax
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x30]
mov esi, eax
push ecx
push esi
mov dword [esi], 0
mov edx, dword [esp + 0x20]
push 0
push 0
push 0x4408dc
push edx
call ebp
test eax, eax
jne 0x422bd0
mov eax, dword [esp + 0x20]
and eax, 0x80000001
jns 0x422ad8
dec eax
or eax, 0xfffffffe
inc eax
je 0x422ae1
push str._TR_height25_BGCOLOR_FFFFFF__
jmp 0x422ae6
push str._TR_height25_BGCOLOR_FFFFD9__
lea ecx, [esp + 0x18]
call fcn.00423f2c
lea ecx, [esp + 0x40]
call sub.MFC42u.DLL_CString::CString_3
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x40]
push ebp
push 0x43334c
push ecx
mov byte [esp + 0x55c], 0x1c
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x40]
lea eax, [esp + 0xa4]
push edx
push str._TD__FONT_face_Courier__size___2___colorblack_
push eax
call sub.MFC42u.DLL_operator_2
push 0x4386c4
lea ecx, [esp + 0xc8]
push eax
push ecx
mov byte [esp + 0x55c], 0x1d
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 0x1e
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xc4]
mov byte [esp + 0x550], 0x1d
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xa4]
mov byte [esp + 0x550], 0x1c
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov edx, dword [edi]
inc eax
inc ebp
push 2
push 0
mov ecx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebp
call dword [edx + 0x30]
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
mov ecx, edi
call dword [edx + 0x40]
mov edx, dword [esp + 0x30]
push edi
push edx
push esi
mov ecx, 0x4482f8
call fcn.0040fea0
lea ecx, [esp + 0x40]
mov byte [esp + 0x550], 0x1b
call sub.MFC42u.DLL_CString::CString
mov ebp, dword [esp + 0x38]
lea ecx, [esp + 0x74]
mov byte [esp + 0x550], 0x1a
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x550], 4
call sub.MFC42u.DLL_CString::CString
jmp 0x42319c
lea eax, [esp + 0x140]
lea ecx, [esp + 0x78]
push eax
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x70]
push 4
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0x558], 5
call sub.MFC42u.DLL_CString::Left
mov edx, dword [esp + 0x70]
xor esi, esi
push str.0000
push edx
mov byte [esp + 0x558], 6
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], esi
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x423176
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x58]
push eax
push ebp
push ecx
push ebp
push 0x4408d8
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
push ebp
push ecx
push ebp
push 0x4408d4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x34]
inc eax
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x64], eax
inc ecx
push ecx
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x68]
add esp, 8
lea edx, [esp + 0x34]
mov dword [esp + 0x68], eax
push edx
mov dword [ecx], ebp
push ecx
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push ebp
push ebp
push 0x4408d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422cef
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x60]
push 1
push ecx
push edx
mov ecx, 0x4482f8
call fcn.0040f9d0
mov esi, eax
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push ecx
push 0
push 0
push 0x4408d4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422d22
mov eax, dword [esp + 0x68]
mov ecx, 0x4482f8
push eax
call fcn.0040fce0
mov ebp, eax
test esi, esi
je 0x423176
test ebp, ebp
je 0x423176
mov ecx, dword [esp + 0x20]
and ecx, 0x80000001
jns 0x422d43
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x422d4c
push str._TR_height25_BGCOLOR_FFFFFF__
jmp 0x422d51
push str._TR_height25_BGCOLOR_FFFFD9__
lea ecx, [esp + 0x18]
call fcn.00423f2c
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString_3
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push edx
push 0x43334c
push eax
mov byte [esp + 0x55c], bl
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xac]
push ecx
push str._TD__FONT_face_Courier__size___2___colorblack_
push edx
call sub.MFC42u.DLL_operator_2
push 0x4386c4
push eax
lea eax, [esp + 0xd4]
mov byte [esp + 0x558], 8
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 9
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xcc]
mov byte [esp + 0x550], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xac]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
inc ecx
push ebp
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xb8]
inc eax
push str._TD__FONT_face___Courier__size___2___colorblack_
push ecx
mov dword [esp + 0x34], eax
call sub.MFC42u.DLL_operator_2
push 0x4386c4
lea edx, [esp + 0xd8]
push eax
push edx
mov byte [esp + 0x55c], 0xa
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 0xb
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xd4]
mov byte [esp + 0x550], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xb4]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [esi + 0xc]
lea ecx, [esp + 0xbc]
push eax
push str._TD__FONT_face___Courier__size___2___colorblack_
push ecx
call sub.MFC42u.DLL_operator_2
push 0x4386c4
lea edx, [esp + 0xe0]
push eax
push edx
mov byte [esp + 0x55c], 0xc
call sub.MFC42u.DLL_operator
mov byte [esp + 0x550], 0xd
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xdc]
mov byte [esp + 0x550], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xbc]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp + 4]
lea ecx, [esp + 0xe8]
push eax
push str._TD__FONT_face___Courier__size___2___colorblack_
push ecx
call sub.MFC42u.DLL_operator_2
push 0x4386c4
lea edx, [esp + 0xe8]
push eax
push edx
mov byte [esp + 0x55c], 0xe
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 0xf
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xe4]
mov byte [esp + 0x550], 0xe
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xe8]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
add ebp, 8
lea eax, [esp + 0xe0]
push ebp
push str._TD__FONT_face___Courier__size___2___colorblack_
push eax
call sub.MFC42u.DLL_operator_2
push 0x4386c4
lea ecx, [esp + 0xcc]
push eax
push ecx
mov byte [esp + 0x55c], 0x10
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 0x11
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xc8]
mov byte [esp + 0x550], 0x10
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xe0]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
push esi
lea edx, [esp + 0xf0]
push str._TD__FONT_face___Courier__size___2___colorblack_
push edx
call sub.MFC42u.DLL_operator_2
push 0x4386c4
push eax
lea eax, [esp + 0xd8]
mov byte [esp + 0x558], 0x12
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 0x13
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xd0]
mov byte [esp + 0x550], 0x12
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xec]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x94]
push str._TD__FONT_face___Courier__size___2___colorblack_
push edx
call sub.MFC42u.DLL_operator_2
push 0x4386c4
push eax
lea eax, [esp + 0x90]
mov byte [esp + 0x558], 0x14
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 0x15
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x88]
mov byte [esp + 0x550], 0x14
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x90]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 8]
lea edx, [esp + 0xa0]
push ecx
push str._TD__FONT_face___Courier__size___2___colorblack_
push edx
call sub.MFC42u.DLL_operator_2
push 0x4386c4
push eax
lea eax, [esp + 0xa0]
mov byte [esp + 0x558], 0x16
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 0x17
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x98]
mov byte [esp + 0x550], 0x16
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xa0]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
add esi, 0x10
lea ecx, [esp + 0xb0]
push esi
push str._TD__FONT_face___Courier__size___2___colorblack_
push ecx
call sub.MFC42u.DLL_operator_2
push 0x438664
lea edx, [esp + 0xac]
push eax
push edx
mov byte [esp + 0x55c], 0x18
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x554], 0x19
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xa8]
mov byte [esp + 0x550], 0x18
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xb0]
mov byte [esp + 0x550], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [edi]
push 2
push 0
mov ecx, edi
call dword [eax + 0x30]
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
mov ecx, edi
call dword [edx + 0x40]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x550], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x70]
mov byte [esp + 0x550], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x550], 4
call sub.MFC42u.DLL_CString::CString
mov ebp, dword [esp + 0x38]
lea edx, [esp + 0x12c]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4231bc
push eax
push eax
push str.InitializeSecurityDescriptor_failed
call sub.MFC42u.DLL_AfxMessageBox
push 0
push ebp
lea eax, [esp + 0x134]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4231df
push eax
push eax
push str.SetSecurityDescriptorDacl_failed
call sub.MFC42u.DLL_AfxMessageBox
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x12c]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x423206
push 0
push 0
push str.RegSetKeySecurity_failed
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x550], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xb8]
mov byte [esp + 0x550], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x550], 1
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x80]
xor ebp, ebp
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
mov dword [esp + 0x80], esi
jb 0x422685
lea ecx, [esp + 0x55c]
mov byte [esp + 0x550], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x560]
mov dword [esp + 0x550], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x548]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x544
ret 0x14