Function at 0x426630
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 0x4b017a
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.00407920
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.00407920
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.00407920
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.0043c3a0
push fcn.00404cc0
push 3
push 0x18
lea eax, [ebp - 0x508]
mov byte [ebp - 4], 4
push eax
call fcn.0046dcb7
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 0x4268df
nop word [eax + eax]
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 0x4a5], 0
mov dword [ebp - 0x224], 0
jb 0x4267cb
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 0x426805
push dword [ebp - 0x224]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x4a5], 1
call edi
jmp 0x4268c3
cmp edi, 2
je 0x4268bd
lea ecx, [ebp - 0x4c0]
call fcn.0045dd60
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426828
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94d8
call fcn.00410550
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c8104
mov ecx, eax
call fcn.0040f730
push 0x39a
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_Error_RegOpenKeyEx:
mov ecx, eax
call fcn.0040f730
push edi
mov ecx, eax
call fcn.004187d0
push eax
call fcn.0040faa0
mov byte [ebp - 4], 4
add esp, 4
mov edx, dword [ebp - 0x4ac]
cmp edx, 8
jb 0x4268bd
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4268b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427023
push edx
push ecx
call fcn.0046da67
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x4a5], 0
jne 0x42696a
add esi, 0x18
cmp esi, dword [ebp - 0x22c]
jne 0x4267b0
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.00407920
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 7
call fcn.00425c50
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4ac]
mov byte [ebp - 0x4a5], al
cmp edx, 8
jb 0x426a44
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426a34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42701e
jmp 0x426a34
lea ecx, [ebp - 0x4c0]
call fcn.0045dd60
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
mov edi, dword [eax + 0x10]
jb 0x426984
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, 0x4e94d8
call fcn.00410550
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c8104
mov ecx, eax
call fcn.0040f730
push 0x427
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_HKLM_subkey_
mov ecx, eax
call fcn.0040f730
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x4269cf
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00410550
add esp, 4
mov edx, str._exists
mov ecx, eax
call fcn.0040f730
push eax
call fcn.0040faa0
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x426bce
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426bc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427023
jmp 0x426bc4
push edx
push ecx
call fcn.0046da67
mov al, byte [ebp - 0x4a5]
add esp, 8
test al, al
je 0x426ab8
lea ecx, [ebp - 0x4c0]
call fcn.0045dd60
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426a62
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94d8
call fcn.00410550
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c8104
mov ecx, eax
call fcn.0040f730
push 0x42f
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.0040f730
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateServicesPending
mov ecx, eax
call fcn.004189b0
mov edx, str._has_subkeys
jmp 0x4269e1
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 0x426be2
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 0x426bda
cmp dword [ebp - 0x224], eax
jbe 0x426bda
push dword [ebp - 0x4a4]
call edi
lea ecx, [ebp - 0x4c0]
call fcn.0045dd60
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426b56
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94d8
call fcn.00410550
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c8104
mov ecx, eax
call fcn.0040f730
push 0x441
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_HKLM_key_
mov ecx, eax
call fcn.0040f730
mov edx, str.SOFTWAREMicrosoftUpdates
mov ecx, eax
call fcn.004189b0
mov edx, str._has_
mov ecx, eax
call fcn.0040f730
mov edx, str.UpdateExeVolatile
mov ecx, eax
call fcn.004189b0
mov edx, str._value
jmp 0x4269e1
push edx
push ecx
call fcn.0046da67
add esp, 8
mov byte [ebp - 0x4a5], 1
jmp 0x426fef
push dword [ebp - 0x4a4]
call edi
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00485bb0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x426cdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x4c0]
mov esi, eax
call fcn.0045dd60
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426c34
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94d8
call fcn.00410550
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c8104
mov ecx, eax
call fcn.0040f730
push 0x44d
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_Error
mov ecx, eax
call fcn.0040f730
push esi
mov ecx, eax
call fcn.00418620
mov edx, str._calling_GetWindowsDirectory
mov ecx, eax
call fcn.0040f730
push eax
call fcn.0040faa0
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x426cd1
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426cc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427023
push edx
push ecx
call fcn.0046da67
add esp, 8
mov byte [ebp - 0x4a5], 0
jmp 0x426fef
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 0x426d03
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.00407920
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 0x426d8c
cmp ecx, edx
jae 0x426d71
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 0x426d8c
push 0x5c
mov byte [ebp - 0x228], 0
push dword [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x244]
call fcn.0040b750
push 0x14
push str.WinSxSpending.xml
lea ecx, [ebp - 0x244]
call fcn.0040c260
push 0x250
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.00485bb0
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 0x426ec7
lea ecx, [ebp - 0x4c0]
call fcn.0045dd60
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426dfb
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94d8
call fcn.00410550
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c8104
mov ecx, eax
call fcn.0040f730
push 0x45f
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_Found_at_least_one_match_for_
mov ecx, eax
call fcn.0040f730
cmp dword [ebp - 0x230], 8
lea edx, [ebp - 0x244]
push dword [ebp - 0x234]
cmovae edx, dword [ebp - 0x244]
mov ecx, eax
call fcn.00410550
add esp, 4
mov edx, 0x4cae54
mov ecx, eax
call fcn.0040f730
push eax
call fcn.0040faa0
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x426eb4
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426eaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427023
push edx
push ecx
call fcn.0046da67
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x4a5], 1
jmp 0x426f96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x426f8f
lea ecx, [ebp - 0x4c0]
call fcn.0045dd60
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x426ef2
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94d8
call fcn.00410550
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb5_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c8104
mov ecx, eax
call fcn.0040f730
push 0x468
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_Error
mov ecx, eax
call fcn.0040f730
push esi
mov ecx, eax
call fcn.00418620
mov edx, str._calling_FindFirstFile
mov ecx, eax
call fcn.0040f730
push eax
call fcn.0040faa0
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x426f8f
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426f85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427023
push edx
push ecx
call fcn.0046da67
add esp, 8
mov byte [ebp - 0x4a5], 0
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x426fd2
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426fc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427023
push edx
push ecx
call fcn.0046da67
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.00439950
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.0046d546
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004889bc
call fcn.004889bc
int3