Function at 0x1403a1248
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x18d0
call fcn.1403aeb10
sub rsp, rax
mov rax, qword [0x1404e41f8]
xor rax, rsp
mov qword [rsp + 0x18c0], rax
mov r14, qword [rsp + 0x1930]
mov rbx, rcx
mov r13d, r8d
mov ebp, edx
mov edi, SerializeElements<class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > >
lea rcx, [rsp + 0xd91]
mov r8, rdi
xor edx, edx
mov r12, r9
mov byte [rsp + 0xd90], 0
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0xc81]
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x38], CFileDialog::GetInterfaceMap
mov esi, 1
mov byte [rsp + 0xc80], 0
call sub.MSVCR90.dll_memset
and qword [r14], 0
lea rdx, [0x140478f38]
lea rcx, [rsp + 0xc80]
mov r8, rbx
call sub.MSVCR90.dll_sprintf
mov eax, r13d
sub eax, esi
je 0x1403a157c
sub eax, esi
jne 0x1403a136b
xor edi, edi
xor ebx, ebx
mov al, byte [rsp + rbx + 0xc80]
test al, al
je 0x1403a1320
movsx ecx, al
call sub.MSVCR90.dll_toupper
add edi, esi
add al, 7
mov byte [rsp + rbx + 0xd90], al
add rbx, rsi
cmp rbx, 0x32
jl 0x1403a12f9
movsxd rax, edi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov byte [rsp + rax + 0xd90], 0
lea rax, [rsp + 0xd90]
lea rcx, [rsp + 0xc80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + reloc.mfc90u.dll_CWinApp::GetSysPolicyValue]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1403a38dc
cmp eax, esi
je 0x1403a143c
cmp eax, 0xe
jne 0x1403a1375
mov eax, recv
jmp 0x1403a16c3
mov rax, qword [str.softwareclasses_vdsp]
lea rcx, [rsp + 0xfb0]
mov r8b, 0x3a
cmp byte [rsp + 0xc80], r8b
mov qword [rcx], rax
mov rax, qword [0x140478ed8]
mov qword [rcx + 8], rax
mov eax, dword [0x140478ee0]
mov r9, 0xffffffff80000002
mov dword [rcx + 0x10], eax
movzx eax, word [0x140478ee4]
mov qword [rsp + 0x40], r9
mov word [rcx + 0x14], ax
jne 0x1403a1423
mov al, byte [rsp + 0xc84]
xor edx, edx
cmp al, r8b
je 0x1403a13e7
xor ecx, ecx
mov byte [rsp + rcx + COlePropertyPage::GetThisMessageMap], al
add rcx, rsi
add edx, esi
mov al, byte [rsp + rcx + 0xc84]
cmp al, r8b
jne 0x1403a13cf
movsxd rax, edx
lea r8, [rsp + 0xd90]
mov byte [rsp + rax + COlePropertyPage::GetThisMessageMap], 0
lea eax, [rdx + 5]
movsxd rcx, eax
lea rax, [rsp + 0xc80]
sub r8, rcx
lea rdx, [rsp + rcx + 0xc80]
sub r8, rax
mov al, byte [rdx]
mov byte [r8 + rdx], al
add rdx, rsi
test al, al
jne 0x1403a1416
xor ecx, ecx
mov al, byte [rsp + rcx + 0xfb0]
mov byte [rsp + rcx + reloc.mfc90u.dll_CWinApp::GetSysPolicyValue], al
add rcx, rsi
test al, al
jne 0x1403a1425
jmp 0x1403a1441
mov r9, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + reloc.mfc90u.dll_CWinApp::GetSysPolicyValue]
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1403a1490
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xd90]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb ecx, ecx
and esi, ecx
call fcn.1403a3c88
test eax, eax
je 0x1403a1500
test esi, esi
je 0x1403a1550
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea rdx, [rsp + reloc.mfc90u.dll_CWinApp::GetSysPolicyValue]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403a1500
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xd90]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb ecx, ecx
and esi, ecx
test esi, esi
je 0x1403a1550
test bpl, 8
je 0x1403a153b
xor edx, edx
mov eax, ebp
lea rcx, [rsp + 0xc80]
and eax, 7
lea r8d, [rdx + 2]
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.1403a3fdc
cmp eax, 1
jne 0x1403a16c3
lea r8d, [rax + 1]
jmp 0x1403a15bf
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, recv
jmp 0x1403a16c3
xor edx, edx
lea rcx, [rsp + 0xc80]
lea r8d, [rdx + 2]
call fcn.14039f384
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1403a15ce
mov eax, 0x2c
jmp 0x1403a16c3
lea rcx, [rsp + 0xc80]
xor edx, edx
call fcn.1403a3328
cmp eax, 0xffffffff
jne 0x1403a15bc
test bpl, 8
je 0x1403a1546
mov eax, ebp
lea rcx, [rsp + 0xc80]
mov r9, r12
and eax, 7
xor edx, edx
mov r8d, esi
mov dword [rsp + 0x20], eax
call fcn.1403a3fdc
cmp eax, esi
jne 0x1403a16c3
mov r8d, esi
lea rcx, [rsp + 0xc80]
xor edx, edx
call fcn.14039f384
mov edx, 0x541
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rdi, rax
jne 0x1403a15f0
mov eax, reloc.WS2_32.dll_recv
jmp 0x1403a16c3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
mov rbx, rax
je 0x1403a15e6
lea rdx, [rsp + 0xc80]
xor r8d, r8d
mov rcx, rax
call fcn.1403a23e8
cmp r13d, 3
jne 0x1403a1624
mov r8w, setsockopt
mov rdx, r12
jmp 0x1403a1653
cmp r13d, 4
jne 0x1403a1631
mov r8w, 0x1a
jmp 0x1403a161f
lea r8, [rsp + reloc.mfc90u.dll_COleDispatchImpl::Invoke]
lea rdx, str.139975959bd8768d74383a8ad6e0f2f79b59a
mov rcx, r12
call fcn.1403a3ce4
xor r8d, r8d
lea rdx, [rsp + reloc.mfc90u.dll_COleDispatchImpl::Invoke]
lea rcx, [rbx + 0x108]
call fcn.1403a23e8
and qword [rbx + 0x509], 0
and dword [rbx + 0x511], 0
and qword [rbx + reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::AppendFormat], 0
and qword [rbx + 0x52d], 0
mov rcx, rdi
mov byte [rbx + 0x508], 0
mov dword [rbx + 0x104], r13d
mov dword [rbx + 0x53d], ebp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14039f6a8
cmp eax, 1
mov ebx, eax
je 0x1403a16bb
mov rcx, rdi
call fcn.1403a3f60
mov eax, ebx
jmp 0x1403a16c3
mov qword [r14], rdi
mov eax, 1
mov rcx, qword [rsp + 0x18c0]
xor rcx, rsp
call fcn.1403addc0
add rsp, 0x18d0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret