Function at 0x4232b0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c15e
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x4cb06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x52
xorps xmm0, xmm0
mov dword [ebp - 0x49c], 0
xor eax, eax
movq qword [ebp - 0x244], xmm0
push str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto_UpdateRebootRequired
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x4f0], 0
mov dword [ebp - 0x4ec], 7
mov word [ebp - 0x500], ax
call fcn.00407780
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4e8]
push 0x51
xor eax, eax
mov dword [ebp - 0x4d8], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingRebootPending
mov dword [ebp - 0x4d4], 7
mov word [ebp - 0x4e8], ax
call fcn.00407780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4d0]
push 0x54
xor eax, eax
mov dword [ebp - 0x4c0], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingRebootInProgress
mov dword [ebp - 0x4bc], 7
mov word [ebp - 0x4d0], ax
call fcn.00407780
mov dword [ebp - 4], 2
lea eax, [ebp - 0x4b8]
push dword [ebp - 0x220]
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
lea eax, [ebp - 0x500]
mov dword [ebp - 0x240], 0
push eax
mov dword [ebp - 0x23c], 0
call fcn.00436060
push fcn.00404b20
push 3
push 0x18
lea eax, [ebp - 0x500]
mov byte [ebp - 4], 4
push eax
call fcn.0045dbd0
mov esi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x240]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, ebx
je 0x423537
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x21c], 0
jb 0x423420
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
push ecx
push 0x20119
push 0
push eax
push 0x80000002
call edi
mov edi, eax
test edi, edi
je 0x423500
cmp edi, 2
je 0x4234f8
lea ecx, [ebp - 0x4b4]
call fcn.0044e680
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x423463
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x34e
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error_RegOpenKeyEx:
mov ecx, eax
call fcn.0040ab10
push edi
mov ecx, eax
call fcn.00407a40
push eax
call fcn.0040ae80
mov byte [ebp - 4], 4
add esp, 4
mov edx, dword [ebp - 0x4a0]
cmp edx, 8
jb 0x4234f8
mov ecx, dword [ebp - 0x4b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4234ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42396c
push edx
push ecx
call fcn.0045d989
add esp, 8
add esi, 0x18
jmp 0x4233fe
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea ecx, [ebp - 0x244]
call fcn.00433be0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d468
mov esp, ebp
pop ebp
ret
push 0x48
xor eax, eax
mov dword [ebp - 0x4a4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateServicesPending
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 0x4a0], 7
mov word [ebp - 0x4b4], ax
call fcn.00407780
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 6
call fcn.004228d0
mov byte [ebp - 4], 4
mov bl, al
mov edx, dword [ebp - 0x4a0]
cmp edx, 8
jb 0x4235bb
mov ecx, dword [ebp - 0x4b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4235b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42396c
push edx
push ecx
call fcn.0045d989
add esp, 8
test bl, bl
jne 0x42350c
lea eax, [ebp - 0x49c]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftUpdates
push 0x80000002
call edi
test eax, eax
jne 0x423646
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 4
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x248], 4
push eax
push 0
push str.UpdateExeVolatile
push dword [ebp - 0x49c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42363a
cmp dword [ebp - 0x21c], eax
jbe 0x42363a
push dword [ebp - 0x49c]
jmp 0x423506
push dword [ebp - 0x49c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00475700
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x42373c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x4b4]
mov esi, eax
call fcn.0044e680
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov edi, dword [eax + 0x10]
jb 0x423698
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x3f9
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error
mov ecx, eax
call fcn.0040ab10
push esi
mov ecx, eax
call fcn.004167c0
mov edx, str._calling_GetWindowsDirectory
mov ecx, eax
call fcn.0040ab10
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x4a0]
add esp, 4
cmp edx, 8
jb 0x423735
mov ecx, dword [ebp - 0x4b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42372b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423971
push edx
push ecx
call fcn.0045d989
add esp, 8
xor bl, bl
jmp 0x42350e
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423762
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00407780
mov byte [ebp - 4], 8
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x224]
cmp edx, 8
mov esi, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x228]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4237eb
cmp ecx, edx
jae 0x4237d0
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x238]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x4237eb
push 0x5c
mov byte [ebp - 0x220], 0
push dword [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00417480
push 0x14
push str.WinSxSpending.xml
lea ecx, [ebp - 0x238]
call fcn.00417a80
push 0x250
lea eax, [ebp - 0x498]
push 0
push eax
call fcn.00475700
add esp, 0xc
lea ecx, [ebp - 0x498]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x423848
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x42390e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x42390c
lea ecx, [ebp - 0x4b4]
call fcn.0044e680
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x423873
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x413
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error
mov ecx, eax
call fcn.0040ab10
push esi
mov ecx, eax
call fcn.004167c0
mov edx, str._calling_FindFirstFile
mov ecx, eax
call fcn.0040ab10
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x4a0]
add esp, 4
cmp edx, 8
jb 0x42390c
mov ecx, dword [ebp - 0x4b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423902
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423976
push edx
push ecx
call fcn.0045d989
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x42394a
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42397b
push edx
push ecx
call fcn.0045d989
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
jmp 0x42350e
call fcn.004786bc
call fcn.004786bc
call fcn.004786bc
call fcn.004786bc
int3