Function at 0x140008220
Capabilities:
Extract resource via kernel32 functions

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 - 0x968]
sub rsp, 0xa40
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x8d8], rax
movsxd r14, dword [0x14015a200]
lea rax, [0x1400d8338]
mov qword [rbp + 0x8c0], rax
xor r13d, r13d
mov qword [rsp + 0x68], rcx
lea rax, [0x1400d833c]
mov ecx, dword [0x14015b550]
xorps xmm0, xmm0
mov qword [rbp + 0x8c8], rax
mov esi, ecx
shl ecx, 7
lea rax, [0x1400d8340]
mov qword [rbp + 0x8d0], rax
xor edx, edx
mov eax, dword [0x14015b54c]
mov ebx, r13d
imul rsi, rax
movups xmmword [rsp + 0x74], xmm0
xor eax, eax
mov dword [rsp + 0x64], r8d
mov dword [rsp + 0x50], ecx
mov r8d, 0x930
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x7c], eax
mov dword [rsp + 0x4c], r9d
mov edi, r13d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x70], 2
call fcn.140093c00
mov rcx, qword [0x14015a348]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x14015a348]
xor r9d, r9d
movsxd r8, eax
mov edx, 0x150
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, qword [rbp + r14*8 + 0x8c0]
mov r9d, 0xca6
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov edx, 1
mov r15, rax
mov ecx, edx
call fcn.14001b7e0
test r15, r15
mov eax, 0x200
cmove r15, rax
cmp r14d, 2
je 0x14000929a
test byte [rbp + 0x990], 4
je 0x14000842f
mov rdi, qword [0x14015a338]
lea edx, [rax - 0xa]
mov rcx, rdi
lea r8d, [r13 + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
jne 0x1400083b7
call fcn.140041e50
mov r8, rax
lea rdx, str.uefi_ntfs.img
lea rcx, str.Could_not_locate_resource__s:__s
call fcn.140041aa0
jmp 0x140008402
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
test rax, rax
jne 0x1400083e8
call fcn.140041e50
mov r8, rax
lea rdx, str.uefi_ntfs.img
lea rcx, str.Could_not_load_resource__s:__s
call fcn.140041aa0
jmp 0x140008402
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r13, rax
test r13, r13
mov r13d, 0
cmove ebx, r13d
test rbx, rbx
jne 0x140008427
lea rcx, str.Could_not_access_embedded_uefi_ntfs.img
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
mov r14d, dword [rsp + 0x44]
mov edi, r13d
xorps xmm0, xmm0
lea rcx, [0x14015b568]
xor edx, edx
mov r8d, 0x580
movups xmmword [0x14015b530], xmm0
call fcn.140093c00
cmp r14d, 1
je 0x140008482
mov rcx, qword [0x14015a568]
mov edx, 0x3fc
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x140008482
lea rax, [rsi - 1]
add rax, r15
cqo
idiv r15
mov rcx, rax
imul rcx, r15
add rcx, rcx
jmp 0x140008487
mov ecx, 0x100000
cmp dword [0x14015b558], 0xc
mov qword [0x14015b5b0], rcx
je 0x1400084a7
cmp dword [0x1401429ec], 0x3a98
jbe 0x1400085a6
movzx r9d, byte [rbp + 0x990]
test r9b, 2
je 0x1400085ae
cmp r14d, 1
je 0x1400084df
mov r8d, 0x90a
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.partition_style__PARTITION_STYLE_GPT
call fcn.1400a15c4
mov rcx, qword [0x14015b5b0]
movzx eax, word [0x1400d8408]
lea r9, [rcx + 0x10400000]
mov ecx, dword [0x14015b550]
lea r8, [rsi - 1]
movups xmm0, xmmword [str.EFI_System_Partition]
mov word [0x14015b590], ax
xor edx, edx
movups xmm1, xmmword [0x1400d83f0]
add r8, r9
mov dword [0x14015b534], r13d
mov rax, r8
mov qword [0x14015b5b8], 0x10400000
div rsi
mov rax, r15
sub r8, rdx
cqo
idiv rcx
movups xmmword [0x14015b568], xmm0
mov qword [0x14015b608], r8
movsd xmm0, qword [0x1400d8400]
movsd qword [0x14015b588], xmm0
movups xmmword [0x14015b578], xmm1
test rdx, rdx
jne 0x14000856e
mov rax, r8
div r15
sub r8, rdx
mov qword [0x14015b608], r8
cmp r8, r9
jae 0x14000858c
mov r8d, 0x913
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.SelectedDrive.Partition_pi__1_.Offset___SelectedDrive.Partition_pi_.Offset__SelectedDrive.Partition_pi_.Size
call fcn.1400a15c4
movzx r9d, byte [rbp + 0x990]
mov edi, 1
and r9b, 0xfd
mov byte [rbp + 0x990], r9b
jmp 0x1400085ae
movzx r9d, byte [rbp + 0x990]
lea r11, [0x140000000]
test r9b, 1
je 0x1400086d6
cmp r14d, 1
je 0x1400085e5
mov r8d, 0x91b
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.partition_style__PARTITION_STYLE_GPT
call fcn.1400a15c4
lea r11, [0x140000000]
movups xmm0, xmmword [str.Microsoft_Reserved_Partition]
mov eax, edi
xor edx, edx
movups xmm1, xmmword [0x1400d8500]
lea r8, [rsi - 1]
imul rcx, rax, 0x58
movzx eax, word [0x1400d8528]
mov r9, qword [rcx + r11 + 0x15b5b0]
movups xmmword [rcx + r11 + 0x15b568], xmm0
add r9, 0x8000000
mov qword [rcx + r11 + 0x15b5b8], 0x8000000
movups xmm0, xmmword [0x1400d8510]
add r8, r9
inc edi
movups xmmword [rcx + r11 + 0x15b578], xmm1
movsd xmm1, qword [0x1400d8520]
movups xmmword [rcx + r11 + 0x15b588], xmm0
movsd qword [rcx + r11 + 0x15b598], xmm1
mov word [rcx + r11 + 0x15b5a0], ax
mov eax, edi
imul r10, rax, 0x58
mov rax, r8
div rsi
mov rax, r15
sub r8, rdx
cqo
mov qword [r10 + r11 + 0x15b5b0], r8
mov ecx, dword [0x14015b550]
idiv rcx
test rdx, rdx
jne 0x14000869e
mov rax, r8
div r15
sub r8, rdx
mov qword [r10 + r11 + 0x15b5b0], r8
cmp r8, r9
jae 0x1400086c3
mov r8d, 0x922
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.SelectedDrive.Partition_pi__1_.Offset___SelectedDrive.Partition_pi_.Offset__SelectedDrive.Partition_pi_.Size
call fcn.1400a15c4
lea r11, [0x140000000]
movzx r9d, byte [rbp + 0x990]
and r9b, 0xfe
mov byte [rbp + 0x990], r9b
mov r10d, edi
lea rax, str.EFI_System_Partition
mov dword [0x14015b530], edi
lea rcx, str.Main_Data_Partition
inc edi
mov dword [rsp + 0x60], r10d
cmp dword [0x1401128d0], 0
lea r13, [r11 + 0x15b568]
mov dword [rsp + 0x40], edi
cmovne rcx, rax
imul r12, r10, 0x58
add r13, r12
mov rdx, r13
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140008720
test r9b, r9b
je 0x1400088f1
test r9b, 0x10
je 0x1400087dc
mov rcx, qword [0x140111618]
test rcx, rcx
jne 0x140008783
mov r8d, 0x931
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.persistence_size___0
call fcn.1400a15c4
mov rcx, qword [0x140111618]
lea r11, [0x140000000]
movzx r9d, byte [rbp + 0x990]
mov r10d, dword [rsp + 0x60]
movups xmm0, xmmword [str.Linux_Persistence]
mov eax, edi
dec rcx
movups xmm1, xmmword [0x1400d8598]
add rcx, rsi
xor edx, edx
imul r8, rax, 0x58
mov eax, dword [0x1400d85a8]
mov dword [0x14015b538], edi
movups xmmword [r8 + r11 + 0x15b568], xmm0
movups xmmword [r8 + r11 + 0x15b578], xmm1
mov dword [r8 + r11 + 0x15b588], eax
mov rax, rcx
div rsi
sub rcx, rdx
inc edi
mov qword [r8 + r11 + 0x15b5b8], rcx
mov dword [rsp + 0x40], edi
test r9b, 2
je 0x14000884d
movups xmm0, xmmword [str.EFI_System_Partition]
mov eax, edi
movups xmm1, xmmword [0x1400d83f0]
mov dword [0x14015b534], edi
imul rcx, rax, 0x58
movzx eax, word [0x1400d8408]
movups xmmword [rcx + r11 + 0x15b568], xmm0
movsd xmm0, qword [0x1400d8400]
movups xmmword [rcx + r11 + 0x15b578], xmm1
movsd qword [rcx + r11 + 0x15b588], xmm0
mov word [rcx + r11 + 0x15b590], ax
lea rax, [rsi + 0x103fffff]
cqo
idiv rsi
imul rax, rsi
mov qword [rcx + r11 + 0x15b5b8], rax
jmp 0x1400088eb
test r9b, 4
je 0x140008899
movups xmm0, xmmword [0x1400d7fa0]
mov eax, edi
lea rcx, [rsi - 1]
imul r8, rax, 0x58
mov eax, dword [0x1400d7fb0]
add rcx, rbx
xor edx, edx
mov dword [0x14015b53c], edi
movups xmmword [r8 + r11 + 0x15b568], xmm0
mov dword [r8 + r11 + 0x15b578], eax
mov rax, rcx
div rsi
sub rcx, rdx
mov qword [r8 + r11 + 0x15b5b8], rcx
jmp 0x1400088eb
test r9b, 8
je 0x1400088f1
movups xmm0, xmmword [str.BIOS_Compatibility]
mov eax, edi
movups xmm1, xmmword [0x1400d85c0]
imul rcx, rax, 0x58
mov eax, dword [0x1400d85d0]
movups xmmword [rcx + r11 + 0x15b568], xmm0
mov qword [rcx + r11 + 0x15b5b8], rsi
movups xmmword [rcx + r11 + 0x15b578], xmm1
mov dword [rcx + r11 + 0x15b588], eax
movzx eax, word [0x1400d85d4]
mov word [rcx + r11 + 0x15b58c], ax
inc edi
mov dword [rsp + 0x40], edi
cmp edi, 0x10
jbe 0x140008916
mov r8d, 0x943
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.pi___MAX_PARTITIONS
call fcn.1400a15c4
xor eax, eax
jmp 0x14000929f
mov rbx, qword [0x14015b540]
cmp r14d, 1
jne 0x140008930
mov eax, dword [0x14015b550]
imul rcx, rax, 0x21
sub rbx, rcx
lea ecx, [rdi - 1]
lea rdx, [0x14015b5b8]
cmp ecx, r10d
jbe 0x14000899b
mov eax, ecx
imul rdi, rax, 0x58
add rdi, rdx
sub ecx, r10d
mov r14d, ecx
nop
mov rax, qword [rdi]
cmp rax, rbx
jb 0x140008974
mov r8d, 0x94c
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.SelectedDrive.Partition_i_.Size___last_offset
call fcn.1400a15c4
mov rax, qword [rdi]
sub rbx, rax
xor edx, edx
mov rax, rbx
div rsi
sub rbx, rdx
mov qword [rdi - 8], rbx
sub rdi, 0x58
sub r14, 1
jne 0x140008950
mov edi, dword [rsp + 0x40]
lea r11, [0x140000000]
mov rax, qword [r12 + r11 + 0x15b5b0]
cmp rbx, rax
ja 0x1400089d0
mov r8d, 0x952
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.last_offset___SelectedDrive.Partition_mi_.Offset
call fcn.1400a15c4
lea r11, [0x140000000]
mov rax, qword [r12 + r11 + 0x15b5b0]
sub rbx, rax
xor edx, edx
mov rax, rbx
div rsi
mov rax, r15
sub rbx, rdx
cqo
mov qword [r12 + r11 + 0x15b5b8], rbx
mov ecx, dword [0x14015b550]
idiv rcx
test rdx, rdx
jne 0x140008a0a
mov rax, rbx
div r15
sub rbx, rdx
mov qword [r12 + r11 + 0x15b5b8], rbx
test rbx, rbx
jne 0x140008a25
mov rdx, r13
lea rcx, str.Error:_Invalid__S_size
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
xor r15d, r15d
mov r14d, r15d
test edi, edi
je 0x140008f58
mov esi, dword [rsp + 0x50]
lea r12, [rbp - 0x20]
movsd xmm9, qword [0x1400f64b8]
lea r13, [0x14015b5b8]
movsd xmm8, qword [0x1400f6440]
movsd xmm10, qword [0x1400f6498]
movsd xmm11, qword [0x1400f6468]
mov qword [rbp - 0x78], rsi
mov rcx, qword [r13]
lea r10, [0x140155350]
lea rdi, [0x1400d756a]
xorps xmm7, xmm7
test rcx, rcx
js 0x140008a8b
cvtsi2sd xmm7, rcx
jmp 0x140008aa0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm7, rax
addsd xmm7, xmm7
mov rbx, r15
comisd xmm9, xmm7
ja 0x140008ab8
inc rbx
mulsd xmm7, xmm8
cmp rbx, 5
jl 0x140008aa3
test rbx, rbx
jne 0x140008afa
mov rax, qword [0x1401091b0]
lea r9, str._s_d_s__s
mov qword [rsp + 0x38], rax
lea edx, [rbx + 0x20]
cvttsd2si ecx, xmm7
mov qword [rsp + 0x30], rdi
lea r8, [rbx - 1]
mov dword [rsp + 0x28], ecx
mov rcx, r10
mov qword [rsp + 0x20], rdi
call fcn.1400034e0
lea rbx, [0x140155350]
jmp 0x140008b66
movaps xmm6, xmm7
movaps xmm0, xmm7
mulsd xmm6, xmm10
call fcn.1400bf1f0
mulsd xmm0, xmm10
lea rax, str._s_0.0f_s__s
mov edx, 0x20
lea r9, str._s_0.1f_s__s
subsd xmm6, xmm0
lea r8, [rdx - 0x21]
comisd xmm11, xmm6
cmova r9, rax
lea rax, [0x140000000]
mov rax, qword [rax + rbx*8 + 0x1091b0]
lea rbx, [0x140155350]
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov qword [rsp + 0x30], rdi
movsd qword [rsp + 0x28], xmm7
mov qword [rsp + 0x20], rdi
call fcn.1400034e0
lea rcx, [0x140000000]
mov r15d, r14d
lea rdi, [rcx + 0x15b568]
mov byte [0x14015536f], 0
imul rax, r15, 0x58
lea rdx, str.Partition
add rdi, rax
mov rcx, rdi
call fcn.140092e50
mov r9, qword [r13 - 8]
lea r8, [0x1400d756a]
test rax, rax
mov qword [rsp + 0x20], rbx
lea rax, str._Partition
mov rdx, rdi
cmove r8, rax
lea rcx, str._Creating__S_s__offset:__lld__size:__s_
call fcn.140041aa0
mov rax, qword [r13]
mov edx, 1
mov ecx, dword [rsp + 0x50]
cmp rsi, rax
mov rbx, qword [r13 - 8]
cmovae ecx, eax
mov dword [rsp + 0x58], ecx
call fcn.1400966e0
mov rsi, rax
test rax, rax
je 0x140008c31
mov rdx, rbx
xor r9d, r9d
mov rbx, qword [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140008c0e
mov rcx, rsi
call fcn.14009b5a0
jmp 0x140008c31
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rsi
mov rcx, rbx
call fcn.140042b10
mov rcx, rsi
mov ebx, eax
call fcn.14009b5a0
test ebx, ebx
jne 0x140008c48
call fcn.140041e50
mov r8, rax
lea rcx, str.Could_not_zero__S:__s
mov rdx, rdi
call fcn.140041aa0
mov rax, qword [r13 - 8]
lea esi, [r14 + 1]
mov ecx, dword [rsp + 0x44]
mov qword [r12 - 0x18], rax
mov rax, qword [r13]
mov qword [r12 - 0x10], rax
mov dword [r12 - 0x20], ecx
mov dword [r12 - 8], esi
mov byte [r12 - 4], 1
test ecx, ecx
jne 0x140008db3
cmp r14d, dword [rsp + 0x60]
jne 0x140008cca
cmp dword [0x14015a560], ecx
setne al
mov byte [r12 + 1], al
movsxd rax, dword [rsp + 0x64]
cmp eax, 8
ja case.default.0x140008cae
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x92f0]
add rcx, rdx
jmp rcx
mov byte [r12], 0xe
jmp 0x140008cca
mov byte [r12], 7
jmp 0x140008cca
mov byte [r12], 0x83
jmp 0x140008cca
mov byte [r12], 0xc
mov rcx, 0xffffffffffffffff
lea rdx, str.EFI_System_Partition
nop dword [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140008d00
add rcx, 2
cmp rcx, 0x15
je 0x140008d30
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x140008ce0
xor ecx, ecx
lea rdx, [0x1400d7fa0]
nop dword [rax]
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x140008d3a
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140008d3a
add rcx, 2
cmp rcx, 0xa
jne 0x140008d10
mov byte [r12], 0xef
jmp 0x140008e60
xor ecx, ecx
lea rdx, str.Linux_Persistence
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x140008d6d
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140008d6d
add rcx, 2
cmp rcx, 0x12
jne 0x140008d43
mov byte [r12], 0x83
jmp 0x140008e60
mov rcx, 0xffffffffffffffff
lea rdx, str.BIOS_Compatibility
nop dword [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140008e60
add rcx, 2
cmp rcx, 0x13
je 0x140008da9
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x140008d80
jmp 0x140008e60
mov byte [r12], 0xea
jmp 0x140008e60
cmp ecx, 1
je 0x140008dd1
mov r8d, 0x995
lea rdx, str.C:_src_r3dusb_srcdrive.c
lea rcx, str.partition_style__PARTITION_STYLE_GPT
call fcn.1400a15c4
xor ecx, ecx
lea rdx, [0x1400d7fa0]
nop word [rax + rax]
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x140008e86
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140008e86
add rcx, 2
cmp rcx, 0xa
jne 0x140008de0
movabs rax, 0x9000000000000000
mov qword [r12 + 0x20], rax
movups xmm0, xmmword [0x1400d8e10]
lea rbx, [r15 + r15*8]
shl rbx, 4
lea rcx, [rbp - 0x10]
add rcx, rbx
movups xmmword [r12], xmm0
call qword [sym.imp.ole32.dll_CoCreateGuid]
lea rcx, [rbp + 8]
sub rbx, rdi
add rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rdi]
mov word [rdi + rcx], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x140008e50
mov edi, dword [rsp + 0x40]
add r13, 0x58
add r12, 0x90
xor r15d, r15d
mov r14d, esi
cmp esi, edi
jae 0x140008f58
mov rsi, qword [rbp - 0x78]
jmp 0x140008a6a
mov rcx, 0xffffffffffffffff
lea rdx, str.EFI_System_Partition
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140008eb4
add rcx, 2
cmp rcx, 0x15
je 0x140008eec
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x140008e94
xor ecx, ecx
lea rdx, str.Linux_Persistence
nop dword [rax]
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
jne 0x140008ef8
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140008ef8
add rcx, 2
cmp rcx, 0x12
jne 0x140008ec0
movups xmm0, xmmword [0x1400d89a0]
jmp 0x140008e1e
movups xmm0, xmmword [0x1400d8930]
jmp 0x140008e1e
mov rcx, 0xffffffffffffffff
lea rdx, str.Microsoft_Reserved_Partition
nop word [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140008e17
add rcx, 2
cmp rcx, 0x1d
je 0x140008f39
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x140008f10
jmp 0x140008e17
movups xmm0, xmmword [0x1400d8e00]
jmp 0x140008e1e
lea rcx, str.Unsupported_file_system
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
test byte [rbp + 0x990], 4
je 0x1400090c3
movsxd rax, dword [0x14015b53c]
lea rcx, str.Writing_UEFI:NTFS_data...
imul rdx, rax, 0x58
lea rax, [0x14015b568]
add rdx, rax
call fcn.140041aa0
movsxd rax, dword [0x14015b53c]
xor r9d, r9d
mov r14, qword [rsp + 0x68]
xor r8d, r8d
imul rdx, rax, 0x58
lea rax, [0x140000000]
mov rcx, r14
mov rdx, qword [rdx + rax + 0x15b5b0]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140008fcb
lea rcx, str.__Could_not_set_position
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
mov rbx, qword [0x14015a338]
mov edx, 0x1f6
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14000901c
call fcn.140041e50
mov r8, rax
lea rdx, str.uefi_ntfs.img
lea rcx, str.Could_not_locate_resource__s:__s
call fcn.140041aa0
lea rcx, str.__Could_not_access_source_image
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x14000905e
call fcn.140041e50
mov r8, rax
lea rdx, str.uefi_ntfs.img
lea rcx, str.Could_not_load_resource__s:__s
call fcn.140041aa0
lea rcx, str.__Could_not_access_source_image
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x14000908d
lea rcx, str.__Could_not_access_source_image
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rcx, r14
call fcn.140042b10
test eax, eax
jne 0x1400090bd
call fcn.140041e50
mov rdx, rax
lea rcx, str.__Write_error:__s
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
mov edi, dword [rsp + 0x40]
jmp 0x1400090c8
mov r14, qword [rsp + 0x68]
mov ebx, dword [rsp + 0x44]
test ebx, ebx
je 0x140009123
cmp ebx, 1
jne 0x14000914e
lea rcx, [rsp + 0x74]
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ole32.dll_CoCreateGuid]
imul ecx, dword [0x14015b550], 0x22
mov rax, qword [0x14015b540]
movups xmm0, xmmword [rsp + 0x74]
mov dword [rbp - 0x7c], 0x10
mov dword [rbp - 0x70], ebx
mov qword [rbp - 0x58], rcx
imul ecx, dword [0x14015b550], 0x43
mov dword [rbp - 0x6c], edi
mov dword [rbp - 0x48], 0x10
movups xmmword [rbp - 0x68], xmm0
sub rax, rcx
mov qword [rbp - 0x50], rax
jmp 0x14000914e
cmp dword [rsp + 0x4c], 0
mov dword [rsp + 0x70], r15d
je 0x140009136
mov eax, 0x49464555
jmp 0x14000913c
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [rsp + 0x74], eax
mov dword [rbp - 0x70], r15d
mov dword [rbp - 0x6c], 4
mov dword [rbp - 0x68], eax
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov r9d, 0x18
mov edx, 0x7c058
mov qword [rsp + 0x20], r15
mov rcx, r14
mov dword [rsp + 0x48], 0x18
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400091a7
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_reset_disk:__s
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0x70140
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400091ec
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_refresh_drive_layout:__s
call fcn.140041aa0
cmp ebx, 1
jne 0x1400091fe
lea eax, [rdi + rdi*8]
shl eax, 4
add eax, 0x6f0
jmp 0x140009203
mov eax, 0x930
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea r8, [rbp - 0x70]
mov dword [rsp + 0x28], r15d
mov rcx, r14
mov r9d, eax
mov qword [rsp + 0x20], r15
mov edx, 0x7c054
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140009251
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_set_drive_layout:__s
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0x70140
mov qword [rsp + 0x20], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000929a
call fcn.140041e50
mov rdx, rax
lea rcx, str.Could_not_refresh_drive_layout:__s
call fcn.140041aa0
xor eax, eax
jmp 0x14000929f
mov eax, 1
mov rcx, qword [rbp + 0x8d8]
xor rcx, rsp
call fcn.140092060
lea r11, [rsp + 0xa40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret