Function at 0x100237f0
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
mov eax, dword [0x100902c0]
xor esi, esi
mov dword [esp + 0x18], esi
cmp eax, 1
jne 0x1002385c
call fcn.100152c0
neg eax
sbb eax, eax
and eax, 0x100
mov dword [0x100902c0], eax
lea ecx, [esp + 0x18]
push ecx
or eax, 0x20019
push eax
push esi
push str.SOFTWAREMicrosoftOffice
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x10023887
xor eax, eax
jmp 0x10023a5e
push 0x104
lea edx, [esp + 0x38]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10023a4b
inc esi
lea eax, [esp + 0x34]
mov dword [esp + 0x30], esi
call fcn.10015a70
test eax, eax
je 0x10023a29
lea eax, [esp + 0x34]
push eax
call fcn.10057062
mov edx, dword [0x1009238c]
mov ebx, eax
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x1009238c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edi
mov dword [esp + 0x254], 0
call fcn.10024530
test eax, eax
je 0x100239fe
mov ecx, ebx
call fcn.10024440
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0x804
je 0x1002391d
cmp esi, 0x409
jne 0x100239fe
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 byte [esp + 0x248], 1
call fcn.100247d0
mov ecx, dword [esp + 0x24]
push esi
xor esi, esi
push esi
push ebx
push edi
call fcn.10024340
mov dword [esp + 0x28], esi
jmp 0x10023960
mov eax, dword [esi + 0x100900c0]
mov ecx, dword [esp + 0x1c]
mov ebp, 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], ebp
jne 0x100239ac
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push 0
push edx
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.10024880
jmp 0x100239ca
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100239ca
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push edx
push ebp
push ebx
push eax
mov ecx, edi
call fcn.10024340
inc dword [esp + 0x28]
add esi, 0xc
cmp esi, 0x48
jb 0x10023960
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 0x100239fa
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 0x10023a29
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]
test eax, eax
je 0x100238a1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [edi + 0x10], eax
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