Function at 0x426460
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 0x4b0a7a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f8
mov eax, dword [0x4e506c]
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.004078c0
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.004078c0
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.004078c0
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.0043c340
push fcn.00404c50
push 3
push 0x18
lea eax, [ebp - 0x508]
mov byte [ebp - 4], 4
push eax
call fcn.0046e5f3
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 0x42670f
nop word [eax + eax]
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 0x4a5], 0
mov dword [ebp - 0x224], 0
jb 0x4265fb
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 0x426635
push dword [ebp - 0x224]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x4a5], 1
call edi
jmp 0x4266f3
cmp edi, 2
je 0x4266ed
lea ecx, [ebp - 0x4c0]
call fcn.0045e700
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426658
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0x396
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_Error_RegOpenKeyEx:
mov ecx, eax
call fcn.0040f6d0
push edi
mov ecx, eax
call fcn.00419660
push eax
call fcn.0040fa40
mov byte [ebp - 4], 4
add esp, 4
mov edx, dword [ebp - 0x4ac]
cmp edx, 8
jb 0x4266ed
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4266e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426e53
push edx
push ecx
call fcn.0046e3a3
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x4a5], 0
jne 0x42679a
add esi, 0x18
cmp esi, dword [ebp - 0x22c]
jne 0x4265e0
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.004078c0
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 7
call fcn.00425a80
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4ac]
mov byte [ebp - 0x4a5], al
cmp edx, 8
jb 0x426874
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426864
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426e4e
jmp 0x426864
lea ecx, [ebp - 0x4c0]
call fcn.0045e700
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
mov edi, dword [eax + 0x10]
jb 0x4267b4
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0x423
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_HKLM_subkey_
mov ecx, eax
call fcn.0040f6d0
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x4267ff
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.004104f0
add esp, 4
mov edx, str._exists
mov ecx, eax
call fcn.0040f6d0
push eax
call fcn.0040fa40
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x4269fe
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4269f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426e53
jmp 0x4269f4
push edx
push ecx
call fcn.0046e3a3
mov al, byte [ebp - 0x4a5]
add esp, 8
test al, al
je 0x4268e8
lea ecx, [ebp - 0x4c0]
call fcn.0045e700
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426892
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0x42b
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.0040f6d0
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateServicesPending
mov ecx, eax
call fcn.00419840
mov edx, str._has_subkeys
jmp 0x426811
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 0x426a12
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 0x426a0a
cmp dword [ebp - 0x224], eax
jbe 0x426a0a
push dword [ebp - 0x4a4]
call edi
lea ecx, [ebp - 0x4c0]
call fcn.0045e700
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426986
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0x43d
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.0040f6d0
mov edx, str.SOFTWAREMicrosoftUpdates
mov ecx, eax
call fcn.00419840
mov edx, str._has_
mov ecx, eax
call fcn.0040f6d0
mov edx, str.UpdateExeVolatile
mov ecx, eax
call fcn.00419840
mov edx, str._value
jmp 0x426811
push edx
push ecx
call fcn.0046e3a3
add esp, 8
mov byte [ebp - 0x4a5], 1
jmp 0x426e1f
push dword [ebp - 0x4a4]
call edi
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004864f0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x426b0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x4c0]
mov esi, eax
call fcn.0045e700
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426a64
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0x449
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_Error
mov ecx, eax
call fcn.0040f6d0
push esi
mov ecx, eax
call fcn.004194b0
mov edx, str._calling_GetWindowsDirectory
mov ecx, eax
call fcn.0040f6d0
push eax
call fcn.0040fa40
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x426b01
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426af7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426e53
push edx
push ecx
call fcn.0046e3a3
add esp, 8
mov byte [ebp - 0x4a5], 0
jmp 0x426e1f
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 0x426b33
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.004078c0
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 0x426bbc
cmp ecx, edx
jae 0x426ba1
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 0x426bbc
push 0x5c
mov byte [ebp - 0x228], 0
push dword [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x244]
call fcn.0040b6f0
push 0x14
push str.WinSxSpending.xml
lea ecx, [ebp - 0x244]
call fcn.0040c200
push 0x250
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.004864f0
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 0x426cf7
lea ecx, [ebp - 0x4c0]
call fcn.0045e700
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426c2b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0x45b
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_Found_at_least_one_match_for_
mov ecx, eax
call fcn.0040f6d0
cmp dword [ebp - 0x230], 8
lea edx, [ebp - 0x244]
push dword [ebp - 0x234]
cmovae edx, dword [ebp - 0x244]
mov ecx, eax
call fcn.004104f0
add esp, 4
mov edx, 0x4cae74
mov ecx, eax
call fcn.0040f6d0
push eax
call fcn.0040fa40
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x426ce4
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426cda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426e53
push edx
push ecx
call fcn.0046e3a3
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x4a5], 1
jmp 0x426dc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x426dbf
lea ecx, [ebp - 0x4c0]
call fcn.0045e700
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426d22
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0x464
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_Error
mov ecx, eax
call fcn.0040f6d0
push esi
mov ecx, eax
call fcn.004194b0
mov edx, str._calling_FindFirstFile
mov ecx, eax
call fcn.0040f6d0
push eax
call fcn.0040fa40
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x426dbf
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426db5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426e53
push edx
push ecx
call fcn.0046e3a3
add esp, 8
mov byte [ebp - 0x4a5], 0
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x426e02
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426df8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426e53
push edx
push ecx
call fcn.0046e3a3
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.004398f0
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.0046de82
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004892fc
call fcn.004892fc
int3