Function at 0x140059b34
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1e0
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r14, rcx
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
mov eax, 1
cmp rcx, rdx
je 0x140059ba4
test byte [rcx + 0x1c], al
je 0x140059ba4
cmp byte [rcx + 0x19], 4
jb 0x140059ba4
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x52]
lea r8, [0x1401560a0]
call fcn.140004b70
mov eax, dword [r14 + 0x110]
lea rcx, [rbp - 0x10]
xor esi, esi
xor edx, edx
mov r13b, sil
mov dword [rbp - 0x68], esi
mov r8d, 0xd0
mov qword [rbp - 0x58], rsi
lea rdi, [rax + rax*2]
mov qword [rbp - 0x78], rsi
shl rdi, 6
mov r12d, esi
add rdi, qword [r14 + 0x108]
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x60], rsi
mov dword [rsp + 0x74], esi
mov dword [rbp - 0x50], r13d
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], rsi
mov byte [rsp + 0x70], sil
mov byte [rsp + 0x78], sil
mov qword [rbp - 0x38], rsi
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], rsi
call sub.msvcrt.dll_memset
lea rcx, [r14 + 8]
call fcn.140004d68
mov rbx, rax
test rax, rax
jne 0x140059c3f
lea r8, str.pCatalogSystem
mov edx, 0x8bd
lea rcx, str.base_stor_blbengine_service_restore.cpp
call fcn.1400876c8
mov rcx, qword [rbx]
lea r8, [rbp - 0x10]
movups xmm0, xmmword [r14 + 0xd0]
mov r15d, 1
lea rdx, [rbp - 0x20]
mov r9b, r15b
mov rax, qword [rcx + 0x58]
mov rcx, rbx
movdqu xmmword [rbp - 0x20], xmm0
call qword [case.0x140005b13.0]
mov esi, eax
test eax, eax
js 0x140059d92
mov edx, dword [rbp + 0xb4]
lea r9, [rsp + 0x70]
mov ecx, dword [rbp + 0xb0]
lea r8, [rbp - 0x38]
mov byte [rsp + 0x78], r15b
call fcn.140116c04
mov esi, eax
test eax, eax
js 0x140059d92
mov r15, qword [rbp - 0x38]
test r15, r15
jne 0x140059cc1
lea r8, str.wszVhdExtension___NULL
mov edx, 0x8cf
lea rcx, str.base_stor_blbengine_service_restore.cpp
call fcn.1400876c8
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.140057020
mov esi, eax
test eax, eax
js 0x14005aa2d
mov r8d, dword [rdi + 0x4c]
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 0x3c]
mov rcx, qword [r14 + 0xc8]
mov r9, r15
call fcn.1401120dc
mov esi, eax
test eax, eax
js 0x14005aa2d
test byte [rdi + 0x4c], 8
mov r12d, 1
je 0x140059d1d
test byte [rdi + 0x4c], 0x20
movzx r13d, r13b
cmove r13d, r12d
mov dword [rbp - 0x50], r13d
lea r15, [r14 + 0x18]
xor edx, edx
mov rcx, r15
call fcn.1400fdb78
mov esi, eax
test eax, eax
js 0x14005aa2d
mov rbx, qword [rbp - 0x60]
xor r8d, r8d
mov rcx, rbx
call fcn.1400ff2a8
mov esi, eax
test eax, eax
jns 0x140059f00
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov r15d, 1
cmp rcx, rax
je 0x140059d8e
test byte [rcx + 0x1c], r15b
je 0x140059d8e
cmp byte [rcx + 0x19], 2
jb 0x140059d8e
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x53]
mov r9, rbx
mov dword [rsp + 0x20], esi
lea r8, [0x1401560a0]
call fcn.140005ca0
mov r12, qword [rbp - 0x58]
lea rbx, [0x14017a048]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140059e28
test byte [r14 + 0x148], 2
je 0x140059dcc
lea r8, str._CHUNKED_m_ulFeatures_
mov edx, 0xa2d
lea rcx, str.base_stor_blbengine_service_restore.cpp
call fcn.1400876c8
mov rcx, qword [rbp - 0x80]
test esi, esi
jns 0x140059e12
call fcn.14011b140
test eax, eax
jns 0x140059e0e
mov rcx, qword [0x14017a048]
cmp rcx, rbx
je 0x140059e0e
test byte [rcx + 0x1c], r15b
je 0x140059e0e
cmp byte [rcx + 0x19], 2
jb 0x140059e0e
mov r9, qword [rbp - 0x80]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x68
mov dword [rsp + 0x20], eax
call fcn.140005ca0
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140059e28
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
and qword [rbp - 0x80], 0
lea rcx, [r14 + 0x18]
call fcn.1400fdd24
lea rcx, [r14 + 0x48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
add dword [r14 + 0x118], r15d
lea rcx, [r14 + 0x48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, dword [r14 + 0x11c]
cmp dword [r14 + 0x118], eax
jbe 0x140059e80
lea r8, str.m_ulBagsProcessed___m_cBags
mov edx, 0xa41
lea rcx, str.base_stor_blbengine_service_restore.cpp
call fcn.1400876c8
test esi, esi
jns 0x14005aaa5
cmp esi, 0x80780118
je 0x14005aa36
test r12, r12
je 0x14005aa36
mov rdx, qword [r14 + 0x164]
mov rcx, r12
call fcn.14010f280
test eax, eax
jns 0x14005aa36
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14005aa3d
test byte [rcx + 0x1c], r15b
je 0x14005aa3d
cmp byte [rcx + 0x19], 2
jb 0x14005aa3d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401560a0]
mov edx, 0x69
mov dword [rsp + 0x20], eax
mov r9, r12
call fcn.140005ca0
jmp 0x14005aa3d
mov rcx, r15
call fcn.1400fdd24
mov r8b, r12b
mov edx, 3
mov rcx, r14
call fcn.14005c27c
mov r12, qword [rbp - 0x58]
lea rdx, [rbp - 0x78]
mov rcx, r12
call fcn.140088424
mov esi, eax
test eax, eax
js 0x14005a58e
mov edi, dword [rdi + 0x4c]
and edi, 2
cmp qword [r14 + 0x158], 0
jne 0x14005a31c
lea rcx, [r14 + 0x48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov eax, dword [r14 + 0x110]
lea rcx, [r14 + 0x48]
lea rdx, [rax + rax*2]
shl rdx, 6
add rdx, qword [r14 + 0x108]
and qword [rdx], 0
and qword [rdx + 8], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x140059fc7
test byte [rcx + 0x1c], 1
je 0x140059fc7
cmp byte [rcx + 0x19], 4
jb 0x140059fc7
mov eax, dword [r14 + 0x110]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x55
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.140005ca0
test edi, edi
jne 0x140059fdd
mov rcx, r14
call fcn.14005922c
mov esi, eax
test eax, eax
js 0x14005a549
mov rdi, qword [rbp - 0x70]
lea rdx, [rsp + 0x74]
mov rcx, qword [rbp - 0x78]
lea r8, [rdi + 0xb0]
call fcn.1400b5604
mov ebx, eax
test eax, eax
je 0x14005a05b
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov r15d, 1
cmp rcx, rax
je 0x14005a045
test byte [rcx + 0x1c], r15b
je 0x14005a045
cmp byte [rcx + 0x19], 2
jb 0x14005a045
mov r9, qword [rbp - 0x78]
lea edx, [r15 + 0x55]
mov eax, dword [rsp + 0x74]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
call fcn.140010964
mov edx, dword [rsp + 0x74]
lea r8, [rbp - 0x68]
mov ecx, ebx
call fcn.14010086c
mov esi, eax
jmp 0x140059d92
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14005a0a1
test byte [rcx + 0x1c], 1
je 0x14005a0a1
cmp byte [rcx + 0x19], 4
mov rbx, qword [rbp - 0x78]
jb 0x14005a0a5
mov rax, qword [rbp - 0x60]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x57
mov r9, rbx
mov qword [rsp + 0x20], rax
call fcn.140005d24
jmp 0x14005a0a5
mov rbx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
test byte [r14 + 0x148], 2
mov edi, eax
jne 0x14005a220
cmp byte [rsp + 0x70], 0
jne 0x14005a220
mov rbx, qword [rbp - 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov rdx, rbx
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call fcn.140118f9c
mov esi, eax
test eax, eax
jns 0x14005a13f
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
mov r15d, 1
cmp rcx, rbx
je 0x14005a136
test byte [rcx + 0x1c], r15b
je 0x14005a136
cmp byte [rcx + 0x19], 2
jb 0x14005a136
mov r9, qword [rbp - 0x80]
lea edx, [r15 + 0x57]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401560a0]
mov dword [rsp + 0x20], eax
call fcn.140005ca0
mov rdi, qword [rbp - 0x70]
jmp 0x140059d99
mov r10, qword [rbp - 0x80]
test r10, r10
jne 0x14005a164
lea r8, str.wszMountedVhdPath___NULL
mov edx, 0x947
lea rcx, str.base_stor_blbengine_service_restore.cpp
call fcn.1400876c8
mov r10, qword [rbp - 0x80]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov r13d, 1
cmp rcx, rax
je 0x14005a1a9
test byte [rcx + 0x1c], r13b
je 0x14005a1a9
cmp byte [rcx + 0x19], 4
jb 0x14005a1a9
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x58]
mov r9, rbx
mov qword [rsp + 0x20], r10
lea r8, [0x1401560a0]
call fcn.140005d24
mov r10, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
lea rcx, [rsp + 0x74]
mov r8b, byte [r14 + 0x161]
mov r9b, r13b
mov dl, byte [r14 + 0x160]
mov qword [rsp + 0x68], rcx
lea rcx, [rbp - 0x30]
mov eax, dword [rax + 0x4c]
mov qword [rsp + 0x60], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x58], rcx
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x50], rcx
lea rcx, [r14 + 0x158]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x40], rcx
mov rcx, r10
shr eax, 0xd
and al, r13b
mov byte [rsp + 0x38], al
lea rax, [0x1400591b0]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.1400b9430
jmp 0x14005a261
mov r9, qword [r15]
cmp r9, 0xffffffffffffffff
jne 0x14005a236
or r9, r9
cmp qword [r15 + 8], 0xffffffffffffffff
cmovne r9, qword [r15 + 8]
mov rdx, qword [rbp - 0x60]
lea rax, [rsp + 0x74]
lea rcx, [r14 + 0x158]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8b, r13b
mov rcx, rbx
call fcn.1400bf154
mov r13d, 1
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, edi
add eax, dword [r14 + 0x16c]
mov dword [r14 + 0x16c], eax
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
cmp rcx, rdx
je 0x14005a2c4
test byte [rcx + 0x1c], r13b
je 0x14005a2c4
cmp byte [rcx + 0x19], 4
jb 0x14005a2c4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401560a0]
mov edx, 0x5a
mov r9d, eax
call fcn.140004b9c
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
test ebx, ebx
je 0x14005a325
mov r15d, 1
cmp rcx, rdx
je 0x14005a302
test byte [rcx + 0x1c], r15b
je 0x14005a302
cmp byte [rcx + 0x19], 2
jb 0x14005a302
mov eax, dword [rsp + 0x74]
lea edx, [r15 + 0x5a]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401560a0]
mov dword [rsp + 0x28], eax
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.140010964
mov edx, dword [rsp + 0x74]
lea r8, [rbp - 0x68]
mov ecx, ebx
call fcn.14010086c
mov rdi, qword [rbp - 0x70]
mov esi, eax
jmp 0x140059d92
mov rcx, qword [0x14017a048]
jmp 0x14005a329
mov rbx, qword [rbp - 0x60]
lea r13, [0x14017a048]
cmp rcx, r13
je 0x14005a364
test byte [rcx + 0x1c], 1
je 0x14005a364
cmp byte [rcx + 0x19], 4
mov rdi, qword [rbp - 0x78]
jb 0x14005a368
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401560a0]
mov edx, 0x5c
mov qword [rsp + 0x20], rbx
mov r9, rdi
call fcn.140005d24
jmp 0x14005a368
mov rdi, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
test byte [r14 + 0x148], 2
mov ebx, eax
jne 0x14005a3f4
xor ecx, ecx
cmp byte [rsp + 0x70], cl
jne 0x14005a3f4
movups xmm0, xmmword [0x140159df8]
lea rax, [rsp + 0x74]
mov r9, rdi
mov qword [rsp + 0x60], rax
lea rdx, [0x1400591b0]
mov qword [rsp + 0x58], rcx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
mov r8, r14
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [r14 + 0x158]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.1400bbe78
jmp 0x14005a451
mov rax, qword [r15]
cmp rax, 0xffffffffffffffff
jne 0x14005a40a
or rax, rax
cmp qword [r15 + 8], 0xffffffffffffffff
cmovne rax, qword [r15 + 8]
mov rdx, qword [rbp - 0x60]
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x40], rcx
lea r8, [0x1400591b0]
lea rcx, [rbp - 0x40]
mov r9, r14
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0xc0]
mov qword [rsp + 0x28], rcx
mov rcx, qword [r14 + 0x158]
mov qword [rsp + 0x20], rax
call fcn.1400bfa30
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, ebx
add dword [r14 + 0x170], eax
mov rcx, qword [0x14017a048]
cmp rcx, r13
je 0x14005a49d
test byte [rcx + 0x1c], 1
je 0x14005a49d
cmp byte [rcx + 0x19], 4
jb 0x14005a49d
mov r9d, dword [r14 + 0x16c]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x5d
call fcn.140004b9c
mov rdi, qword [rbp - 0x48]
lea r13, [r14 + 0x48]
mov rbx, qword [rbp - 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov eax, dword [r14 + 0x110]
lea rcx, [rax + rax*2]
shl rcx, 6
add rcx, qword [r14 + 0x108]
mov qword [rcx], rbx
mov qword [rcx + 8], rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test r15d, r15d
je 0x14005a599
cmp r15d, 1
je 0x14005a558
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14005a537
test byte [rcx + 0x1c], 1
je 0x14005a537
cmp byte [rcx + 0x19], 2
jb 0x14005a537
mov eax, dword [rsp + 0x74]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x5e
mov dword [rsp + 0x28], eax
mov r9, r12
mov dword [rsp + 0x20], r15d
call fcn.140010964
mov edx, dword [rsp + 0x74]
lea r8, [rbp - 0x68]
mov ecx, r15d
call fcn.14010086c
mov esi, eax
mov rdi, qword [rbp - 0x70]
mov r15d, 1
jmp 0x140059d99
lea rcx, [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140005b13.0]
test al, al
jne 0x14005a585
lea r8, str.IsAborted__
mov edx, 0x999
lea rcx, str.base_stor_blbengine_service_restore.cpp
call fcn.1400876c8
mov rdi, qword [rbp - 0x70]
mov esi, 0x80780167
mov r15d, 1
jmp 0x140059d92
mov ecx, dword [r14 + 0x118]
mov r9, qword [r14 + 0x120]
mov edx, ecx
mov rax, qword [rbp + 0xc0]
imul r8, rcx, 0x6c
cmp rax, qword [r8 + r9 + 0x50]
jne 0x14005a5cd
mov rax, qword [rbp + 0xc8]
cmp rax, qword [r8 + r9 + 0x58]
je 0x14005a661
cmp byte [rbp - 0x50], 0
je 0x14005a661
mov rbx, qword [0x14017a048]
lea rax, [0x14017a048]
mov r15d, 1
cmp rbx, rax
je 0x14005a66e
test byte [rbx + 0x1c], r15b
je 0x14005a66e
cmp byte [rbx + 0x19], 3
jb 0x14005a66e
mov eax, dword [rbp + 0xcc]
lea edx, [r15 + 0x5e]
mov rcx, qword [rbx + 0x10]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp + 0xc8]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0xc4]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0xc0]
mov dword [rsp + 0x38], eax
mov eax, dword [r8 + r9 + 0x5c]
mov dword [rsp + 0x30], eax
mov eax, dword [r8 + r9 + 0x58]
mov dword [rsp + 0x28], eax
mov eax, dword [r8 + r9 + 0x54]
mov r9d, dword [r8 + r9 + 0x50]
lea r8, [0x1401560a0]
mov dword [rsp + 0x20], eax
call fcn.140056a04
mov edx, dword [r14 + 0x118]
jmp 0x14005a667
mov r15d, 1
mov rbx, qword [0x14017a048]
mov rdi, qword [rbp - 0x70]
inc edx
cmp edx, dword [r14 + 0x11c]
je 0x14005a6aa
mov r9d, dword [rdi + 0x4c]
lea r8, [rdi + 0x3c]
mov eax, edx
imul rdx, rax, 0x6c
mov rax, qword [r14 + 0x120]
lea rcx, [rax + 0x2c]
add rcx, rdx
mov edx, dword [rdx + rax + 0x3c]
call fcn.14008b9d0
test al, al
jne 0x14005a937
lea rax, [0x14017a048]
cmp rbx, rax
je 0x14005a6e5
test byte [rbx + 0x1c], r15b
je 0x14005a6e5
cmp byte [rbx + 0x19], 4
jb 0x14005a6e5
mov eax, dword [r14 + 0x110]
lea r8, [0x1401560a0]
mov rcx, qword [rbx + 0x10]
mov edx, 0x60
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.140005ca0
test byte [r14 + 0x148], 2
jne 0x14005a6f6
cmp byte [rsp + 0x70], 0
je 0x14005a70a
lea rbx, [r14 + 0x158]
mov rcx, rdi
mov rdx, qword [rbx]
call fcn.140056ec4
jmp 0x14005a711
lea rbx, [r14 + 0x158]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14005a738
lea r8, str.m_pCurrentRestoreContext
mov edx, 0x9cd
lea rcx, str.base_stor_blbengine_service_restore.cpp
call fcn.1400876c8
mov rcx, qword [r14 + 0x158]
call fcn.1400c1188
xor eax, eax
mov qword [rbx], rax
test byte [rdi + 0x4c], r15b
jne 0x14005a905
cmp byte [r14 + 0x180], al
jne 0x14005a87a
mov rsi, qword [rbp - 0x78]
lea rdx, [rdi + 0xb0]
mov rcx, rsi
mov byte [rsp + 0x70], al
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x74]
call fcn.1400b58ec
mov ebx, eax
test eax, eax
je 0x14005a7b8
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14005a045
test byte [rcx + 0x1c], r15b
je 0x14005a045
cmp byte [rcx + 0x19], 2
jb 0x14005a045
mov edx, 0x61
mov r9, r12
jmp 0x14005a029
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov bl, byte [rsp + 0x70]
cmp rcx, rax
je 0x14005a809
test byte [rcx + 0x1c], r15b
je 0x14005a809
cmp byte [rcx + 0x19], 4
jb 0x14005a809
mov rcx, qword [rcx + 0x10]
lea rax, [0x140155268]
test bl, bl
mov qword [rsp + 0x20], rsi
lea r9, [0x140155f30]
mov edx, 0x62
cmovne r9, rax
lea r8, [0x1401560a0]
call fcn.140005d24
test bl, bl
je 0x14005a8b0
mov r8b, r15b
mov edx, 0xc
mov rcx, r14
call fcn.14005c27c
mov rdx, rsi
mov rcx, rdi
call fcn.1400598bc
mov esi, eax
test eax, eax
jns 0x14005a8b0
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x140059d99
test byte [rcx + 0x1c], r15b
je 0x140059d99
cmp byte [rcx + 0x19], 2
jb 0x140059d99
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401560a0]
mov edx, 0x63
mov r9d, eax
call fcn.140004b9c
jmp 0x140059d99
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x14005a8b7
test byte [rcx + 0x1c], r15b
je 0x14005a8b7
cmp byte [rcx + 0x19], 4
jb 0x14005a8b7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401560a0]
mov edx, 0x64
call fcn.140004b70
jmp 0x14005a8b7
lea rbx, [0x14017a048]
mov rcx, qword [rbp - 0x78]
call fcn.1400feee0
mov esi, eax
test eax, eax
jns 0x14005a912
mov rcx, qword [0x14017a048]
cmp rcx, rbx
je 0x14005a8fb
test byte [rcx + 0x1c], r15b
je 0x14005a8fb
cmp byte [rcx + 0x19], 2
jb 0x14005a8fb
mov r9, qword [rbp - 0x78]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x65
mov dword [rsp + 0x20], eax
call fcn.140005ca0
mov esi, 0x80780124
jmp 0x140059d99
mov edx, 9
mov rcx, rdi
call fcn.140056dc0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
add dword [r14 + 0x150], r15d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
add dword [rdi + 0x10], r15d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140059e28
test byte [r14 + 0x148], 2
je 0x14005a98c
lea r8, str._CHUNKED_m_ulFeatures_
mov edx, 0xa1b
lea rcx, str.base_stor_blbengine_service_restore.cpp
call fcn.1400876c8
mov rcx, qword [rbp - 0x80]
call fcn.14011b140
mov esi, eax
test eax, eax
jns 0x14005a9e4
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x140059d99
test byte [rcx + 0x1c], r15b
je 0x140059d99
cmp byte [rcx + 0x19], 2
jb 0x140059d99
mov r9, qword [rbp - 0x80]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x66
mov dword [rsp + 0x20], eax
call fcn.140005ca0
jmp 0x140059d99
mov rcx, qword [0x14017a048]
lea rbx, [0x14017a048]
cmp rcx, rbx
je 0x140059d99
test byte [rcx + 0x1c], r15b
je 0x140059d99
cmp byte [rcx + 0x19], 4
jb 0x140059d99
mov r9, qword [rbp - 0x80]
lea r8, [0x1401560a0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x67
call fcn.140005c30
jmp 0x140059d99
mov r12, qword [rbp - 0x58]
jmp 0x14005a58e
lea rbx, [0x14017a048]
mov rcx, qword [r14 + 0x158]
test rcx, rcx
je 0x14005aa56
call fcn.1400c1188
and qword [r14 + 0x158], 0
mov r8d, dword [rbp - 0x68]
mov edx, esi
mov rcx, rdi
call fcn.140056e50
mov rcx, qword [0x14017a048]
cmp rcx, rbx
je 0x14005aab3
test byte [rcx + 0x1c], r15b
je 0x14005aab3
cmp byte [rcx + 0x19], 2
jb 0x14005aab3
mov rcx, qword [rcx + 0x10]
lea r9, [0x140155f58]
test r12, r12
mov dword [rsp + 0x20], esi
mov edx, 0x6a
lea r8, [0x1401560a0]
cmovne r9, r12
call fcn.140005ca0
jmp 0x14005aaac
lea rbx, [0x14017a048]
mov rcx, qword [0x14017a048]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x14005aad2
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14005aaf1
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test r12, r12
je 0x14005ab0c
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x14005ab2b
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp byte [rsp + 0x78], 0
je 0x14005ab42
lea rcx, [rbp - 0x10]
call fcn.14009993c
mov rcx, qword [0x14017a048]
cmp rcx, rbx
je 0x14005ab68
test byte [rcx + 0x1c], r15b
je 0x14005ab68
cmp byte [rcx + 0x19], 4
jb 0x14005ab68
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401560a0]
mov edx, 0x6b
call fcn.140004b70
mov eax, esi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.14014b700
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret