Function at 0x180035950
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [rcx + 0x10]
xor ebp, ebp
mov dword [rcx + 0x40], edx
mov r14d, edx
mov rbx, rcx
test rax, rax
je 0x18003598f
nop dword [rax]
cmp dword [rax], 0x19701015
jne 0x18003598f
cmp dword [rax + 0x18], ebp
je 0x180035988
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180035970
jmp 0x18003598f
cmp qword [rax + 0x20], 0x40
je 0x180035992
mov rax, rbp
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x58], r13
test rax, rax
je 0x1800359c7
nop dword [rax]
cmp dword [rax], 0x19701015
jne 0x1800359c7
cmp dword [rax + 0x18], 7
je 0x180035a28
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800359b0
mov rax, rbp
mov qword [rcx + 0x30], 0xffffffffffffffff
lea rdi, [rcx + 0x30]
mov qword [rcx + 0x38], 0xffffffffffffffff
lea r13, [rcx + 0x38]
mov qword [rcx + 0x28], rax
cmp rax, 0x1000
jb 0x180035a46
movabs rcx, 0xffff800000000000
test rcx, rax
jne 0x180035a46
mov qword [rsp + 0x80], rsi
mov ecx, 0x783
mov qword [rsp + 0x98], r12
mov r12d, r14d
mov qword [rsp + 0x50], r15
lea esi, [rcx - 2]
and r12d, 1
je 0x180035a50
mov r8d, esi
jmp 0x180035a5e
cmp qword [rax + 0x20], 0xe8
je 0x1800359ca
mov qword [rcx + 0x28], rbp
mov qword [rcx + 0x30], 0xffffffffffffffff
mov qword [rcx + 0x38], 0xffffffffffffffff
mov eax, 0xfffffffe
jmp 0x180035c88
test r14b, 0x20
mov r8d, 0x723
cmovne r8d, ecx
mov rcx, qword [rax + 0x28]
lea r9, [rbx + 8]
mov rax, qword [rax + 0x30]
mov rdx, qword [rbx]
call qword [case.0x18000a7ec.0]
test eax, eax
js 0x180035c73
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
jne 0x180035ac7
mov rcx, qword [rbx + 0x28]
lea r9, [rsp + 0x88]
mov rdx, qword [rbx + 8]
xor r8d, r8d
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov rax, qword [rcx + 0x88]
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 4
call qword [case.0x18000a7ec.0]
jmp 0x180035ae2
mov r9d, 4
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x88]
xor edx, edx
call qword [sym.imp.VBoxRT.dll_RTVfsFileReadAt]
test eax, eax
js 0x180035c73
cmp dword [rsp + 0x88], 0x21726178
jne 0x180035b31
test r12d, r12d
jne 0x180035b0d
test r14b, 0x20
mov esi, 0x723
mov eax, 0x783
cmovne esi, eax
mov r9, qword [rbx]
mov ecx, esi
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x28]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
call fcn.1800360e0
test eax, eax
js 0x180035c73
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
jne 0x180035b56
mov rcx, qword [rbx + 0x28]
lea r8, [rbx + 0x50]
mov rdx, qword [rbx + 8]
mov rax, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x28]
call qword [case.0x18000a7ec.0]
jmp 0x180035b60
lea rdx, [rbx + 0x50]
call qword [sym.imp.VBoxRT.dll_RTVfsFileQuerySize]
test eax, eax
js 0x180035c73
mov rax, qword [rbx + 0x50]
cmp rax, 0x400
jb 0x180035c6e
mov rcx, qword [rdi]
lea rdx, [rax - 0x200]
cmp rcx, 0xffffffffffffffff
jne 0x180035bca
mov rcx, qword [rbx + 0x28]
lea r9, [rbx + 0x3b0]
mov qword [rsp + 0x40], rbp
mov r8, rdx
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x38], rbp
mov rax, qword [rcx + 0x88]
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0x200
call qword [case.0x18000a7ec.0]
jmp 0x180035be2
mov r9d, 0x200
mov qword [rsp + 0x20], rbp
lea r8, [rbx + 0x3b0]
call qword [sym.imp.VBoxRT.dll_RTVfsFileReadAt]
test eax, eax
js 0x180035c73
lea rcx, [rbx + 0x3b0]
call fcn.1800372a0
cmp dword [rbx + 0x3b0], 0x6b6f6c79
jne 0x180035c6e
cmp dword [rbx + 0x3b4], 4
jne 0x180035c6e
cmp dword [rbx + 0x3b8], 0x200
jne 0x180035c6e
mov rdx, qword [rbx + 0x50]
lea rcx, [rbx + 0x3b0]
sub rdx, 0x200
call fcn.1800373b0
test al, al
jne 0x180035c9e
mov ecx, 0x18c0010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180035c6e
mov rcx, qword [rbx + 0x50]
lea r9, str.Bad_DMG:__s_cbFile_RTfoff_n
mov qword [rsp + 0x28], rcx
mov edx, 0x10
mov rcx, qword [rbx]
mov r8d, 0x18c
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov eax, 0xfffff33d
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret
mov rsi, qword [rbx + 0x490]
lea rdx, [0x18005255e]
mov rax, qword [rbx + 0x59c]
shl rax, 9
mov qword [rbx + 0x48], rax
lea rcx, [rsi + 1]
call qword [sym.imp.VBoxRT.dll_RTMemAllocTag]
mov r12, rax
test rax, rax
jne 0x180035cd4
lea eax, [r12 - 8]
jmp 0x180035c73
mov rcx, qword [rdi]
mov rdx, qword [rbx + 0x488]
cmp rcx, 0xffffffffffffffff
jne 0x180035d1e
mov rcx, qword [rbx + 0x28]
mov r8, rdx
mov rdx, qword [rbx + 8]
mov r9, r12
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov rax, qword [rcx + 0x88]
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
call qword [case.0x18000a7ec.0]
jmp 0x180035d2f
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov r8, r12
call qword [sym.imp.VBoxRT.dll_RTVfsFileReadAt]
mov edi, eax
test eax, eax
js 0x180035f53
mov rdx, r12
mov byte [r12 + rsi], 0
mov rcx, rbx
call fcn.1800362e0
mov rdi, rax
test rax, rax
jne 0x180036067
mov edx, ebp
lea r8, str.blkx
nop
mov eax, edx
lea r14, [rbx + 0x70]
imul rcx, rax, 0x1a0
mov rax, rbp
add r14, rcx
movzx ecx, byte [r14 + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x180035f43
cmp rax, 5
jne 0x180035d73
cmp dword [r14 + 0xc], 0
mov r15d, ebp
mov edi, ebp
jbe 0x180035f53
lea r13, str.pBlkx__u32Magic__DMGBLKX_MAGIC
nop dword [rax]
nop word [rax + rax]
mov eax, r15d
lea rcx, [rax + rax*4]
lea rdi, [r14 + rcx*8]
mov rcx, qword [r14 + rcx*8 + 0x28]
cmp rcx, 0xcc
jb 0x180036060
lea rdx, [0x18005255e]
call qword [sym.imp.VBoxRT.dll_RTMemAllocZTag]
mov rsi, rax
test rax, rax
je 0x180036056
mov r8, qword [rdi + 0x28]
mov rcx, rax
mov rdx, qword [rdi + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsi]
mov rax, qword [rsi + 8]
bswap rax
mov qword [rsi + 8], rax
mov rax, qword [rsi + 0x10]
bswap rax
mov qword [rsi + 0x10], rax
mov rax, qword [rsi + 0x18]
bswap rax
mov qword [rsi + 0x18], rax
mov eax, dword [rsi + 0x20]
bswap eax
mov dword [rsi + 0x20], eax
mov eax, dword [rsi + 0x24]
bswap eax
bswap ecx
mov dword [rsi], ecx
mov ecx, dword [rsi + 4]
mov dword [rsi + 0x24], eax
mov eax, dword [rsi + 0xc8]
bswap eax
bswap ecx
mov dword [rsi + 4], ecx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0xc8], eax
mov eax, dword [rcx]
bswap eax
cmp eax, 2
jne 0x180035e62
mov dword [rcx], eax
mov eax, dword [rcx + 4]
bswap eax
mov dword [rcx + 4], eax
mov eax, dword [rcx + 8]
bswap eax
mov dword [rcx + 8], eax
lea rdx, str.BlkxCkSum
call fcn.180037140
and al, 1
cmp dword [rsi], 0x6d697368
je 0x180035ee3
mov ecx, 0x18c0010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180035ea8
lea r9, str.DMG:_validation_failed:__s_nDMG:
mov qword [rsp + 0x20], r13
mov edx, 0x10
mov r8d, 0x18c
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x18c0010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180035ee1
mov ecx, dword [rsi]
lea r9, str.u32Magic_RX32_u32MagicExpected_RX32_n
mov dword [rsp + 0x28], 0x6d697368
mov edx, 0x10
mov dword [rsp + 0x20], ecx
mov r8d, 0x18c
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
xor al, al
cmp dword [rsi + 4], 1
jne 0x180035fbe
test al, al
je 0x18003602e
mov eax, dword [rsi + 0xc8]
lea rcx, [rax + rax*4]
lea rcx, [rcx*8 + 0xcc]
cmp qword [rdi + 0x28], rcx
jne 0x18003602e
mov rdx, rsi
mov rcx, rbx
call fcn.180035520
mov rcx, rsi
mov edi, eax
call qword [sym.imp.VBoxRT.dll_RTMemFree]
test edi, edi
js 0x180035f53
inc r15d
cmp r15d, dword [r14 + 0xc]
jb 0x180035db0
mov rcx, r12
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x180035f64
inc edx
cmp edx, 2
jb 0x180035d60
mov edi, 0xfffff33d
mov rcx, r12
call qword [sym.imp.VBoxRT.dll_RTMemFree]
test edi, edi
js 0x180036045
mov rax, qword [rbx + 0x48]
mov qword [rbx + 0x5f0], rax
mov eax, edi
mov dword [rbx + 0x5e0], ebp
mov dword [rbx + 0x5e4], 1
mov qword [rbx + 0x5e8], rbp
mov qword [rbx + 0x5f8], 0x800
mov dword [rbx + 0x600], 1
mov dword [rbx + 0x604], 1
mov qword [rbx + 0x608], 0x800
mov qword [rbx + 0x610], rbp
jmp 0x180035c73
mov ecx, 0x18c0010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180035ff5
lea rcx, str.pBlkx__u32Version__DMGBLKX_VERSION
mov edx, 0x10
mov qword [rsp + 0x20], rcx
lea r9, str.DMG:_validation_failed:__s_nDMG:
mov rcx, rax
mov r8d, 0x18c
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x18c0010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x18003602e
mov ecx, dword [rsi]
lea r9, str.u32Version_RX32_u32VersionExpected_RX32_n
mov dword [rsp + 0x28], 1
mov edx, 0x10
mov dword [rsp + 0x20], ecx
mov r8d, 0x18c
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov rcx, rsi
mov edi, 0xfffff33d
call qword [sym.imp.VBoxRT.dll_RTMemFree]
mov rcx, r12
call qword [sym.imp.VBoxRT.dll_RTMemFree]
xor edx, edx
mov rcx, rbx
call fcn.1800357c0
mov eax, edi
jmp 0x180035c73
mov edi, 0xfffffff8
jmp 0x180035f53
mov edi, 0xfffff33d
jmp 0x18003603c
mov ecx, 0x18c0010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180036097
lea r9, str._XML_DUMP_BEGIN__n_s_n_XML_DUMP_END__n
mov qword [rsp + 0x20], r12
mov edx, 0x10
mov r8d, 0x18c
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x18c0010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1800360d4
mov ecx, edi
mov qword [rsp + 0x30], rdi
sub ecx, r12d
lea r9, str._Bad_XML_at__lx___lu___n_.256s_n_Bad_XML_END__n
mov dword [rsp + 0x28], ecx
mov edx, 0x10
mov dword [rsp + 0x20], ecx
mov r8d, 0x18c
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov edi, 0xfffff32c
jmp 0x18003603c