Function at 0x426af0
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 0x4b183a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f8
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x52
xorps xmm0, xmm0
mov dword [ebp - 0x4a4], 0
xor eax, eax
movq qword [ebp - 0x250], xmm0
push str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto_UpdateRebootRequired
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 7
mov word [ebp - 0x508], ax
call fcn.00407990
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4f0]
push 0x51
xor eax, eax
mov dword [ebp - 0x4e0], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingRebootPending
mov dword [ebp - 0x4dc], 7
mov word [ebp - 0x4f0], ax
call fcn.00407990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4d8]
push 0x54
xor eax, eax
mov dword [ebp - 0x4c8], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingRebootInProgress
mov dword [ebp - 0x4c4], 7
mov word [ebp - 0x4d8], ax
call fcn.00407990
mov dword [ebp - 4], 2
lea eax, [ebp - 0x4c0]
push dword [ebp - 0x228]
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push eax
lea eax, [ebp - 0x508]
mov dword [ebp - 0x24c], 0
push eax
mov dword [ebp - 0x248], 0
call fcn.0043c850
push fcn.00404d30
push 3
push 0x18
lea eax, [ebp - 0x508]
mov byte [ebp - 4], 4
push eax
call fcn.0046f320
mov eax, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x250]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x22c], eax
cmp esi, eax
je 0x426d9f
nop word [eax + eax]
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 0x4a5], 0
mov dword [ebp - 0x224], 0
jb 0x426c8b
mov eax, dword [esi]
lea ecx, [ebp - 0x224]
push ecx
push 0x20119
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x426cc5
push dword [ebp - 0x224]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x4a5], 1
call edi
jmp 0x426d83
cmp edi, 2
je 0x426d7d
lea ecx, [ebp - 0x4c0]
call fcn.0045f3e0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426ce8
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x3b1
mov ecx, eax
call fcn.0040dda0
mov edx, str.:_Error_RegOpenKeyEx:
mov ecx, eax
call fcn.0040f7a0
push edi
mov ecx, eax
call fcn.004188b0
push eax
call fcn.0040fb10
mov byte [ebp - 4], 4
add esp, 4
mov edx, dword [ebp - 0x4ac]
cmp edx, 8
jb 0x426d7d
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426d73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4274e3
push edx
push ecx
call fcn.0046f0d0
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x4a5], 0
jne 0x426e2a
add esi, 0x18
cmp esi, dword [ebp - 0x22c]
jne 0x426c70
push 0x48
xor eax, eax
mov dword [ebp - 0x4b0], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateServicesPending
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x4ac], 7
mov word [ebp - 0x4c0], ax
call fcn.00407990
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 7
call fcn.00426110
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4ac]
mov byte [ebp - 0x4a5], al
cmp edx, 8
jb 0x426f04
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426ef4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4274de
jmp 0x426ef4
lea ecx, [ebp - 0x4c0]
call fcn.0045f3e0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
mov edi, dword [eax + 0x10]
jb 0x426e44
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x43e
mov ecx, eax
call fcn.0040dda0
mov edx, str.:_HKLM_subkey_
mov ecx, eax
call fcn.0040f7a0
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x426e8f
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.004105c0
add esp, 4
mov edx, str._exists
mov ecx, eax
call fcn.0040f7a0
push eax
call fcn.0040fb10
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x42708e
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427084
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4274e3
jmp 0x427084
push edx
push ecx
call fcn.0046f0d0
mov al, byte [ebp - 0x4a5]
add esp, 8
test al, al
je 0x426f78
lea ecx, [ebp - 0x4c0]
call fcn.0045f3e0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426f22
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x446
mov ecx, eax
call fcn.0040dda0
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.0040f7a0
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateServicesPending
mov ecx, eax
call fcn.00418a90
mov edx, str._has_subkeys
jmp 0x426ea1
lea eax, [ebp - 0x4a4]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftUpdates
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4270a2
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], 4
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], 4
push eax
push 0
push str.UpdateExeVolatile
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42709a
cmp dword [ebp - 0x224], eax
jbe 0x42709a
push dword [ebp - 0x4a4]
call edi
lea ecx, [ebp - 0x4c0]
call fcn.0045f3e0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x427016
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x458
mov ecx, eax
call fcn.0040dda0
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.0040f7a0
mov edx, str.SOFTWAREMicrosoftUpdates
mov ecx, eax
call fcn.00418a90
mov edx, str._has_
mov ecx, eax
call fcn.0040f7a0
mov edx, str.UpdateExeVolatile
mov ecx, eax
call fcn.00418a90
mov edx, str._value
jmp 0x426ea1
push edx
push ecx
call fcn.0046f0d0
add esp, 8
mov byte [ebp - 0x4a5], 1
jmp 0x4274af
push dword [ebp - 0x4a4]
call edi
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00487250
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x42719d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x4c0]
mov esi, eax
call fcn.0045f3e0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4270f4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x464
mov ecx, eax
call fcn.0040dda0
mov edx, str.:_Error
mov ecx, eax
call fcn.0040f7a0
push esi
mov ecx, eax
call fcn.00418700
mov edx, str._calling_GetWindowsDirectory
mov ecx, eax
call fcn.0040f7a0
push eax
call fcn.0040fb10
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x427191
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427187
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4274e3
push edx
push ecx
call fcn.0046f0d0
add esp, 8
mov byte [ebp - 0x4a5], 0
jmp 0x4274af
xor eax, eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4271c3
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.00407990
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x244]
mov edx, dword [ebp - 0x230]
cmp edx, 8
mov esi, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x234]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x42724c
cmp ecx, edx
jae 0x427231
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x244]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x42724c
push 0x5c
mov byte [ebp - 0x228], 0
push dword [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x244]
call fcn.0040b7c0
push 0x14
push str.WinSxSpending.xml
lea ecx, [ebp - 0x244]
call fcn.0040c2d0
push 0x250
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.00487250
add esp, 0xc
lea ecx, [ebp - 0x4a0]
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x427387
lea ecx, [ebp - 0x4c0]
call fcn.0045f3e0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4272bb
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x476
mov ecx, eax
call fcn.0040dda0
mov edx, str.:_Found_at_least_one_match_for_
mov ecx, eax
call fcn.0040f7a0
cmp dword [ebp - 0x230], 8
lea edx, [ebp - 0x244]
push dword [ebp - 0x234]
cmovae edx, dword [ebp - 0x244]
mov ecx, eax
call fcn.004105c0
add esp, 4
mov edx, 0x4cbdbc
mov ecx, eax
call fcn.0040f7a0
push eax
call fcn.0040fb10
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x427374
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42736a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4274e3
push edx
push ecx
call fcn.0046f0d0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x4a5], 1
jmp 0x427456
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x42744f
lea ecx, [ebp - 0x4c0]
call fcn.0045f3e0
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4273b2
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4eb558
call fcn.004105c0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f7a0
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f7a0
push 0x47f
mov ecx, eax
call fcn.0040dda0
mov edx, str.:_Error
mov ecx, eax
call fcn.0040f7a0
push esi
mov ecx, eax
call fcn.00418700
mov edx, str._calling_FindFirstFile
mov ecx, eax
call fcn.0040f7a0
push eax
call fcn.0040fb10
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x42744f
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427445
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4274e3
push edx
push ecx
call fcn.0046f0d0
add esp, 8
mov byte [ebp - 0x4a5], 0
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x427492
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427488
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4274e3
push edx
push ecx
call fcn.0046f0d0
add esp, 8
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 7
mov word [ebp - 0x244], ax
lea ecx, [ebp - 0x250]
call fcn.00439e00
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.0046ebaf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0048a05c
call fcn.0048a05c
int3