Function at 0x42afe0
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 0x4bd03f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f8
mov eax, dword [0x50b080]
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.0043d1f0
push fcn.00406550
push 3
push 0x18
lea eax, [ebp - 0x508]
mov byte [ebp - 4], 4
push eax
call fcn.0049091f
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 0x42b302
cmp dword [esi + 0x14], 7
mov eax, esi
mov dword [ebp - 0x224], 0
jbe 0x42b146
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 0x42b22c
cmp edi, 2
je 0x42b21e
lea ecx, [ebp - 0x4c0]
call fcn.00467d30
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b189
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x3b4
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_RegOpenKeyEx:
mov ecx, eax
call fcn.00411050
push edi
mov ecx, eax
call fcn.0041b830
push eax
call fcn.004113d0
mov byte [ebp - 4], 4
add esp, 4
mov ecx, dword [ebp - 0x4ac]
cmp ecx, 7
jbe 0x42b21e
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b214
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b93a
push ecx
push edx
call fcn.004906cd
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x228]
jmp 0x42b126
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c0]
call fcn.00467d30
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov edi, dword [eax + 0x10]
jbe 0x42b252
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x441
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 0x42b29d
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 0x42b51b
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b511
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b93a
jmp 0x42b511
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.0042a620
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4ac]
mov byte [ebp - 0x4a5], al
cmp ecx, 7
jbe 0x42b391
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b381
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b93f
push ecx
push edx
call fcn.004906cd
mov al, byte [ebp - 0x4a5]
add esp, 8
test al, al
je 0x42b405
lea ecx, [ebp - 0x4c0]
call fcn.00467d30
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b3af
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x449
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.0041ba80
mov edx, str._has_subkeys
jmp 0x42b2af
lea eax, [ebp - 0x4a4]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftUpdates
push 0x80000002
call edi
test eax, eax
jne 0x42b533
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 0x42b527
cmp dword [ebp - 0x224], eax
jbe 0x42b527
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c0]
call fcn.00467d30
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b4a3
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x45b
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.0041ba80
mov edx, str._has_
mov ecx, eax
call fcn.00411050
mov edx, str.UpdateExeVolatile
mov ecx, eax
call fcn.0041ba80
mov edx, str._value
jmp 0x42b2af
push ecx
push edx
call fcn.004906cd
add esp, 8
mov byte [ebp - 0x4a5], 1
jmp 0x42b90b
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00492970
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x42b62e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x4c0]
mov esi, eax
call fcn.00467d30
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b585
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x467
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b670
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 0x42b622
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b618
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b93a
push ecx
push edx
call fcn.004906cd
add esp, 8
mov byte [ebp - 0x4a5], 0
jmp 0x42b90b
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 0x42b655
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 0x42b6aa
push 0x5c
lea ecx, [ebp - 0x240]
call fcn.0041c640
push str.WinSxSpending.xml
lea ecx, [ebp - 0x240]
call fcn.0040d6d0
push 0x250
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.00492970
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 0x42b7e3
lea ecx, [ebp - 0x4c0]
call fcn.00467d30
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b717
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x479
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, 0x4ee2ec
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b7d0
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b7c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b93a
push ecx
push edx
call fcn.004906cd
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x4a5], 1
jmp 0x42b8b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x42b8ab
lea ecx, [ebp - 0x4c0]
call fcn.00467d30
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b80e
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x482
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b670
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 0x42b8ab
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b8a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b93a
push ecx
push edx
call fcn.004906cd
add esp, 8
mov byte [ebp - 0x4a5], 0
mov ecx, dword [ebp - 0x22c]
cmp ecx, 7
jbe 0x42b8ee
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b8e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b93a
push ecx
push edx
call fcn.004906cd
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.0043ff80
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.00490396
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004958ff
call fcn.004958ff
int3