Function at 0x140101700
Capabilities:
Check if file exists

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x900
mov qword [rsp + 0x838], 0xfffffffffffffffe
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x8f0], rax
mov rax, qword [rsp + 0x910]
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x910]
mov eax, dword [rsp + 0x918]
mov dword [rcx + 0x4a0], eax
mov rdx, qword [rsp + 0x910]
add rdx, 0xc
lea rcx, [rsp + 0x48]
call fcn.140002090
nop
cmp dword [rsp + 0x40], 3
jne 0x1401017b2
mov rcx, qword [rsp + 0x910]
call fcn.1400f89b0
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov dword [rsp + 0x760], 1
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x760]
jmp 0x140102d3e
cmp dword [rsp + 0x40], 1
jne 0x140101a6f
lea rcx, [0x140218ef8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1401017f8
mov dword [rsp + 0x764], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x764]
jmp 0x140102d3e
lea rdx, str.VixDiskLib_Open
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
lea rdx, [0x140218f28]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
lea rdx, [0x140218f40]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x4ac]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4a0], 0
je 0x1401018d2
lea rcx, [rsp + 0x48]
call fcn.1400012c0
mov rdx, rax
lea rcx, [rsp + 0x768]
call fcn.1400d8950
mov qword [rsp + 0x840], rax
mov rax, qword [rsp + 0x840]
mov qword [rsp + 0x848], rax
mov rcx, qword [rsp + 0x848]
call fcn.1400012c0
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [0x1403ab0e8]
call qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x768]
call fcn.140001470
jmp 0x14010193f
lea rcx, [rsp + 0x48]
call fcn.1400012c0
mov rdx, rax
lea rcx, [rsp + 0x770]
call fcn.1400d8950
mov qword [rsp + 0x850], rax
mov rax, qword [rsp + 0x850]
mov qword [rsp + 0x858], rax
mov rcx, qword [rsp + 0x858]
call fcn.1400012c0
lea r9, [rsp + 0x68]
mov r8d, 4
mov rdx, rax
mov rcx, qword [0x1403ab0e8]
call qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x770]
call fcn.140001470
mov rax, qword [rsp + 0x60]
and rax, 0xffff
test rax, rax
je 0x140101a09
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x778]
call fcn.140010e20
mov qword [rsp + 0x860], rax
mov rax, qword [rsp + 0x860]
mov qword [rsp + 0x868], rax
mov rcx, qword [rsp + 0x868]
call fcn.140010eb0
mov r9, rax
mov r8, qword [rsp + 0x48]
lea rdx, str._ERROR__Open_image__s_failed:__s
mov ecx, 1
call fcn.1400dc5d0
nop
lea rcx, [rsp + 0x778]
call fcn.140002e10
mov rcx, qword [rsp + 0x88]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x4ac]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x780], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x780]
jmp 0x140102d3e
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x4ac]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, qword [rsp + 0x910]
mov rax, qword [rsp + 0x68]
mov qword [rdx + 0x40c], rax
mov rcx, qword [rsp + 0x910]
call fcn.1400f89b0
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov dword [rsp + 0x784], 1
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x784]
jmp 0x140102d3e
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4a0], 0
je 0x140101bae
mov rcx, qword [rsp + 0x910]
call fcn.140101140
test eax, eax
jne 0x140101acc
mov r8, qword [rsp + 0x48]
lea rdx, [0x140218fb0]
mov ecx, 1
call fcn.1400dc5d0
mov dword [rsp + 0x788], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x788]
jmp 0x140102d3e
cmp dword [rsp + 0x40], 5
jne 0x140101bae
mov rdx, qword [rsp + 0x910]
add rdx, 0x4b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f8360
mov rcx, qword [rsp + 0x910]
call fcn.1400f89b0
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x94], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90083
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0x94], eax
mov r8, qword [rsp + 0x48]
lea rdx, [0x140218ff0]
xor ecx, ecx
call fcn.1400dc5d0
mov dword [rsp + 0x78c], 1
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x78c]
jmp 0x140102d3e
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4a0], 0
je 0x140101bcc
mov dword [rsp + 0x870], 0xc0000000
jmp 0x140101bd7
mov dword [rsp + 0x870], 0x80000000
lea rcx, [rsp + 0x48]
call fcn.1400012c0
xor r9d, r9d
mov r8d, 3
mov edx, dword [rsp + 0x870]
mov rcx, rax
call fcn.1400fa2d0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140101d67
mov r8, qword [rsp + 0x48]
lea rdx, str._ERROR__Open__s_failed
mov ecx, 1
call fcn.1400dc5d0
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4a0], 0
je 0x140101d46
cmp dword [rsp + 0x40], 4
jne 0x140101d46
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x9c], 0
jmp 0x140101c69
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x9c], 0x10
jge 0x140101d46
movsxd rcx, dword [rsp + 0x9c]
mov rax, qword [rsp + 0x910]
cmp qword [rax + rcx*8 + 0x414], 0xffffffffffffffff
jne 0x140101c97
jmp 0x140101d46
movsxd rcx, dword [rsp + 0x9c]
mov rax, qword [rsp + 0x910]
cmp qword [rax + rcx*8 + 0x414], 0
jne 0x140101cb7
jmp 0x140101d46
movsxd rdi, dword [rsp + 0x9c]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90020
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + rdi*8 + 0x414]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movsxd rdx, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + rdx*8 + 0x414]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rdx, dword [rsp + 0x9c]
mov rax, qword [rsp + 0x910]
mov qword [rax + rdx*8 + 0x414], 0xffffffffffffffff
jmp 0x140101c58
mov dword [rsp + 0x790], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x790]
jmp 0x140102d3e
mov rcx, qword [rsp + 0x910]
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x40c], rax
mov rax, qword [rsp + 0x910]
cmp dword [rax], 5
jne 0x140101e63
mov rdx, qword [rsp + 0x910]
add rdx, 0x4b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f8360
mov rcx, qword [rsp + 0x910]
call fcn.1400f89b0
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0xa4], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90083
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0xa4], eax
mov r8, qword [rsp + 0x48]
lea rdx, [0x140219050]
xor ecx, ecx
call fcn.1400dc5d0
mov dword [rsp + 0x794], 1
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x794]
jmp 0x140102d3e
cmp dword [rsp + 0x920], 0
je 0x140101ea1
mov r8, qword [rsp + 0x48]
lea rdx, str.Reopen_disk__s_OK
xor ecx, ecx
call fcn.1400dc5d0
mov dword [rsp + 0x798], 1
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x798]
jmp 0x140102d3e
mov rax, qword [rsp + 0x910]
cmp dword [rax], 4
jne 0x140101f21
mov rdx, qword [rsp + 0x910]
add rdx, 0x4b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f8360
mov rcx, qword [rsp + 0x910]
call fcn.1400f89b0
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov r8, qword [rsp + 0x48]
lea rdx, [0x140219098]
xor ecx, ecx
call fcn.1400dc5d0
mov dword [rsp + 0x79c], 1
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x79c]
jmp 0x140102d3e
cmp dword [rsp + 0x40], 2
jne 0x1401028f4
mov rcx, qword [rsp + 0x910]
add rcx, 0x4b4
mov r8d, 0xa18
xor edx, edx
call fcn.1400a8070
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f8970
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 0xec4], rdx
mov r8, qword [rsp + 0x910]
add r8, 0x4b4
mov qword [rsp + 0x20], 0
mov r9d, 0x200
xor edx, edx
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f9f70
mov rcx, qword [rsp + 0x910]
add rcx, 0x4b4
mov r8d, 8
lea rdx, [0x1402190b8]
call fcn.1400ab0e0
test eax, eax
je 0x14010200f
mov r8, qword [rsp + 0x910]
add r8, 0x4b4
mov rdx, qword [rsp + 0x910]
mov rdx, qword [rdx + 0xec4]
sub rdx, 0x200
mov qword [rsp + 0x20], 0
mov r9d, 0x200
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f9f70
mov rcx, qword [rsp + 0x910]
add rcx, 0x4b4
mov r8d, 8
lea rdx, [0x1402190c8]
call fcn.1400ab0e0
test eax, eax
je 0x140102080
mov r8, qword [rsp + 0x48]
lea rdx, str._ERROR___s_invalid_vhd_header
mov ecx, 1
call fcn.1400dc5d0
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x7a0], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x7a0]
jmp 0x140102d3e
mov rax, qword [rsp + 0x910]
mov ecx, dword [rax + 0x4f0]
call fcn.1400ae3ec
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 3
je 0x1401020b2
cmp dword [rsp + 0xa8], 4
jne 0x1401028f4
mov rdi, qword [rsp + 0x910]
add rdi, 0x6b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x4c4]
call fcn.1400ae428
mov qword [rsp + 0x20], 0
mov r9d, 0x400
mov r8, rdi
mov rdx, rax
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f9f70
mov rdx, qword [rsp + 0x910]
mov ecx, dword [rdx + 0x6d0]
call fcn.1400ae3ec
mov ecx, eax
shl ecx, 2
call fcn.1400f8940
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 0xeb4], rdx
mov rax, qword [rsp + 0x910]
mov ecx, dword [rax + 0x6d0]
call fcn.1400ae3ec
mov ecx, eax
shl rcx, 2
mov edx, 0x200
call fcn.1400f85f0
mov rdi, rax
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x6c4]
call fcn.1400ae428
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8, qword [rsp + 0x910]
mov r8, qword [r8 + 0xeb4]
mov rdx, rax
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f9f70
mov rdx, qword [rsp + 0x910]
mov ecx, dword [rdx + 0x6d4]
call fcn.1400ae3ec
xor edx, edx
mov ecx, 0x200
div ecx
xor edx, edx
mov ecx, 8
div ecx
mov ecx, eax
mov edx, 0x200
call fcn.1400f85f0
mov dword [rsp + 0xac], eax
mov ecx, 0xc0
call fcn.140071a64
mov qword [rsp + 0x7b0], rax
cmp qword [rsp + 0x7b0], 0
je 0x140102205
mov rcx, qword [rsp + 0x7b0]
call fcn.14010c250
mov qword [rsp + 0x878], rax
jmp 0x140102211
mov qword [rsp + 0x878], 0
mov rax, qword [rsp + 0x878]
mov qword [rsp + 0x7a8], rax
mov rcx, qword [rsp + 0x910]
mov rax, qword [rsp + 0x7a8]
mov qword [rcx + 0xebc], rax
mov r8d, dword [rsp + 0xac]
mov edx, 0x100000
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0xebc]
call fcn.14010d5b0
cmp dword [rsp + 0xa8], 4
jne 0x1401028f4
movzx eax, word [0x140218174]
mov word [rsp + 0xc0], ax
lea rdi, [rsp + 0xc2]
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov dword [rsp + 0x4c0], 0
jmp 0x1401022a5
mov eax, dword [rsp + 0x4c0]
add eax, 1
mov dword [rsp + 0x4c0], eax
cmp dword [rsp + 0x4c0], 8
jge 0x1401027d4
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
cmp dword [rax + rcx + 0x8f4], 0
jne 0x1401022d6
jmp 0x1401027d4
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
cmp dword [rax + rcx + 0x8f4], 0x756b3257
jne 0x1401024a8
mov rax, qword [rsp + 0x910]
add rax, 0xab4
mov qword [rsp + 0x4c8], rax
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x4c8]
call fcn.1400a8070
movsxd rax, dword [rsp + 0x4c0]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + rax + 0x904]
call fcn.1400ae428
mov qword [rsp + 0x20], 0
mov r9d, 0x200
mov r8, qword [rsp + 0x4c8]
mov rdx, rax
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f9f70
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
mov ecx, dword [rax + rcx + 0x8fc]
call fcn.1400ae3ec
mov edx, eax
xor ecx, ecx
mov rax, qword [rsp + 0x4c8]
mov word [rax + rdx*2], cx
mov rcx, qword [rsp + 0x4c8]
call fcn.1400f8fa0
cmp eax, 2
je 0x1401023df
mov rcx, qword [rsp + 0x4c8]
call fcn.1400f8fa0
cmp eax, 1
je 0x1401023df
mov rcx, qword [rsp + 0x4c8]
call fcn.1400f8fa0
cmp eax, 6
jne 0x14010248d
lea rcx, [rsp + 0x4d0]
call fcn.140076030
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x4c8]
lea rcx, [rsp + 0x4d0]
call fcn.140076134
test eax, eax
jne 0x14010241b
lea rcx, [rsp + 0x4d0]
call fcn.14007608c
jmp 0x140102294
lea rcx, [rsp + 0x4d0]
call fcn.140075d3c
lea rdx, [rsp + 0x7b8]
lea rcx, [rsp + 0x4d0]
call fcn.140076588
mov qword [rsp + 0x880], rax
mov rcx, qword [rsp + 0x880]
call fcn.1400012c0
mov rdx, rax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x7b8]
call fcn.140001470
lea rcx, [rsp + 0x4d0]
call fcn.140075c68
nop
lea rcx, [rsp + 0x4d0]
call fcn.14007608c
jmp 0x1401024a8
mov rdx, qword [rsp + 0x4c8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1401027d4
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
cmp dword [rax + rcx + 0x8f4], 0x75723257
jne 0x1401027cf
mov rax, qword [rsp + 0x910]
add rax, 0xab4
mov qword [rsp + 0x538], rax
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x538]
call fcn.1400a8070
movsxd rax, dword [rsp + 0x4c0]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + rax + 0x904]
call fcn.1400ae428
mov qword [rsp + 0x20], 0
mov r9d, 0x200
mov r8, qword [rsp + 0x538]
mov rdx, rax
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f9f70
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
mov ecx, dword [rax + rcx + 0x8fc]
call fcn.1400ae3ec
mov edx, eax
xor ecx, ecx
mov rax, qword [rsp + 0x538]
mov word [rax + rdx*2], cx
lea rcx, [rsp + 0x500]
call fcn.140076030
nop
mov rdx, qword [rsp + 0x910]
add rdx, 0xc
xor r8d, r8d
lea rcx, [rsp + 0x500]
call fcn.140076134
lea rcx, [rsp + 0x500]
call fcn.140075d3c
lea rdx, [rsp + 0x7c8]
lea rcx, [rsp + 0x500]
call fcn.140076588
mov qword [rsp + 0x888], rax
mov rax, qword [rsp + 0x888]
mov qword [rsp + 0x890], rax
lea rdx, [rsp + 0x7d0]
lea rcx, [rsp + 0x500]
call fcn.140076654
mov qword [rsp + 0x898], rax
mov rax, qword [rsp + 0x898]
mov qword [rsp + 0x8a0], rax
lea rdx, [rsp + 0x7c0]
lea rcx, [rsp + 0x500]
call fcn.140076588
mov qword [rsp + 0x8a8], rax
mov rax, qword [rsp + 0x8a8]
mov qword [rsp + 0x8b0], rax
mov rcx, qword [rsp + 0x8a0]
call fcn.1400019f0
mov edi, eax
mov rcx, qword [rsp + 0x890]
call fcn.1400019f0
mov r8d, eax
sub r8d, edi
lea rdx, [rsp + 0x530]
mov rcx, qword [rsp + 0x8b0]
call fcn.140006ac0
nop
lea rcx, [rsp + 0x7c0]
call fcn.140001470
nop
lea rcx, [rsp + 0x7d0]
call fcn.140001470
nop
lea rcx, [rsp + 0x7c8]
call fcn.140001470
mov r8, qword [rsp + 0x538]
lea rdx, [rsp + 0x530]
lea rcx, [rsp + 0x7e0]
call fcn.1400010b0
mov qword [rsp + 0x8b8], rax
mov rax, qword [rsp + 0x8b8]
mov qword [rsp + 0x8c0], rax
mov rcx, qword [rsp + 0x8c0]
call fcn.1400012c0
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x500]
call fcn.140076134
test eax, eax
jne 0x1401026fc
mov dword [rsp + 0x8c8], 1
jmp 0x140102707
mov dword [rsp + 0x8c8], 0
movzx eax, byte [rsp + 0x8c8]
mov byte [rsp + 0x7d8], al
lea rcx, [rsp + 0x7e0]
call fcn.140001470
movzx edx, byte [rsp + 0x7d8]
test edx, edx
je 0x14010274f
lea rcx, [rsp + 0x530]
call fcn.140001470
nop
lea rcx, [rsp + 0x500]
call fcn.14007608c
jmp 0x140102294
lea rcx, [rsp + 0x500]
call fcn.140075d3c
lea rdx, [rsp + 0x7e8]
lea rcx, [rsp + 0x500]
call fcn.140076588
mov qword [rsp + 0x8d0], rax
mov rcx, qword [rsp + 0x8d0]
call fcn.1400012c0
mov rdx, rax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x7e8]
call fcn.140001470
lea rcx, [rsp + 0x500]
call fcn.140075c68
nop
lea rcx, [rsp + 0x530]
call fcn.140001470
nop
lea rcx, [rsp + 0x500]
call fcn.14007608c
jmp 0x1401027d4
jmp 0x140102294
lea rcx, [rsp + 0xc0]
call fcn.1400a81f4
test rax, rax
je 0x1401028f4
lea rcx, [rsp + 0x48]
call fcn.1400012c0
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.1400aa17c
test eax, eax
jne 0x140102829
mov dword [rsp + 0x7f0], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x7f0]
jmp 0x140102d3e
mov rdx, qword [rsp + 0x910]
add rdx, 0x494
xor r8d, r8d
lea rcx, [rsp + 0xc0]
call fcn.1400ff6a0
test eax, eax
jne 0x1401028f4
mov rax, qword [rsp + 0x910]
mov rax, qword [rax + 0xebc]
mov qword [rsp + 0x800], rax
mov rax, qword [rsp + 0x800]
mov qword [rsp + 0x7f8], rax
cmp qword [rsp + 0x7f8], 0
je 0x14010289e
mov edx, 1
mov rcx, qword [rsp + 0x7f8]
call fcn.14002ba30
mov qword [rsp + 0x8d8], rax
jmp 0x1401028aa
mov qword [rsp + 0x8d8], 0
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0xeb4]
call fcn.1400f8900
mov dword [rsp + 0x808], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x808]
jmp 0x140102d3e
cmp dword [rsp + 0x40], 8
jne 0x140102cf3
mov rcx, qword [rsp + 0x910]
add rcx, 0x4b4
mov r8d, 0xa18
xor edx, edx
call fcn.1400a8070
mov rdx, qword [rsp + 0x910]
add rdx, 0x4b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.140107c10
test eax, eax
jne 0x1401029a2
mov r8, qword [rsp + 0x48]
lea rdx, str._ERROR___s_invalid_vhdx_header
mov ecx, 1
call fcn.1400dc5d0
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x4c0]
call fcn.1400f8900
mov dword [rsp + 0x80c], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x80c]
jmp 0x140102d3e
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4e4], 0
je 0x140102abb
xor eax, eax
mov word [rsp + 0x550], ax
lea rdi, [rsp + 0x552]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x910]
add rdx, 0xc
lea rcx, [rsp + 0x550]
call fcn.1400a9460
lea rcx, [rsp + 0x550]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x550]
call fcn.1400a81f4
test rax, rax
je 0x140102a39
lea rcx, [rsp + 0x550]
call fcn.1400a81f4
movzx eax, word [rsp + rax*2 + 0x54e]
cmp eax, 0x5c
je 0x140102a39
lea rdx, [0x1402181cc]
lea rcx, [rsp + 0x550]
call fcn.1400a9434
mov rdx, qword [rsp + 0x910]
add rdx, 0x8fc
lea rcx, [rsp + 0x550]
call fcn.1400a9434
lea rcx, [rsp + 0x550]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140102a98
mov rax, qword [rsp + 0x910]
movzx eax, word [rax + 0x8fc]
test eax, eax
je 0x140102a98
mov rcx, qword [rsp + 0x910]
add rcx, 0x10fc
lea rdx, [rsp + 0x550]
call fcn.1400a9460
jmp 0x140102abb
mov rdx, qword [rsp + 0x910]
add rdx, 0x4fc
mov rcx, qword [rsp + 0x910]
add rcx, 0x10fc
call fcn.1400a9460
mov ecx, 0xc0
call fcn.140071a64
mov qword [rsp + 0x818], rax
cmp qword [rsp + 0x818], 0
je 0x140102aef
mov rcx, qword [rsp + 0x818]
call fcn.14010c250
mov qword [rsp + 0x8e0], rax
jmp 0x140102afb
mov qword [rsp + 0x8e0], 0
mov rax, qword [rsp + 0x8e0]
mov qword [rsp + 0x810], rax
mov rcx, qword [rsp + 0x910]
mov rax, qword [rsp + 0x810]
mov qword [rcx + 0x153c], rax
mov rax, qword [rsp + 0x910]
mov eax, dword [rax + 0x4e0]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
movsd xmm0, qword [0x14025b060]
mulsd xmm0, xmm1
mov rax, qword [rsp + 0x910]
mov eax, dword [rax + 0x4f4]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
divsd xmm0, qword [0x14025d130]
divsd xmm0, qword [0x14025d128]
call fcn.1400ae2d8
mulsd xmm0, qword [0x14025d128]
xor ecx, ecx
comisd xmm0, xmmword [0x14025b058]
jbe 0x140102ba8
subsd xmm0, qword [0x14025b058]
comisd xmm0, xmmword [0x14025b058]
jae 0x140102ba8
movabs rax, 0x8000000000000000
add rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
mov qword [rsp + 0x548], rax
mov rax, qword [rsp + 0x910]
mov ecx, dword [rax + 0x4bc]
add ecx, 1
xor edx, edx
mov rax, qword [rsp + 0x910]
mov eax, dword [rax + 0x4c8]
div ecx
add eax, 1
mov eax, eax
imul rax, rax, 0x100000
mov dword [rsp + 0x540], eax
mov r8d, dword [rsp + 0x548]
mov edx, 0x100000
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x153c]
call fcn.14010d5b0
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4e4], 0
je 0x140102cf3
mov rdx, qword [rsp + 0x910]
add rdx, 0x494
mov rcx, qword [rsp + 0x910]
add rcx, 0x10fc
xor r8d, r8d
call fcn.1400ff6a0
test eax, eax
jne 0x140102cf3
mov rax, qword [rsp + 0x910]
mov rax, qword [rax + 0x153c]
mov qword [rsp + 0x828], rax
mov rax, qword [rsp + 0x828]
mov qword [rsp + 0x820], rax
cmp qword [rsp + 0x820], 0
je 0x140102ca0
mov edx, 1
mov rcx, qword [rsp + 0x820]
call fcn.14002ba30
mov qword [rsp + 0x8e8], rax
jmp 0x140102cac
mov qword [rsp + 0x8e8], 0
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x4c0]
call fcn.1400f8900
mov dword [rsp + 0x830], 0
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x830]
jmp 0x140102d3e
mov rcx, qword [rsp + 0x910]
call fcn.1400f89b0
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov r8, qword [rsp + 0x48]
lea rdx, str.Open_disk__s_OK
xor ecx, ecx
call fcn.1400dc5d0
mov dword [rsp + 0x834], 1
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x834]
mov rcx, qword [rsp + 0x8f0]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x900
pop rdi
ret