Function at 0x10017ea8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x84c
mov eax, 0x1002dad5
call fcn.1002b28b
mov edi, dword [ebp + 8]
xor edx, edx
mov bl, dl
mov eax, edi
mov byte [ebp - 0x841], bl
mov dword [edi + 0x10], edx
cmp dword [edi + 0x14], 8
jb 0x10017ed1
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 7
pop esi
mov dword [ebp - 0x818], edx
mov dword [ebp - 0x814], esi
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x828]
mov dword [ebp - 4], edx
push eax
call fcn.100182ad
pop ecx
test al, al
je 0x1001823c
and dword [ebp - 0x800], 0
lea ecx, [ebp - 0x810]
xor eax, eax
mov dword [ebp - 0x7fc], esi
push 0x100319a8
mov word [ebp - 0x810], ax
call fcn.100032cd
and dword [ebp - 0x7e8], 0
lea ecx, [ebp - 0x7f8]
xor eax, eax
mov byte [ebp - 4], 1
push str.SoftwareMicrosoftOffice_sOutlookSecurity
mov dword [ebp - 0x7e4], esi
mov word [ebp - 0x7f8], ax
call fcn.100032cd
cmp dword [ebp - 0x7fc], 8
lea edx, [ebp - 0x810]
mov eax, dword [ebp - 0x800]
lea ebx, [ebp - 0x7f8]
cmovae edx, dword [ebp - 0x810]
cmp dword [ebp - 0x7e4], 8
mov ecx, dword [ebp - 0x7e8]
cmovae ebx, dword [ebp - 0x7f8]
mov byte [ebp - 4], 2
mov dword [ebp - 0x848], edx
mov dword [ebp - 0x850], eax
cmp eax, ecx
ja 0x10018007
lfence
test eax, eax
jne 0x10017fa9
xor esi, esi
jmp 0x1001800a
sub ecx, eax
inc ecx
lea eax, [ebx + ecx*2]
movzx ecx, word [edx]
mov dword [ebp - 0x84c], eax
sub eax, ebx
sar eax, 1
push eax
push ecx
mov dword [ebp - 0x858], ecx
push ebx
jmp 0x10017ff9
push dword [ebp - 0x850]
push dword [ebp - 0x848]
push esi
call fcn.10021234
add esp, 0xc
test eax, eax
je 0x100182a4
mov eax, dword [ebp - 0x84c]
add esi, 2
sub eax, esi
sar eax, 1
push eax
push dword [ebp - 0x858]
push esi
call fcn.10021234
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10017fc7
or esi, 0xffffffff
push 8
pop ebx
cmp dword [ebp - 0x814], ebx
lea eax, [ebp - 0x828]
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
lea ecx, [ebp - 0x7f8]
push eax
push dword [ebp - 0x850]
push esi
call fcn.10021234
cmp dword [ebp - 0x7e4], ebx
lea ecx, [ebp - 0x854]
push ecx
lea eax, [ebp - 0x7f8]
cmovae eax, dword [ebp - 0x7f8]
xor esi, esi
push 0x20019
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001816d
lea eax, [ebp - 0x858]
mov dword [ebp - 0x850], esi
push eax
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x858], 0x7d0
push eax
lea eax, [ebp - 0x850]
push eax
push esi
push str.OutlookSecureTempFolder
push dword [ebp - 0x854]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018161
cmp dword [ebp - 0x850], 1
jne 0x10018161
cmp dword [ebp - 0x858], esi
je 0x10018161
mov word [ebp - 0x840], ax
lea ecx, [ebp - 0x840]
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x830], esi
push eax
mov dword [ebp - 0x82c], 7
call fcn.100032cd
lea eax, [ebp - 0x840]
mov ecx, edi
push eax
call fcn.10021234
mov eax, dword [ebp - 0x82c]
cmp eax, ebx
jb 0x1001815a
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x848], ecx
mov byte [ebp - 4], 3
cmp eax, 0x1000
jb 0x1001814d
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.10021234
mov eax, dword [ebp - 0x84c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x848]
push eax
push ecx
call fcn.10021234
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov byte [ebp - 0x841], 1
push dword [ebp - 0x854]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7e4]
cmp eax, ebx
jb 0x100181c5
mov ecx, dword [ebp - 0x7f8]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], ecx
mov byte [ebp - 4], 4
cmp eax, 0x1000
jb 0x100181bc
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.10021234
mov eax, dword [ebp - 0x848]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x84c]
push eax
push ecx
call fcn.10021234
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x7e8], esi
mov word [ebp - 0x7f8], ax
mov eax, dword [ebp - 0x7fc]
mov dword [ebp - 0x7e4], 7
cmp eax, ebx
jb 0x10018236
mov ecx, dword [ebp - 0x810]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], ecx
mov byte [ebp - 4], 5
cmp eax, 0x1000
jb 0x1001822d
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.10021234
mov eax, dword [ebp - 0x848]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x84c]
push eax
push ecx
call fcn.10021234
pop ecx
pop ecx
mov bl, byte [ebp - 0x841]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x1001829c
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x848], ecx
mov dword [ebp - 4], 6
cmp eax, 0x1000
jb 0x10018293
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.10021234
mov eax, dword [ebp - 0x854]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x848]
push eax
push ecx
call fcn.10021234
pop ecx
pop ecx
mov al, bl
call fcn.1002b235
ret
sub esi, ebx
sar esi, 1
jmp 0x1001800a