Function at 0x140002024
Capabilities:
Check for time delay via gettickcount
Check if file exists
Check os version
Create directory
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1440
call fcn.14000cc60
sub rsp, rax
mov rax, qword [0x1400175c8]
xor rax, rsp
mov qword [rsp + 0x1430], rax
mov r14, r8
mov qword [0x140017bb0], rcx
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x3b0]
call sub.msvcrt.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x5c0]
call sub.msvcrt.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x1a0]
call sub.msvcrt.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x9e0]
call sub.msvcrt.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x7d0]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_memset
xor esi, esi
mov qword [rsp + 0xa8], rsi
mov r15d, esi
mov r12d, esi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x64], esi
lea r13d, [rsi + 1]
mov dword [rsp + 0x78], r13d
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x60], esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov dword [rsp + 0x84], eax
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0xbf0]
call sub.msvcrt.dll_memset
mov qword [rsp + 0xb0], rsi
mov r8d, 0x104
lea rdx, [rsp + 0xbf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x1400030f4
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x3b0]
mov edx, 0x104
lea rcx, [rsp + 0xbf0]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
test eax, eax
je 0x1400030f4
cmp si, word [rsp + 0x3b0]
je 0x1400030f4
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x1400030f4
mov word [rax - 2], si
cmp si, word [r14]
je 0x1400024c2
lea rdx, [0x14000f2b8]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400021f0
lea rdx, str._BTFolder
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140002340
mov edx, 0x20
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x140002230
mov r15, rsi
mov qword [rsp + 0x90], rsi
jmp 0x140002340
test rbx, rbx
jne 0x14000225a
lea r8, [rax + 2]
cmp si, word [r8]
je 0x140002340
mov edx, 0x104
lea rcx, [rsp + 0x5c0]
call fcn.140004b80
jmp 0x140002330
sub rbx, rax
sar rbx, 1
cmp rbx, r13
jle 0x140002340
dec rbx
cmp rbx, 0x7ffffffe
jbe 0x140002282
mov word [rsp + 0x5c0], si
jmp 0x140002330
mov qword [rsp + 0xe8], rbx
lea r8, [rax + 2]
mov qword [rsp + 0xd8], r8
mov edx, 0x104
mov qword [rsp + 0xe0], rdx
lea rax, [rsp + 0x5c0]
mov qword [rsp + 0xb8], rax
mov rcx, rsi
mov qword [rsp + 0xc0], rcx
test rdx, rdx
je 0x140002316
test rbx, rbx
je 0x140002311
movzx r9d, word [r8]
test r9w, r9w
je 0x140002311
mov word [rax], r9w
add rax, 2
mov qword [rsp + 0xb8], rax
add r8, 2
mov qword [rsp + 0xd8], r8
sub rdx, r13
mov qword [rsp + 0xe0], rdx
sub rbx, r13
mov qword [rsp + 0xe8], rbx
add rcx, r13
mov qword [rsp + 0xc0], rcx
jmp 0x1400022be
test rdx, rdx
jne 0x14000232d
sub rax, 2
mov qword [rsp + 0xb8], rax
sub rcx, r13
mov qword [rsp + 0xc0], rcx
mov word [rax], si
lea r15, [rsp + 0x5c0]
mov qword [rsp + 0x90], r15
lea rdx, [0x14000f2e8]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140002380
lea rdx, str._lang
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400024c2
mov edx, 0x20
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
mov edx, 0x3a
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x1400024c2
test rbx, rbx
jne 0x1400023dc
lea r8, [rax + 2]
cmp si, word [r8]
je 0x1400024c2
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x120]
call fcn.140004b80
jmp 0x1400024b2
sub rbx, rax
sar rbx, 1
cmp rbx, r13
jle 0x1400024c2
dec rbx
cmp rbx, 0x7ffffffe
jbe 0x140002404
mov word [rsp + 0x120], si
jmp 0x1400024b2
mov qword [rsp + 0x100], rbx
lea r8, [rax + 2]
mov qword [rsp + 0xf0], r8
mov ecx, 0x40
mov qword [rsp + 0xf8], rcx
lea rax, [rsp + 0x120]
mov qword [rsp + 0xc8], rax
mov rdx, rsi
mov qword [rsp + 0xd0], rdx
test rcx, rcx
je 0x140002498
test rbx, rbx
je 0x140002493
movzx r9d, word [r8]
test r9w, r9w
je 0x140002493
mov word [rax], r9w
add rax, 2
mov qword [rsp + 0xc8], rax
add r8, 2
mov qword [rsp + 0xf0], r8
sub rcx, r13
mov qword [rsp + 0xf8], rcx
sub rbx, r13
mov qword [rsp + 0x100], rbx
add rdx, r13
mov qword [rsp + 0xd0], rdx
jmp 0x140002440
test rcx, rcx
jne 0x1400024af
sub rax, 2
mov qword [rsp + 0xc8], rax
sub rdx, r13
mov qword [rsp + 0xd0], rdx
mov word [rax], si
lea rax, [rsp + 0x120]
mov qword [rsp + 0xa8], rax
test r15, r15
je 0x1400024d0
movzx eax, word [r15]
cmp si, ax
jne 0x1400024ed
lea r15, [rsp + 0x3b0]
mov qword [rsp + 0x90], r15
movzx eax, word [r15]
cmp si, ax
je 0x1400030f4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop dword [rax + rax]
mov r9, r15
lea r8, str._sRollback
mov edx, 0x104
lea rcx, [rsp + 0x7d0]
call fcn.140004afc
xor edx, edx
lea rcx, [rsp + 0x7d0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
lea rbx, [rsp + 0x7d0]
lea rcx, [rsp + 0x7d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
cmove rbx, r15
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x308f000
mov r9, rbx
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WDSCORE.dll_WdsInitialize]
nop dword [rax + rax]
test eax, eax
je 0x1400030f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
mov r8, r14
lea rdx, str.Starting_OS_Rollback...__launched_with_command_line___s__
mov ecx, 0x40000cf
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.wWinMain
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2ec
xor r9d, r9d
lea r13, [0x14000ed78]
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
cmp si, word [r14]
je 0x14000308c
mov dword [rsp + 0x68], esi
lea rdx, [0x14000f378]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x14000264c
lea rdx, str._noui
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x1400026ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_NoUI_switch.
mov ecx, 0x40000d1
call fcn.140004c0c
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.wWinMain
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2f5
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
xor ebx, ebx
mov dword [rsp + 0x78], ebx
lea rdx, [0x14000f3b8]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x14000270c
lea rdx, str._sqm
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x14000270c
lea edi, [rax + 1]
jmp 0x140002794
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_SQM_is_enabled
mov ecx, 0x4000000
call fcn.140004c0c
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.wWinMain
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2fc
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov edi, 1
mov dword [rsp + 0x80], edi
lea rdx, [0x14000f3f8]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x1400027ca
lea rdx, str._CleanInstallFromDownlevel
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x1400027d8
mov esi, edi
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x60], 4
lea rdx, [0x14000f468]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x14000280e
lea rdx, str._CleanInstallFromWinPE
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x14000281c
add esi, edi
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x60], 5
lea rdx, [0x14000f4c8]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x140002852
lea rdx, str._Upgrade
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x140002860
add esi, edi
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x60], 6
lea rdx, [0x14000f4f8]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x140002896
lea rdx, str._DisplayReport
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x1400028a4
add esi, edi
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x60], 2
lea rdx, [0x14000f538]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x1400028da
lea rdx, str._FinalCleanup
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x1400028e8
add esi, edi
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x60], 3
test esi, esi
jne 0x1400029c5
mov dword [rsp + 0x60], edi
mov r8, r15
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x1a0]
call fcn.140004b80
lea r8, [0x14000f5c0]
lea rcx, [rsp + 0x1a0]
call fcn.140004a5c
mov r8, r15
mov edx, ebx
lea rcx, [rsp + 0x9e0]
call fcn.140004b80
lea r8, str.Panther
lea rcx, [rsp + 0x9e0]
call fcn.140004a5c
lea rax, str.SequenceDisabled
mov qword [rsp + 0x118], rax
xor r12d, r12d
mov dword [rsp + 0x88], r12d
mov edi, r12d
mov dword [rsp + 0x8c], r12d
mov dword [rsp + 0x7c], 0x80004005
lea rax, [rsp + 0x1a0]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14000297e
mov dword [rsp + 0x88], InitCommonControls
test ebx, ebx
je 0x1400029af
lea ecx, [rbx - 1]
mov eax, 0x5c
cmp ax, word [rsp + rcx*2 + 0x1a0]
je 0x140002a5a
test ebx, ebx
mov r15d, 1
cmovne edi, r15d
mov dword [rsp + 0x8c], edi
jmp 0x140002a60
cmp esi, edi
jbe 0x1400028f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
mov r8, r14
lea rdx, str.OS_Rollback:_Bad_command_line___s_.
mov ecx, 0x20000d0
call fcn.140004c0c
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea r14, str.wWinMain
mov qword [rsp + 0x30], r14
lea r15, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x32b
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov esi, InitCommonControls
mov dword [rsp + 0x64], esi
jmp 0x14000311b
mov r15d, 1
lea eax, [rbx + 0x11]
add eax, edi
mov r14d, eax
lea r8, [rax + rax]
mov rcx, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140002aaa
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
mov rsi, r12
jmp 0x140002b96
mov r9d, ebx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x1a0]
mov rdx, r14
mov rcx, rsi
call fcn.140005e84
mov ebx, eax
mov dword [rsp + 0x7c], eax
test eax, eax
js 0x140002b53
test edi, edi
je 0x140002b27
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, [0x14000ebec]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140005e84
mov ebx, eax
mov dword [rsp + 0x7c], eax
test ebx, ebx
js 0x140002b57
mov r9d, InitCommonControls
lea r8, str.SequenceDisabled
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140005dec
mov ebx, eax
mov dword [rsp + 0x7c], eax
test ebx, ebx
jns 0x140002b89
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
movzx ecx, bx
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], ecx
jmp 0x140002aa2
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], r12d
test rsi, rsi
je 0x140002c4f
mov rcx, rsi
call fcn.14000811c
test eax, eax
je 0x140002c2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_Rollback_checkpoint_sequence_was_disabled__no_need_to_perform_any_operations
mov ecx, 0x4000000
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea rax, str.wWinMain
mov qword [rsp + 0x30], rax
lea rax, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x347
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp dword [rsp + 0x78], r12d
je 0x140002c9a
mov edx, r12d
cmp dword [rsp + 0x60], 6
sete dl
call fcn.140004c3c
xor edx, edx
lea rcx, str.SetupRollbackSplashWindow
call qword [sym.imp.USER32.dll_FindWindowW]
nop dword [rax + rax]
test rax, rax
je 0x140002c9a
xor r9d, r9d
xor r8d, r8d
mov edx, 0xbf5
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov edx, dword [rsp + 0x60]
test edx, edx
jle 0x140002ff9
cmp edx, 3
jle 0x140002f70
cmp edx, 4
je 0x140002e38
cmp edx, 5
jne 0x140002ff9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_Rolling_back_clean_install_launched_from_WinPE...
mov ecx, 0x4000000
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea r14, str.wWinMain
mov qword [rsp + 0x30], r14
lea r15, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x36a
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov rbx, r12
mov qword [rsp + 0x108], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xe00]
call sub.msvcrt.dll_memset
cmp r12w, word [rsp + 0x3b0]
je 0x140002e0d
mov qword [rsp + 0x70], r12
lea rax, str.winsetup.dll
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3b0]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0xe00]
call fcn.140004afc
lea rcx, [rsp + 0xe00]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0x70], rax
xor edi, edi
test rax, rax
je 0x140002def
lea rdx, str.GetCleanInstallCheckpointSequence
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140002def
lea ecx, [rdi + 2]
call qword [0x14000eae0]
mov qword [rsp + 0x108], rax
mov rbx, rax
test rbx, rbx
jne 0x140002e23
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov r12, rdi
mov qword [rsp + 0x70], rdi
jmp 0x140002e23
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov r12, qword [rsp + 0x70]
lea rdx, [rsp + 0x1a0]
mov rcx, rbx
call fcn.140001dec
jmp 0x140003115
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_Rolling_back_clean_install_launched_from_a_downlevel_OS...
mov ecx, 0x4000000
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea r14, str.wWinMain
mov qword [rsp + 0x30], r14
lea r15, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x365
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov rbx, r12
mov qword [rsp + 0x110], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x1010]
call sub.msvcrt.dll_memset
cmp r12w, word [rsp + 0x3b0]
je 0x140002e0d
mov qword [rsp + 0x70], r12
lea rax, str.winsetup.dll
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3b0]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x1010]
call fcn.140004afc
lea rcx, [rsp + 0x1010]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov r12, rax
mov qword [rsp + 0x70], rax
xor edi, edi
test rax, rax
je 0x140002def
lea rdx, str.GetCleanInstallCheckpointSequence
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140002def
lea ecx, [rdi + 1]
call qword [0x14000eae0]
mov qword [rsp + 0x110], rax
jmp 0x140002dec
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_No_rollback_operations__left__to_perform.
mov ecx, 0x4000000
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea r14, str.wWinMain
mov qword [rsp + 0x30], r14
lea r15, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x371
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov r12, qword [rsp + 0x70]
mov esi, dword [rsp + 0x64]
jmp 0x14000311b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
mov r8d, dword [rsp + 0x60]
lea rdx, str.OS_Rollback:_invalid_scenario_0x_x
mov ecx, 0x20000de
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea r14, str.wWinMain
mov qword [rsp + 0x30], r14
lea r15, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x375
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov esi, InitCommonControls
mov dword [rsp + 0x64], esi
mov r12, qword [rsp + 0x70]
jmp 0x14000311b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_Requires_switch
mov ecx, 0x20000dd
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
lea r14, str.wWinMain
mov qword [rsp + 0x30], r14
lea r15, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x332
jmp 0x140002a35
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r14, str.wWinMain
lea r15, str.base_ntsetupmigration_setup_rollback_src_setuprollback.cpp
lea r13, [0x14000ed78]
mov esi, eax
mov dword [rsp + 0x64], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov ecx, eax
sub ecx, dword [rsp + 0x84]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov r8d, edx
lea rdx, str.PERFORMANCE:_OS_Rollback_took__d_seconds.
mov ecx, 0x40000d2
call fcn.140004c0c
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x37c
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
test r12, r12
je 0x1400031bf
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
xor r12d, r12d
cmp dword [rsp + 0x78], r12d
je 0x140003251
test esi, esi
je 0x1400031f9
cmp esi, 0xb7
je 0x1400031f9
call fcn.140001b18
mov dword [rsp + 0x20], 0x41010
xor edx, edx
xor ecx, ecx
mov r9d, 0x1f6
lea r8d, [r9 + 6]
call fcn.140005d24
mov rcx, qword [0x140017de8]
test rcx, rcx
je 0x14000321c
xor r9d, r9d
xor r8d, r8d
mov edx, 0xbf2
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, qword [0x140017df0]
test rcx, rcx
je 0x140003251
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [0x140017df0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [0x140017df0], r12
mov edx, dword [rsp + 0x60]
sub edx, 2
je 0x1400034fa
cmp edx, 1
jne 0x1400034ff
cmp dword [rsp + 0x80], r12d
je 0x14000338e
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x1220]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x1a0]
lea r8, str._s_rollback.sqm
mov edx, 0x104
lea rcx, [rsp + 0x1220]
call fcn.140004afc
lea r8, [rsp + 0x9e0]
lea rdx, [rsp + 0x5c0]
lea rcx, [rsp + 0x1220]
call fcn.1400036f4
test eax, eax
jne 0x140003321
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_failed_to_report_rollback_SQM_data.
mov ecx, 0x30000d3
call fcn.140004c0c
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3a9
jmp 0x140003374
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_successfully_reported_rollback_SQM_data.
mov ecx, 0x40000d4
call fcn.140004c0c
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3ad
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
mov rcx, rax
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
call fcn.140001008
call fcn.14000b620
mov esi, eax
test eax, eax
je 0x14000340e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
mov r8d, esi
lea rdx, str.Failed_to_increment_the_failed_install_count_GLE_is___d_.
mov ecx, 0x30000f0
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3b5
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14000347d
call fcn.1400011f0
test eax, eax
jne 0x1400034ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.OS_Rollback:_failed_to_respawn_rollback_from__TEMP_
mov ecx, 0x20000e0
call fcn.140004c0c
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3bc
jmp 0x1400034de
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea r9, str.lang
lea r8, str.FinalCleanup
lea rdx, str.OS_Rollback:___s_option_requires___s:_language__option
mov ecx, 0x20000df
call fcn.140004c0c
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3c4
mov rcx, rax
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
jmp 0x1400034ff
call fcn.14000192c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
lea rdx, str.End_OS_Rollback.
mov ecx, 0x40000d5
call fcn.140004c0c
mov rcx, rax
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x3cd
xor r9d, r9d
mov r8, r13
mov edx, 0xe0000
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
call qword [sym.imp.WDSCORE.dll_WdsTerminate]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rsp + 0x1430]
xor rcx, rsp
call fcn.14000c290
lea r11, [rsp + 0x1440]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret