Function at 0x10023570
Capabilities:
Check if file exists
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x100774d6
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x1008e418]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008e418]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
mov dword [esp + 0x20], edi
call fcn.10022bf0
lea eax, [esp + 0x18]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftOffice
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x100235e9
xor eax, eax
jmp 0x100237c0
push 0x104
lea ecx, [esp + 0x38]
push ecx
push ebx
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x100237ad
inc esi
lea eax, [esp + 0x34]
mov dword [esp + 0x30], esi
call fcn.10015a70
test eax, eax
je 0x10023789
lea edx, [esp + 0x34]
push edx
call fcn.10057062
mov ebp, eax
mov eax, dword [0x1009238c]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x1009238c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
mov dword [esp + 0x254], ebx
call fcn.10023b60
test eax, eax
je 0x1002375e
mov ecx, ebp
call fcn.10023a90
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0x804
je 0x1002367c
cmp esi, 0x409
jne 0x1002375e
mov edx, dword [0x1009238c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1009238c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov ecx, ebp
mov byte [esp + 0x248], 1
call fcn.10023de0
mov ecx, dword [esp + 0x24]
push esi
push ebx
push ebp
push edi
call fcn.10024340
mov dword [esp + 0x28], ebx
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x100900c0]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 0x100900b8]
push eax
push ecx
push str._s_s.exe
lea edi, [esp + 0x30]
call fcn.10016c70
mov edi, dword [esp + 0x30]
add esp, 0xc
cmp dword [0x100900f4], ebx
jne 0x1002370c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push 0
push edx
push eax
push ebp
push ecx
lea ecx, [esp + 0x30]
call fcn.10023ea0
jmp 0x1002372a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002372a
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push edx
push ebx
push ebp
push eax
mov ecx, edi
call fcn.10024340
inc dword [esp + 0x28]
add esi, 0xc
cmp esi, 0x48
jb 0x100236c0
lea eax, [edi - 0x10]
mov byte [esp + 0x248], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002375a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10023789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push 0x104
lea ecx, [esp + 0x38]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor ebx, ebx
test eax, eax
je 0x10023605
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [edi + 0x10], ebx
setg al
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.10055232
add esp, 0x238
ret