Function at 0x140101770
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 [0x1402a15c0]
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.1400020d0
nop
cmp dword [rsp + 0x40], 3
jne 0x140101822
mov rcx, qword [rsp + 0x910]
call fcn.1400f8a20
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov dword [rsp + 0x760], 1
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x760]
jmp 0x140102dae
cmp dword [rsp + 0x40], 1
jne 0x140101adf
lea rcx, [0x140217ef8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140101868
mov dword [rsp + 0x764], 0
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x764]
jmp 0x140102dae
lea rdx, str.VixDiskLib_Open
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
lea rdx, [0x140217f28]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
lea rdx, [0x140217f40]
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 0x140101942
lea rcx, [rsp + 0x48]
call fcn.140023510
mov rdx, rax
lea rcx, [rsp + 0x768]
call fcn.1400d8960
mov qword [rsp + 0x840], rax
mov rax, qword [rsp + 0x840]
mov qword [rsp + 0x848], rax
mov rcx, qword [rsp + 0x848]
call fcn.140023510
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [0x1403aa0e8]
call qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x768]
call fcn.140001490
jmp 0x1401019af
lea rcx, [rsp + 0x48]
call fcn.140023510
mov rdx, rax
lea rcx, [rsp + 0x770]
call fcn.1400d8960
mov qword [rsp + 0x850], rax
mov rax, qword [rsp + 0x850]
mov qword [rsp + 0x858], rax
mov rcx, qword [rsp + 0x858]
call fcn.140023510
lea r9, [rsp + 0x68]
mov r8d, 4
mov rdx, rax
mov rcx, qword [0x1403aa0e8]
call qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x770]
call fcn.140001490
mov rax, qword [rsp + 0x60]
and rax, 0xffff
test rax, rax
je 0x140101a79
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.140010530
mov qword [rsp + 0x860], rax
mov rax, qword [rsp + 0x860]
mov qword [rsp + 0x868], rax
mov rcx, qword [rsp + 0x868]
call fcn.1400105c0
mov r9, rax
mov r8, qword [rsp + 0x48]
lea rdx, str._ERROR__Open_image__s_failed:__s
mov ecx, 1
call fcn.1400dc610
nop
lea rcx, [rsp + 0x778]
call fcn.140002e70
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.140001490
mov eax, dword [rsp + 0x780]
jmp 0x140102dae
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.1400f8a20
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov dword [rsp + 0x784], 1
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x784]
jmp 0x140102dae
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4a0], 0
je 0x140101c1e
mov rcx, qword [rsp + 0x910]
call fcn.1401011b0
test eax, eax
jne 0x140101b3c
mov r8, qword [rsp + 0x48]
lea rdx, [0x140217fb0]
mov ecx, 1
call fcn.1400dc610
mov dword [rsp + 0x788], 0
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x788]
jmp 0x140102dae
cmp dword [rsp + 0x40], 5
jne 0x140101c1e
mov rdx, qword [rsp + 0x910]
add rdx, 0x4b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f83d0
mov rcx, qword [rsp + 0x910]
call fcn.1400f8a20
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, [0x140217ff0]
xor ecx, ecx
call fcn.1400dc610
mov dword [rsp + 0x78c], 1
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x78c]
jmp 0x140102dae
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4a0], 0
je 0x140101c3c
mov dword [rsp + 0x870], 0xc0000000
jmp 0x140101c47
mov dword [rsp + 0x870], 0x80000000
lea rcx, [rsp + 0x48]
call fcn.140023510
xor r9d, r9d
mov r8d, 3
mov edx, dword [rsp + 0x870]
mov rcx, rax
call fcn.1400fa340
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140101dd7
mov r8, qword [rsp + 0x48]
lea rdx, str._ERROR__Open__s_failed
mov ecx, 1
call fcn.1400dc610
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4a0], 0
je 0x140101db6
cmp dword [rsp + 0x40], 4
jne 0x140101db6
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x9c], 0
jmp 0x140101cd9
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x9c], 0x10
jge 0x140101db6
movsxd rcx, dword [rsp + 0x9c]
mov rax, qword [rsp + 0x910]
cmp qword [rax + rcx*8 + 0x414], 0xffffffffffffffff
jne 0x140101d07
jmp 0x140101db6
movsxd rcx, dword [rsp + 0x9c]
mov rax, qword [rsp + 0x910]
cmp qword [rax + rcx*8 + 0x414], 0
jne 0x140101d27
jmp 0x140101db6
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 0x140101cc8
mov dword [rsp + 0x790], 0
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x790]
jmp 0x140102dae
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 0x140101ed3
mov rdx, qword [rsp + 0x910]
add rdx, 0x4b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f83d0
mov rcx, qword [rsp + 0x910]
call fcn.1400f8a20
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, [0x140218050]
xor ecx, ecx
call fcn.1400dc610
mov dword [rsp + 0x794], 1
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x794]
jmp 0x140102dae
cmp dword [rsp + 0x920], 0
je 0x140101f11
mov r8, qword [rsp + 0x48]
lea rdx, str.Reopen_disk__s_OK
xor ecx, ecx
call fcn.1400dc610
mov dword [rsp + 0x798], 1
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x798]
jmp 0x140102dae
mov rax, qword [rsp + 0x910]
cmp dword [rax], 4
jne 0x140101f91
mov rdx, qword [rsp + 0x910]
add rdx, 0x4b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f83d0
mov rcx, qword [rsp + 0x910]
call fcn.1400f8a20
mov rdx, rax
mov rax, qword [rsp + 0x910]
mov qword [rax + 4], rdx
mov r8, qword [rsp + 0x48]
lea rdx, [0x140218098]
xor ecx, ecx
call fcn.1400dc610
mov dword [rsp + 0x79c], 1
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x79c]
jmp 0x140102dae
cmp dword [rsp + 0x40], 2
jne 0x140102964
mov rcx, qword [rsp + 0x910]
add rcx, 0x4b4
mov r8d, 0xa18
xor edx, edx
call fcn.1400a8080
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.1400f89e0
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.1400f9fe0
mov rcx, qword [rsp + 0x910]
add rcx, 0x4b4
mov r8d, 8
lea rdx, [0x1402180b8]
call fcn.1400ab100
test eax, eax
je 0x14010207f
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.1400f9fe0
mov rcx, qword [rsp + 0x910]
add rcx, 0x4b4
mov r8d, 8
lea rdx, [0x1402180c8]
call fcn.1400ab100
test eax, eax
je 0x1401020f0
mov r8, qword [rsp + 0x48]
lea rdx, str._ERROR___s_invalid_vhd_header
mov ecx, 1
call fcn.1400dc610
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.140001490
mov eax, dword [rsp + 0x7a0]
jmp 0x140102dae
mov rax, qword [rsp + 0x910]
mov ecx, dword [rax + 0x4f0]
call fcn.1400ae40c
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 3
je 0x140102122
cmp dword [rsp + 0xa8], 4
jne 0x140102964
mov rdi, qword [rsp + 0x910]
add rdi, 0x6b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x4c4]
call fcn.1400ae448
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.1400f9fe0
mov rdx, qword [rsp + 0x910]
mov ecx, dword [rdx + 0x6d0]
call fcn.1400ae40c
mov ecx, eax
shl ecx, 2
call fcn.1400f89b0
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.1400ae40c
mov ecx, eax
shl rcx, 2
mov edx, 0x200
call fcn.1400f8660
mov rdi, rax
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x6c4]
call fcn.1400ae448
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.1400f9fe0
mov rdx, qword [rsp + 0x910]
mov ecx, dword [rdx + 0x6d4]
call fcn.1400ae40c
xor edx, edx
mov ecx, 0x200
div ecx
xor edx, edx
mov ecx, 8
div ecx
mov ecx, eax
mov edx, 0x200
call fcn.1400f8660
mov dword [rsp + 0xac], eax
mov ecx, 0xc0
call fcn.140071a64
mov qword [rsp + 0x7b0], rax
cmp qword [rsp + 0x7b0], 0
je 0x140102275
mov rcx, qword [rsp + 0x7b0]
call fcn.14010c2c0
mov qword [rsp + 0x878], rax
jmp 0x140102281
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.14010d620
cmp dword [rsp + 0xa8], 4
jne 0x140102964
movzx eax, word [0x140217174]
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 0x140102315
mov eax, dword [rsp + 0x4c0]
add eax, 1
mov dword [rsp + 0x4c0], eax
cmp dword [rsp + 0x4c0], 8
jge 0x140102844
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
cmp dword [rax + rcx + 0x8f4], 0
jne 0x140102346
jmp 0x140102844
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
cmp dword [rax + rcx + 0x8f4], 0x756b3257
jne 0x140102518
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.1400a8080
movsxd rax, dword [rsp + 0x4c0]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + rax + 0x904]
call fcn.1400ae448
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.1400f9fe0
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
mov ecx, dword [rax + rcx + 0x8fc]
call fcn.1400ae40c
mov edx, eax
xor ecx, ecx
mov rax, qword [rsp + 0x4c8]
mov word [rax + rdx*2], cx
mov rcx, qword [rsp + 0x4c8]
call fcn.1400f9010
cmp eax, 2
je 0x14010244f
mov rcx, qword [rsp + 0x4c8]
call fcn.1400f9010
cmp eax, 1
je 0x14010244f
mov rcx, qword [rsp + 0x4c8]
call fcn.1400f9010
cmp eax, 6
jne 0x1401024fd
lea rcx, [rsp + 0x4d0]
call fcn.140076008
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x4c8]
lea rcx, [rsp + 0x4d0]
call fcn.14007610c
test eax, eax
jne 0x14010248b
lea rcx, [rsp + 0x4d0]
call fcn.140076064
jmp 0x140102304
lea rcx, [rsp + 0x4d0]
call fcn.140075d14
lea rdx, [rsp + 0x7b8]
lea rcx, [rsp + 0x4d0]
call fcn.140076560
mov qword [rsp + 0x880], rax
mov rcx, qword [rsp + 0x880]
call fcn.140023510
mov rdx, rax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x7b8]
call fcn.140001490
lea rcx, [rsp + 0x4d0]
call fcn.140075c40
nop
lea rcx, [rsp + 0x4d0]
call fcn.140076064
jmp 0x140102518
mov rdx, qword [rsp + 0x4c8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140102844
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
cmp dword [rax + rcx + 0x8f4], 0x75723257
jne 0x14010283f
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.1400a8080
movsxd rax, dword [rsp + 0x4c0]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + rax + 0x904]
call fcn.1400ae448
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.1400f9fe0
movsxd rcx, dword [rsp + 0x4c0]
imul rcx, rcx, 0x18
mov rax, qword [rsp + 0x910]
mov ecx, dword [rax + rcx + 0x8fc]
call fcn.1400ae40c
mov edx, eax
xor ecx, ecx
mov rax, qword [rsp + 0x538]
mov word [rax + rdx*2], cx
lea rcx, [rsp + 0x500]
call fcn.140076008
nop
mov rdx, qword [rsp + 0x910]
add rdx, 0xc
xor r8d, r8d
lea rcx, [rsp + 0x500]
call fcn.14007610c
lea rcx, [rsp + 0x500]
call fcn.140075d14
lea rdx, [rsp + 0x7c8]
lea rcx, [rsp + 0x500]
call fcn.140076560
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.14007662c
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.140076560
mov qword [rsp + 0x8a8], rax
mov rax, qword [rsp + 0x8a8]
mov qword [rsp + 0x8b0], rax
mov rcx, qword [rsp + 0x8a0]
call fcn.140001a40
mov edi, eax
mov rcx, qword [rsp + 0x890]
call fcn.140001a40
mov r8d, eax
sub r8d, edi
lea rdx, [rsp + 0x530]
mov rcx, qword [rsp + 0x8b0]
call fcn.140006b20
nop
lea rcx, [rsp + 0x7c0]
call fcn.140001490
nop
lea rcx, [rsp + 0x7d0]
call fcn.140001490
nop
lea rcx, [rsp + 0x7c8]
call fcn.140001490
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.140023510
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x500]
call fcn.14007610c
test eax, eax
jne 0x14010276c
mov dword [rsp + 0x8c8], 1
jmp 0x140102777
mov dword [rsp + 0x8c8], 0
movzx eax, byte [rsp + 0x8c8]
mov byte [rsp + 0x7d8], al
lea rcx, [rsp + 0x7e0]
call fcn.140001490
movzx edx, byte [rsp + 0x7d8]
test edx, edx
je 0x1401027bf
lea rcx, [rsp + 0x530]
call fcn.140001490
nop
lea rcx, [rsp + 0x500]
call fcn.140076064
jmp 0x140102304
lea rcx, [rsp + 0x500]
call fcn.140075d14
lea rdx, [rsp + 0x7e8]
lea rcx, [rsp + 0x500]
call fcn.140076560
mov qword [rsp + 0x8d0], rax
mov rcx, qword [rsp + 0x8d0]
call fcn.140023510
mov rdx, rax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x7e8]
call fcn.140001490
lea rcx, [rsp + 0x500]
call fcn.140075c40
nop
lea rcx, [rsp + 0x530]
call fcn.140001490
nop
lea rcx, [rsp + 0x500]
call fcn.140076064
jmp 0x140102844
jmp 0x140102304
lea rcx, [rsp + 0xc0]
call fcn.1400a8204
test rax, rax
je 0x140102964
lea rcx, [rsp + 0x48]
call fcn.140023510
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.1400aa18c
test eax, eax
jne 0x140102899
mov dword [rsp + 0x7f0], 0
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x7f0]
jmp 0x140102dae
mov rdx, qword [rsp + 0x910]
add rdx, 0x494
xor r8d, r8d
lea rcx, [rsp + 0xc0]
call fcn.1400ff710
test eax, eax
jne 0x140102964
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 0x14010290e
mov edx, 1
mov rcx, qword [rsp + 0x7f8]
call fcn.14002b300
mov qword [rsp + 0x8d8], rax
jmp 0x14010291a
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.1400f8970
mov dword [rsp + 0x808], 0
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x808]
jmp 0x140102dae
cmp dword [rsp + 0x40], 8
jne 0x140102d63
mov rcx, qword [rsp + 0x910]
add rcx, 0x4b4
mov r8d, 0xa18
xor edx, edx
call fcn.1400a8080
mov rdx, qword [rsp + 0x910]
add rdx, 0x4b4
mov rcx, qword [rsp + 0x910]
mov rcx, qword [rcx + 0x40c]
call fcn.140107c80
test eax, eax
jne 0x140102a12
mov r8, qword [rsp + 0x48]
lea rdx, str._ERROR___s_invalid_vhdx_header
mov ecx, 1
call fcn.1400dc610
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.1400f8970
mov dword [rsp + 0x80c], 0
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x80c]
jmp 0x140102dae
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4e4], 0
je 0x140102b2b
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.1400a9470
lea rcx, [rsp + 0x550]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x550]
call fcn.1400a8204
test rax, rax
je 0x140102aa9
lea rcx, [rsp + 0x550]
call fcn.1400a8204
movzx eax, word [rsp + rax*2 + 0x54e]
cmp eax, 0x5c
je 0x140102aa9
lea rdx, [0x1402171cc]
lea rcx, [rsp + 0x550]
call fcn.1400a9444
mov rdx, qword [rsp + 0x910]
add rdx, 0x8fc
lea rcx, [rsp + 0x550]
call fcn.1400a9444
lea rcx, [rsp + 0x550]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140102b08
mov rax, qword [rsp + 0x910]
movzx eax, word [rax + 0x8fc]
test eax, eax
je 0x140102b08
mov rcx, qword [rsp + 0x910]
add rcx, 0x10fc
lea rdx, [rsp + 0x550]
call fcn.1400a9470
jmp 0x140102b2b
mov rdx, qword [rsp + 0x910]
add rdx, 0x4fc
mov rcx, qword [rsp + 0x910]
add rcx, 0x10fc
call fcn.1400a9470
mov ecx, 0xc0
call fcn.140071a64
mov qword [rsp + 0x818], rax
cmp qword [rsp + 0x818], 0
je 0x140102b5f
mov rcx, qword [rsp + 0x818]
call fcn.14010c2c0
mov qword [rsp + 0x8e0], rax
jmp 0x140102b6b
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 [0x14025a2a0]
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 [0x14025c370]
divsd xmm0, qword [0x14025c368]
call fcn.1400ae2f8
mulsd xmm0, qword [0x14025c368]
xor ecx, ecx
comisd xmm0, xmmword [0x14025a298]
jbe 0x140102c18
subsd xmm0, qword [0x14025a298]
comisd xmm0, xmmword [0x14025a298]
jae 0x140102c18
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.14010d620
mov rax, qword [rsp + 0x910]
cmp dword [rax + 0x4e4], 0
je 0x140102d63
mov rdx, qword [rsp + 0x910]
add rdx, 0x494
mov rcx, qword [rsp + 0x910]
add rcx, 0x10fc
xor r8d, r8d
call fcn.1400ff710
test eax, eax
jne 0x140102d63
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 0x140102d10
mov edx, 1
mov rcx, qword [rsp + 0x820]
call fcn.14002b300
mov qword [rsp + 0x8e8], rax
jmp 0x140102d1c
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.1400f8970
mov dword [rsp + 0x830], 0
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x830]
jmp 0x140102dae
mov rcx, qword [rsp + 0x910]
call fcn.1400f8a20
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.1400dc610
mov dword [rsp + 0x834], 1
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x834]
mov rcx, qword [rsp + 0x8f0]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x900
pop rdi
ret