Function at 0x42aec0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd8ef
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f8
mov eax, dword [0x50c080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x4a4], 0
push 0x52
push str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto_UpdateRebootRequired
lea ecx, [ebp - 0x508]
movq qword [ebp - 0x250], xmm0
mov dword [ebp - 0x248], 0
movups xmmword [ebp - 0x508], xmm0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 0
call fcn.0040df90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4f0]
push 0x51
xorps xmm0, xmm0
mov dword [ebp - 0x4e0], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingRebootPending
movups xmmword [ebp - 0x4f0], xmm0
mov dword [ebp - 0x4dc], 0
call fcn.0040df90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4d8]
push 0x54
xorps xmm0, xmm0
mov dword [ebp - 0x4c8], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingRebootInProgress
movups xmmword [ebp - 0x4d8], xmm0
mov dword [ebp - 0x4c4], 0
call fcn.0040df90
lea ecx, [ebp - 0x508]
mov dword [ebp - 4], 2
push ecx
lea eax, [ebp - 0x4c0]
push eax
push ecx
lea ecx, [ebp - 0x250]
call fcn.0043cef0
push fcn.00406550
push 3
push 0x18
lea eax, [ebp - 0x508]
mov byte [ebp - 4], 4
push eax
call fcn.004911cf
mov eax, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x250]
cmp esi, eax
mov dword [ebp - 0x228], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
je 0x42b1e2
cmp dword [esi + 0x14], 7
mov eax, esi
mov dword [ebp - 0x224], 0
jbe 0x42b026
mov eax, dword [esi]
lea ecx, [ebp - 0x224]
push ecx
push 0x20119
push 0
push eax
push 0x80000002
call edi
mov edi, eax
test edi, edi
je 0x42b10c
cmp edi, 2
je 0x42b0fe
lea ecx, [ebp - 0x4c0]
call fcn.00467cf0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b069
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x3b1
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_RegOpenKeyEx:
mov ecx, eax
call fcn.00411050
push edi
mov ecx, eax
call fcn.0041b750
push eax
call fcn.004113d0
mov byte [ebp - 4], 4
add esp, 4
mov ecx, dword [ebp - 0x4ac]
cmp ecx, 7
jbe 0x42b0fe
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b0f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b81a
push ecx
push edx
call fcn.00490f7d
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x228]
jmp 0x42b006
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c0]
call fcn.00467cf0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov edi, dword [eax + 0x10]
jbe 0x42b132
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x43e
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_HKLM_subkey_
mov ecx, eax
call fcn.00411050
cmp dword [esi + 0x14], 7
mov ecx, dword [esi + 0x10]
jbe 0x42b17d
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, str._exists
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b3fb
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b3f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b81a
jmp 0x42b3f1
push 0x48
xorps xmm0, xmm0
mov dword [ebp - 0x4b0], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateServicesPending
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x4ac], 0
movups xmmword [ebp - 0x4c0], xmm0
call fcn.0040df90
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 7
call fcn.0042a500
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4ac]
mov byte [ebp - 0x4a5], al
cmp ecx, 7
jbe 0x42b271
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b261
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b81f
push ecx
push edx
call fcn.00490f7d
mov al, byte [ebp - 0x4a5]
add esp, 8
test al, al
je 0x42b2e5
lea ecx, [ebp - 0x4c0]
call fcn.00467cf0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b28f
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x446
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.00411050
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateServicesPending
mov ecx, eax
call fcn.0041b9a0
mov edx, str._has_subkeys
jmp 0x42b18f
lea eax, [ebp - 0x4a4]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftUpdates
push 0x80000002
call edi
test eax, eax
jne 0x42b413
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x244], 4
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x228], 4
push eax
push 0
push str.UpdateExeVolatile
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b407
cmp dword [ebp - 0x224], eax
jbe 0x42b407
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c0]
call fcn.00467cf0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b383
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x458
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.00411050
mov edx, str.SOFTWAREMicrosoftUpdates
mov ecx, eax
call fcn.0041b9a0
mov edx, str._has_
mov ecx, eax
call fcn.00411050
mov edx, str.UpdateExeVolatile
mov ecx, eax
call fcn.0041b9a0
mov edx, str._value
jmp 0x42b18f
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov byte [ebp - 0x4a5], 1
jmp 0x42b7eb
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00493220
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x42b50e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x4c0]
mov esi, eax
call fcn.00467cf0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b465
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x464
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b590
mov edx, str._calling_GetWindowsDirectory
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b502
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b4f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b81a
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov byte [ebp - 0x4a5], 0
jmp 0x42b7eb
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b535
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.0040df90
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x240]
cmp dword [ebp - 0x22c], 7
mov eax, dword [ebp - 0x230]
cmova ecx, dword [ebp - 0x240]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x42b58a
push 0x5c
lea ecx, [ebp - 0x240]
call fcn.0041c560
push str.WinSxSpending.xml
lea ecx, [ebp - 0x240]
call fcn.0040d6d0
push 0x250
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.00493220
add esp, 0xc
lea ecx, [ebp - 0x4a0]
cmp dword [ebp - 0x22c], 7
lea eax, [ebp - 0x240]
cmova eax, dword [ebp - 0x240]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42b6c3
lea ecx, [ebp - 0x4c0]
call fcn.00467cf0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b5f7
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x476
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Found_at_least_one_match_for_
mov ecx, eax
call fcn.00411050
cmp dword [ebp - 0x22c], 7
lea edx, [ebp - 0x240]
push dword [ebp - 0x230]
cmova edx, dword [ebp - 0x240]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, 0x4ef26c
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b6b0
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b6a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b81a
push ecx
push edx
call fcn.00490f7d
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x4a5], 1
jmp 0x42b792
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x42b78b
lea ecx, [ebp - 0x4c0]
call fcn.00467cf0
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b6ee
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x47f
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b590
mov edx, str._calling_FindFirstFile
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b78b
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b781
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b81a
push ecx
push edx
call fcn.00490f7d
add esp, 8
mov byte [ebp - 0x4a5], 0
mov ecx, dword [ebp - 0x22c]
cmp ecx, 7
jbe 0x42b7ce
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b7c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b81a
push ecx
push edx
call fcn.00490f7d
add esp, 8
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea ecx, [ebp - 0x250]
call fcn.0043fc80
mov al, byte [ebp - 0x4a5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00490c46
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004961af
call fcn.004961af
int3