Function at 0x42ae30
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 0x4afd7f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f8
mov eax, dword [0x4de080]
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.0043ce70
push fcn.00406550
push 3
push 0x18
lea eax, [ebp - 0x508]
mov byte [ebp - 4], 4
push eax
call fcn.004837af
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 0x42b152
cmp dword [esi + 0x14], 7
mov eax, esi
mov dword [ebp - 0x224], 0
jbe 0x42af96
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 0x42b07c
cmp edi, 2
je 0x42b06e
lea ecx, [ebp - 0x4c0]
call fcn.00467c30
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42afd9
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x3b1
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_RegOpenKeyEx:
mov ecx, eax
call fcn.00411040
push edi
mov ecx, eax
call fcn.0041b6a0
push eax
call fcn.004113c0
mov byte [ebp - 4], 4
add esp, 4
mov ecx, dword [ebp - 0x4ac]
cmp ecx, 7
jbe 0x42b06e
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b064
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b78a
push ecx
push edx
call fcn.0048355d
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x228]
jmp 0x42af76
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c0]
call fcn.00467c30
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov edi, dword [eax + 0x10]
jbe 0x42b0a2
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x43e
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_HKLM_subkey_
mov ecx, eax
call fcn.00411040
cmp dword [esi + 0x14], 7
mov ecx, dword [esi + 0x10]
jbe 0x42b0ed
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, str._exists
mov ecx, eax
call fcn.00411040
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b36b
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b361
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b78a
jmp 0x42b361
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.0042a460
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4ac]
mov byte [ebp - 0x4a5], al
cmp ecx, 7
jbe 0x42b1e1
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b1d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b78f
push ecx
push edx
call fcn.0048355d
mov al, byte [ebp - 0x4a5]
add esp, 8
test al, al
je 0x42b255
lea ecx, [ebp - 0x4c0]
call fcn.00467c30
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b1ff
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x446
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.00411040
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateServicesPending
mov ecx, eax
call fcn.0041b8f0
mov edx, str._has_subkeys
jmp 0x42b0ff
lea eax, [ebp - 0x4a4]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftUpdates
push 0x80000002
call edi
test eax, eax
jne 0x42b383
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 0x42b377
cmp dword [ebp - 0x224], eax
jbe 0x42b377
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c0]
call fcn.00467c30
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b2f3
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x458
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.00411040
mov edx, str.SOFTWAREMicrosoftUpdates
mov ecx, eax
call fcn.0041b8f0
mov edx, str._has_
mov ecx, eax
call fcn.00411040
mov edx, str.UpdateExeVolatile
mov ecx, eax
call fcn.0041b8f0
mov edx, str._value
jmp 0x42b0ff
push ecx
push edx
call fcn.0048355d
add esp, 8
mov byte [ebp - 0x4a5], 1
jmp 0x42b75b
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00485800
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x42b47e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x4c0]
mov esi, eax
call fcn.00467c30
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b3d5
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x464
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error
mov ecx, eax
call fcn.00411040
push esi
mov ecx, eax
call fcn.0041b4e0
mov edx, str._calling_GetWindowsDirectory
mov ecx, eax
call fcn.00411040
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b472
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b468
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b78a
push ecx
push edx
call fcn.0048355d
add esp, 8
mov byte [ebp - 0x4a5], 0
jmp 0x42b75b
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 0x42b4a5
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 0x42b4fa
push 0x5c
lea ecx, [ebp - 0x240]
call fcn.0041c4b0
push str.WinSxSpending.xml
lea ecx, [ebp - 0x240]
call fcn.0040d6d0
push 0x250
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.00485800
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 0x42b633
lea ecx, [ebp - 0x4c0]
call fcn.00467c30
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b567
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x476
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Found_at_least_one_match_for_
mov ecx, eax
call fcn.00411040
cmp dword [ebp - 0x22c], 7
lea edx, [ebp - 0x240]
push dword [ebp - 0x230]
cmova edx, dword [ebp - 0x240]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, 0x4c41fc
mov ecx, eax
call fcn.00411040
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b620
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b616
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b78a
push ecx
push edx
call fcn.0048355d
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x4a5], 1
jmp 0x42b702
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x42b6fb
lea ecx, [ebp - 0x4c0]
call fcn.00467c30
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x42b65e
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBSetup.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x47f
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error
mov ecx, eax
call fcn.00411040
push esi
mov ecx, eax
call fcn.0041b4e0
mov edx, str._calling_FindFirstFile
mov ecx, eax
call fcn.00411040
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x4ac]
add esp, 4
cmp ecx, 7
jbe 0x42b6fb
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b6f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b78a
push ecx
push edx
call fcn.0048355d
add esp, 8
mov byte [ebp - 0x4a5], 0
mov ecx, dword [ebp - 0x22c]
cmp ecx, 7
jbe 0x42b73e
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42b734
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b78a
push ecx
push edx
call fcn.0048355d
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.0043fc00
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.00483226
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0048878f
call fcn.0048878f
int3