Function at 0x140059e10
Capabilities:
Copy file
Extract resource via kernel32 functions
Read file on windows
Set current directory

Disassembly:
mov r11, rsp
push rbp
push r12
push r14
lea rbp, [r11 - 0x168]
sub rsp, 0x250
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov qword [r11 + 0x18], rbx
lea rax, [0x140162288]
xor r14d, r14d
mov qword [rbp - 0x50], rax
lea rax, [0x14016228c]
mov qword [r11 - 0x20], rsi
mov r12, 0xffffffffffffffff
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
mov qword [r11 - 0x38], r15
mov ebx, ecx
mov dword [rsp + 0x6c], r8d
mov ecx, dword [0x1401e89e0]
lea rax, [0x140162290]
mov qword [rbp - 0x40], rax
mov r15, r12
mov byte [rsp + 0x54], dl
mov qword [rbp - 0x78], 0
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x70], r14
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
cmp ecx, 5
je 0x140059ec2
cmp ecx, 3
jne 0x140059eb7
cmp byte [0x1401e8f77], 5
jae 0x140059ec2
lea rdx, [0x140196f48]
xor esi, esi
jmp 0x140059ece
lea rdx, [0x140196f54]
mov esi, 0x10
cmp ecx, 3
lea rax, [0x1401e8f78]
mov r9d, 0xca2
cmovne rax, rdx
mov edx, 1
mov ecx, edx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call fcn.140021510
mov r8d, dword [0x1401e9090]
xor edx, edx
mov eax, r8d
mov dword [0x140196f84], edx
shr eax, 1
je 0x140059f1c
nop dword [rax]
inc edx
shr eax, 1
jne 0x140059f10
mov dword [0x140196f84], edx
mov dword [0x140196f80], edx
lea eax, [r8 - 1]
mov edx, 0x10
mov dword [0x140196f7c], eax
mov rcx, r8
mov qword [rsp + 0x240], rdi
mov dword [0x140196f88], r8d
mov dword [0x140196f78], r8d
call fcn.1400c40ec
mov qword [0x1401e5170], rax
test rax, rax
je 0x140059fa1
xor r9d, r9d
mov qword [rsp + 0x238], r13
xor r8d, r8d
xor edx, edx
mov ecx, ebx
call fcn.140006090
mov rbx, rax
test rax, rax
jne 0x14005a073
lea rcx, str.No_logical_drive_found__unpartitioned__
call fcn.14004f2f0
xor r15d, r15d
lea rcx, str.Could_open_volume_for_Syslinux_installation
call fcn.14004f2f0
mov r13, qword [rsp + 0x238]
mov rcx, qword [0x1401e5170]
call fcn.1400c40d0
mov rcx, qword [0x1401d05b0]
xor ebx, ebx
mov qword [0x1401e5170], rbx
call fcn.1400e8c70
mov rcx, qword [0x1401d05b8]
mov qword [0x1401d05b0], rbx
call fcn.1400e8c70
mov rcx, qword [rsp + 0x70]
mov qword [0x1401d05b8], rbx
call fcn.1400e8c70
mov rdi, qword [rsp + 0x240]
lea rax, [r15 - 1]
mov rsi, qword [rsp + 0x248]
cmp rax, 0xfffffffffffffffd
ja 0x14005a030
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x9001c
mov rcx, r15
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x230]
lea rcx, [r12 - 1]
mov rbx, qword [rsp + 0x280]
cmp rcx, 0xfffffffffffffffd
ja 0x14005a054
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x250
pop r14
pop r12
pop rbp
ret
mov r9d, 1
xor edx, edx
mov r8d, r9d
mov rcx, rbx
call fcn.140005bf0
mov rcx, rbx
mov r15, rax
call fcn.1400e8c70
mov qword [rsp + 0x78], r15
mov rbx, r15
mov r13, r15
cmp r15, r12
je 0x140059f8d
test r15, r15
je 0x140059f8d
mov r8d, dword [0x140196f88]
lea r9, [rsp + 0x68]
mov rdx, qword [0x1401e5170]
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005a0df
lea rcx, str.Could_not_read_VBR
jmp 0x140059f94
mov r8d, dword [0x140196f88]
cmp dword [rsp + 0x68], r8d
je 0x14005a0f9
lea rcx, str.Could_not_read_the_whole_VBR
jmp 0x140059f94
mov rcx, qword [0x1401e5170]
movzx eax, byte [rcx + 0x15]
cmp al, 0xf0
je 0x14005a127
cmp al, 0xf8
jae 0x14005a127
lea rax, str.invalid_media_signature__not_an_FAT_NTFS_volume__
mov rdx, rax
lea rcx, str.Error:__s
call fcn.14004f2f0
jmp 0x140059f99
movzx edx, word [rcx + 0xb]
cmp edx, r8d
jne 0x14005b171
cmp word [rcx + 0xe], r14w
jne 0x14005a1a3
cmp byte [rcx + 0x10], r14b
jne 0x14005a1a3
cmp byte [rcx + 0x11], r14b
jne 0x14005a1a3
cmp byte [rcx + 0x12], r14b
jne 0x14005a1a3
cmp word [rcx + 0x13], r14w
jne 0x14005a1a3
cmp word [rcx + 0x16], r14w
jne 0x14005a1a3
cmp dword [rcx + 0x20], r14d
jne 0x14005a1a3
movabs rax, 0x202020205346544e
mov qword [rsp + 0x58], rbx
cmp qword [rcx + 3], rax
je 0x14005a19f
movabs rax, 0x302e344e4957534d
cmp qword [rcx + 3], rax
je 0x14005a19f
movabs rax, 0x312e344e4957534d
cmp qword [rcx + 3], rax
je 0x14005a19f
lea rax, str.unknown_OEM_name_but_claims_NTFS
jmp 0x14005a1b6
xor eax, eax
jmp 0x14005a1b6
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x58], rbx
call fcn.140083860
test rax, rax
jne 0x14005b193
xor edx, edx
lea rcx, [0x1401e6248]
mov r8d, 0x1f4
call fcn.140136540
call fcn.140083bd0
cmp dword [0x1401e6718], 0
lea rcx, [0x140000000]
lea r14, [0x140158ab4]
je 0x14005a3d5
cmp dword [0x1401e671c], 0
je 0x14005a3d5
lea rcx, [0x1401e86a0]
call fcn.140059b80
mov rcx, rax
mov rbx, rax
call fcn.14010348c
test rbx, rbx
je 0x14005a224
mov rcx, rbx
call fcn.1400e8c70
xor esi, esi
lea r15, [0x1401d05b0]
lea r12, [0x1401e6718]
lea rbx, str.ldlinux
lea rdi, [0x1401e8f84]
mov ecx, dword [r12]
call fcn.1400e8c84
mov qword [r15], rax
test rax, rax
je 0x14005a3c1
lea rcx, [0x140162288]
test esi, esi
lea rax, [0x14016228c]
mov edx, 0x104
cmove rax, rcx
lea r9, str._s_s__s_s_s._s
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x40], rbx
lea rax, [0x1401e8f78]
mov qword [rsp + 0x38], rdi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
lea rax, str.syslinux
mov qword [rsp + 0x28], rax
lea rax, [0x140156a6c]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
lea rdx, [0x140162434]
mov byte [rbp + 0xd3], 0
lea rcx, [rbp - 0x30]
call fcn.1400e9100
mov rdi, rax
test rax, rax
je 0x14005a3aa
mov r8d, dword [r12]
mov r9, rax
mov rcx, qword [r15]
mov edx, 1
call fcn.14010a6f0
mov rcx, rdi
mov rbx, rax
call fcn.1400e9320
mov r8d, dword [r12]
cmp rbx, r8
jne 0x14005a3a1
mov rdx, qword [r15]
lea r9, [rbp - 0x50]
mov ecx, 2
call fcn.140047d90
test eax, eax
je 0x14005a354
xor ebx, ebx
lea rax, [0x140197810]
movsxd rdx, ebx
add rdx, rax
lea rcx, [rbp - 0x50]
mov r8d, 0x20
call fcn.1401368e0
test eax, eax
je 0x14005a34f
add ebx, 0x20
cmp ebx, 0xbe0
jb 0x14005a320
xor eax, eax
jmp 0x14005a354
mov eax, 1
test eax, eax
lea r8, [rbp - 0x30]
lea rax, [0x140158ab0]
mov r9, r14
cmovne r9, rax
lea rdx, [0x1401e86a0]
lea rcx, str.Using_existing__s_s__s
call fcn.14004f2f0
inc esi
lea rbx, str.ldlinux
add r12, 4
lea rdi, [0x1401e8f84]
add r15, 8
cmp esi, 2
jl 0x14005a242
jmp 0x14005a4a0
lea rcx, str.Could_not_read__s_s
jmp 0x14005a3b1
lea rcx, str.Could_not_open__s_s
lea rdx, [0x1401e86a0]
lea r8, [rbp - 0x30]
call fcn.14004f2f0
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
lea r13, [rcx + 0x1530e8]
xor edi, edi
lea rax, [rbp - 0x50]
sub rsi, rax
lea r12, [0x1401e6718]
add r13, rsi
lea r15, [0x1401d05b0]
xor esi, esi
lea rcx, str.ldlinux
mov r14, r12
lea rbx, [rbp - 0x50]
mov edx, 0x40
add rbx, rsi
lea r9, str._s._s
mov r8, 0xffffffffffffffff
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xe0]
call fcn.140004fd0
mov rdx, qword [rbx + r13]
lea r9, [rbp + 0xe0]
movsxd rax, edi
mov r8d, 0xa
mov dword [rsp + 0x28], 1
mov byte [rbp + 0x11f], 0
mov dword [r14], 0
lea rcx, [r12 + rax*4]
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x1401e87b8]
call fcn.14004d350
mov qword [rsi + r15], rax
test rax, rax
je 0x14005a3c1
inc edi
lea rcx, str.ldlinux
add r14, 4
add rsi, 8
cmp edi, 2
jl 0x14005a402
mov r13, qword [rsp + 0x78]
movsx ebx, byte [rsp + 0x54]
mov ecx, ebx
call fcn.1400fc5e0
lea rcx, [0x140162288]
mov edx, 0x104
mov qword [rsp + 0x30], rcx
lea rsi, str.ldlinux
mov qword [rsp + 0x28], rsi
lea rcx, [rbp - 0x30]
lea r9, str._c:_s._s
mov dword [rsp + 0x20], eax
mov r8, 0xffffffffffffffff
call fcn.140004fd0
xor r15d, r15d
mov byte [rbp + 0xd3], 0
mov qword [rsp + 0x30], r15
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], 7
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14005a550
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp - 0x2d]
lea rcx, str.Unable_to_create__s:__s
call fcn.14004f2f0
mov r15, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
mov r8d, dword [0x1401e6718]
xor r9d, r9d
mov rdx, qword [0x1401d05b0]
mov rcx, r12
call fcn.140050980
test eax, eax
jne 0x14005a594
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp - 0x2d]
lea rcx, str.Could_not_write__s:__s
call fcn.14004f2f0
mov r15, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
xor r9d, r9d
lea rdx, [0x1401e6240]
mov r8d, 0x400
mov rcx, r12
call fcn.140050980
test eax, eax
jne 0x14005a5d7
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp - 0x2d]
lea rcx, str.Could_not_write_ADV_to__s:__s
call fcn.14004f2f0
mov r15, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
lea rdx, [rbp - 0x2d]
lea rcx, str.Successfully_wrote__s
call fcn.14004f2f0
cmp dword [0x1401e89e0], 3
je 0x14005a602
movss xmm1, dword [0x140177040]
mov ecx, 7
call fcn.140066320
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x14005a62a
lea rcx, str.FlushFileBuffers_failed
call fcn.14004f2f0
mov r15, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
mov ecx, dword [0x1401e6718]
mov edx, 8
mov r14d, dword [0x140196f88]
add ecx, 0x3ff
add r14d, ecx
mov ecx, dword [0x140196f84]
shr r14d, cl
movsxd rcx, r14d
call fcn.1400c4f6c
mov qword [rsp + 0x70], rax
mov rdi, rax
test rax, rax
je 0x14005a3c1
mov eax, dword [rsp + 0x6c]
mov edx, eax
test eax, eax
je 0x14005a7f5
sub edx, 1
je 0x14005a7f5
sub edx, 1
je 0x14005a6a7
cmp edx, 2
je 0x14005a7f5
lea rcx, str.Unsupported_Syslinux_filesystem
call fcn.14004f2f0
mov r15, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
mov ecx, ebx
call fcn.1400fc5e0
lea r9, [0x140170228]
mov dword [rsp + 0x20], eax
mov edx, 0x40
lea rcx, [rbp + 0xe0]
mov r8, 0xffffffffffffffff
call fcn.140004fd0
lea rdx, [rbp - 0x70]
mov byte [rbp + 0x11f], r15b
lea rcx, [rbp + 0xe0]
mov qword [rbp - 0x68], r13
call fcn.140084360
test eax, eax
je 0x14005a70b
lea rcx, str.Could_not_fetch_NTFS_volume_info
call fcn.14004f2f0
mov r15, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
mov ebx, r15d
mov rdx, r15
mov rax, r15
mov r15, qword [rsp + 0x58]
nop dword [rax]
test rax, rax
js 0x14005a7d5
mov qword [rsp + 0x38], 0
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x28], 0x20
mov r9d, 8
mov edx, 0x90073
mov qword [rsp + 0x20], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005a77b
cmp eax, 0xea
jne 0x14005a7d5
cmp dword [rbp - 0x60], 0
je 0x14005a7df
mov ecx, dword [rbp - 0x5c]
test ecx, ecx
je 0x14005a7df
mov rax, qword [rbp - 0x38]
test rax, rax
js 0x14005a7df
mov rdx, qword [rbp - 0x40]
mov r8d, ecx
imul rcx, rax
mov rax, rdx
sub rax, qword [rbp - 0x48]
imul rax, r8
test rax, rax
je 0x14005a7cd
mov r8, rcx
nop
dec rax
cmp ebx, r14d
jge 0x14005a7cd
mov qword [rdi], rcx
inc ebx
add rdi, 8
lea rcx, [r8 + 1]
mov r8, rcx
test rax, rax
jne 0x14005a7b0
mov rax, rdx
jmp 0x14005a720
mov qword [rsp + 0x58], r15
jmp 0x14005a8bb
lea rcx, str.Could_not_translate_ldlinux.sys_LCN_to_disk_LBA
call fcn.14004f2f0
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
mov rdx, r13
lea rcx, [0x140059d40]
call fcn.140082a20
mov rsi, rax
test rax, rax
jne 0x14005a827
lea rcx, str.Syslinux_FAT_access_error
call fcn.14004f2f0
mov r15, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
movsxd rax, dword [rax + 0x20]
test eax, eax
jne 0x14005a835
mov rbx, qword [rsi + 0x30]
jmp 0x14005a855
cmp eax, 2
jl 0x14005a93d
cmp eax, dword [rsi + 0x1c]
jge 0x14005a93d
mov ecx, dword [rsi + 0x18]
lea rbx, [rax - 2]
shl rbx, cl
add rbx, qword [rsi + 0x38]
test rbx, rbx
jne 0x14005a944
mov ebx, r15d
mov rax, 0xffffffffffffffff
cmp ebx, r14d
jge 0x14005a886
mov qword [rdi], rax
mov rdx, rax
mov rcx, rsi
add rdi, 8
inc ebx
call fcn.140082d10
test rax, rax
jne 0x14005a868
mov rdi, qword [rsi + 0x48]
mov qword [rsi + 0x48], r15
mov rcx, rdi
test rdi, rdi
je 0x14005a8a7
mov rdi, qword [rdi + 8]
call fcn.1400c40d0
mov rcx, rdi
test rdi, rdi
jne 0x14005a896
mov rcx, rsi
call fcn.1400e8c70
mov r15, qword [rsp + 0x58]
lea rsi, str.ldlinux
lea rdx, [0x1401e8b80]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x14005a8d0
movsxd rcx, eax
lea r14, [0x140000000]
test eax, eax
jle 0x14005a905
nop word [rax + rax]
cmp byte [rcx + r14 + 0x1e8b80], 0x2f
je 0x14005a905
dec eax
dec rcx
test rcx, rcx
jg 0x14005a8f0
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rdx
mov edx, ebx
movsxd rdi, eax
test eax, eax
jle 0x14005aa4f
mov byte [rdi + r14 + 0x1e8b80], 0
call fcn.140083e70
mov byte [rdi + r14 + 0x1e8b80], 0x2f
mov qword [rsp + 0x58], r15
jmp 0x14005aa54
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x14005a85e
mov rdx, rbx
mov rcx, rsi
call fcn.140082890
mov r8, rax
test rax, rax
je 0x14005a85e
mov ecx, dword [0x140196f78]
mov eax, r15d
test ecx, ecx
je 0x14005a9ac
test byte [r8 + 0xb], 0x48
jne 0x14005a998
movabs rdx, 0x2058554e494c444c
cmp qword [r8], rdx
jne 0x14005a998
cmp word [r8 + 8], 0x5953
jne 0x14005a998
cmp byte [r8 + 0xa], 0x53
je 0x14005a9c4
cmp byte [r8], r15b
je 0x14005a85e
add r8, 0x20
add eax, 0x20
cmp eax, ecx
jb 0x14005a972
mov rdx, rbx
mov rcx, rsi
call fcn.140082d10
mov rbx, rax
test rax, rax
jne 0x14005a944
jmp 0x14005a85e
movzx eax, byte [r8 + 0x1e]
mov ebx, r15d
movzx ecx, byte [r8 + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 0x1c]
shl ecx, 8
or ecx, eax
je 0x14005aa11
movzx eax, byte [r8 + 0x14]
movzx edx, byte [r8 + 0x15]
movzx ecx, byte [r8 + 0x1b]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [r8 + 0x1a]
or ecx, eax
shl edx, 0x10
add edx, ecx
jne 0x14005aa1e
mov edx, dword [rsi + 0x20]
test edx, edx
jne 0x14005aa1e
mov rax, qword [rsi + 0x30]
jmp 0x14005aa41
cmp edx, 2
jl 0x14005a861
cmp edx, dword [rsi + 0x1c]
jge 0x14005a861
mov ecx, dword [rsi + 0x18]
movsxd rax, edx
sub rax, 2
shl rax, cl
add rax, qword [rsi + 0x38]
test rax, rax
je 0x14005a886
jmp 0x14005a868
call fcn.140083e70
test eax, eax
jns 0x14005aa7a
lea rcx, str.Could_not_patch_Syslinux_files.
call fcn.14004f2f0
lea rcx, str.WARNING:_This_could_be_caused_by_your_firewall_having_modified_downloaded_content__such_as_ldlinux.sys...
call fcn.14004f2f0
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
mov rbx, qword [rbp - 0x78]
xor r9d, r9d
mov rdx, rbx
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005b14f
mov r8d, dword [0x1401e6718]
xor r9d, r9d
mov rdx, qword [0x1401d05b0]
mov rcx, r12
call fcn.140050980
test eax, eax
je 0x14005b14f
test r12, r12
je 0x14005aad3
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, 0xffffffffffffffff
mov qword [rsp + 0x60], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005b131
mov r8d, dword [0x140196f88]
lea r9, [rsp + 0x68]
mov rdx, qword [0x1401e5170]
xor r14d, r14d
mov rcx, r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005b131
mov edx, dword [rsp + 0x68]
mov r8d, dword [0x140196f88]
cmp edx, r8d
jae 0x14005ab3a
lea rcx, str.Partial_read_of_Syslinux_boot_record:_read__d_bytes_but_requested__d
call fcn.14004f2f0
jmp 0x140059f99
cmp dword [rsp + 0x6c], 2
mov rdx, qword [0x1401d05b8]
mov rcx, qword [0x1401e5170]
je 0x14005abec
movsd xmm0, qword [rdx]
movsd qword [rcx], xmm0
movzx eax, word [rdx + 8]
mov word [rcx + 8], ax
movzx eax, byte [rdx + 0xa]
mov byte [rcx + 0xa], al
lea rax, [rdx + 0x5a]
mov edx, 3
add rcx, 0x5a
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14005ab80
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
mov eax, dword [rax + 0x20]
mov dword [rcx + 0x20], eax
jmp 0x14005ac77
movzx eax, word [rdx]
mov word [rcx], ax
movzx eax, byte [rdx + 2]
mov byte [rcx + 2], al
add rcx, 0x54
add rdx, 0x54
mov eax, 3
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x14005ac06
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
mov rax, qword [rdx + 0x20]
mov qword [rcx + 0x20], rax
movzx eax, word [rdx + 0x28]
mov word [rcx + 0x28], ax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005b118
mov r8d, dword [0x140196f88]
xor r9d, r9d
mov rdx, qword [0x1401e5170]
mov rcx, r13
call fcn.140050980
test eax, eax
je 0x14005b118
lea rcx, str.Successfully_wrote_Syslinux_boot_record
call fcn.14004f2f0
cmp dword [0x1401e89e0], 5
jne 0x14005aed4
lea rcx, [0x1401e86a0]
call fcn.140059b80
mov rcx, rax
mov rbx, rax
call fcn.14010348c
test rbx, rbx
je 0x14005acef
mov rcx, rbx
call fcn.1400e8c70
lea rax, str.syslinux
mov edx, 0x104
lea r12, [0x140196f54]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], r12
lea r13, [0x140156a6c]
mov qword [rsp + 0x28], rax
lea r9, str._s_s__s
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], r13
call fcn.140004fd0
lea rcx, [rbp - 0x30]
mov byte [rbp + 0xd3], r14b
call fcn.140103358
movsx ecx, byte [rsp + 0x54]
call fcn.1400fc5e0
lea rcx, [0x140162290]
mov edx, 0x104
mov qword [rsp + 0x30], rcx
lea r9, str._c:_s._s
mov qword [rsp + 0x28], rsi
lea rcx, [rbp - 0x30]
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call fcn.140004fd0
lea rdx, [0x140162434]
mov byte [rbp + 0xd3], r14b
lea rcx, [rbp - 0x2d]
call fcn.1400e9100
test rax, rax
jne 0x14005adab
lea rdx, [rbp - 0x2d]
lea rcx, str.Caution:_No__s_was_provided._The_target_will_be_missing_a_required_Syslinux_file_
call fcn.14004f2f0
jmp 0x14005b0ed
mov rcx, rax
call fcn.1400e9320
lea rcx, [rbp - 0x2d]
call fcn.140059b80
lea rcx, [rbp - 0x30]
mov rdi, rax
call fcn.140059b80
mov r8d, 1
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rdi, rdi
je 0x14005adf5
mov rcx, rdi
call fcn.1400e8c70
test rbx, rbx
je 0x14005ae02
mov rcx, rbx
call fcn.1400e8c70
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x14005aeb7
lea r8, [rbp - 0x50]
mov ecx, 2
lea rdx, [rbp - 0x2d]
call fcn.140047330
test eax, eax
je 0x14005ae65
xor r14d, r14d
mov ebx, r14d
nop
lea rax, [0x140197810]
movsxd rdx, ebx
add rdx, rax
lea rcx, [rbp - 0x50]
mov r8d, 0x20
call fcn.1401368e0
test eax, eax
je 0x14005ae60
add ebx, 0x20
cmp ebx, 0xbe0
jb 0x14005ae30
mov eax, r14d
jmp 0x14005ae65
mov eax, 1
test eax, eax
lea rcx, [0x140158ab0]
lea rax, [0x140158ab4]
mov r9, r13
cmovne rax, rcx
lea r8, [0x1401e86a0]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x2d]
mov qword [rsp + 0x30], rax
lea rcx, str.Created__s__from__s_s_s__s_s___s
lea rax, str.syslinux
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.14004f2f0
jmp 0x14005b0ed
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, str.Failed_to_create__s:__s
call fcn.14004f2f0
jmp 0x14005b0ed
cmp byte [0x1401e8c00], r14b
je 0x14005b0ed
lea rcx, str.Setting_up_ReactOS...
call fcn.14004f2f0
mov rbx, qword [0x1401e87b8]
mov edx, 0x194
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14005af37
call fcn.14004fba0
mov r8, rax
lea rdx, str.mboot.c32
lea rcx, str.Could_not_locate_resource__s:__s
call fcn.14004f2f0
mov qword [0x1401d05c0], r14
jmp 0x140059f99
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x14005af72
call fcn.14004fba0
mov r8, rax
lea rdx, str.mboot.c32
lea rcx, str.Could_not_load_resource__s:__s
call fcn.14004f2f0
mov qword [0x1401d05c0], r14
jmp 0x140059f99
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]
mov dword [0x1401e6710], ebx
mov qword [0x1401d05c0], rax
test rax, rax
je 0x14005a3c1
movsx edi, byte [rsp + 0x54]
mov ecx, edi
call fcn.1400fc5e0
lea rbx, str.mboot.c32
mov edx, 0x104
mov qword [rsp + 0x28], rbx
lea r9, str._c:_s
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
lea rcx, [rbp - 0x30]
call fcn.140004fd0
mov qword [rsp + 0x30], r14
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov r8d, 3
mov byte [rbp + 0xd3], r14b
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14005b02e
lea rdx, [rbp - 0x30]
lea rcx, str.Unable_to_create__s_n
call fcn.14004f2f0
jmp 0x140059f99
mov r8d, dword [0x1401e6710]
xor r9d, r9d
mov rdx, qword [0x1401d05c0]
mov rcx, r12
call fcn.140050980
test eax, eax
jne 0x14005b060
lea rdx, [rbp - 0x30]
lea rcx, str.Could_not_write__s
call fcn.14004f2f0
jmp 0x140059f99
test r12, r12
je 0x14005b07a
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, 0xffffffffffffffff
mov qword [rsp + 0x60], r12
mov ecx, edi
call fcn.1400fc5e0
lea r9, str._c:_syslinux.cfg
mov dword [rsp + 0x20], eax
mov edx, 0x104
lea rcx, [rbp - 0x30]
mov r8, 0xffffffffffffffff
call fcn.140004fd0
lea rdx, [0x14014fa44]
mov byte [rbp + 0xd3], r14b
lea rcx, [rbp - 0x30]
call fcn.1400e9100
mov rdi, rax
test rax, rax
jne 0x14005b0cc
lea rcx, str.Could_not_create_ReactOS_syslinux.cfg
jmp 0x140059f94
lea r9, [0x1401e8c00]
mov r8, rbx
lea rdx, str.DEFAULT_ReactOS_nLABEL_ReactOS_n__KERNEL__s_n__APPEND__s
mov rcx, rdi
call fcn.140001060
mov rcx, rdi
call fcn.1400e9320
cmp dword [0x1401e89e0], 3
je 0x14005b108
movss xmm1, dword [0x140177040]
mov ecx, 7
call fcn.140066320
mov r12, qword [rsp + 0x60]
mov r14d, 1
jmp 0x140059f99
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Could_not_write_Syslinux_boot_record:__s
call fcn.14004f2f0
jmp 0x140059f99
call fcn.14004fba0
mov rdx, rax
lea rcx, str.Could_not_read_Syslinux_boot_record:__s
call fcn.14004f2f0
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
call fcn.14004fba0
mov r8, rax
lea rdx, [rbp - 0x2d]
lea rcx, str.Could_not_rewrite__s:__s_n
call fcn.14004f2f0
mov r14d, dword [rsp + 0x50]
jmp 0x140059f99
lea eax, [rdx - 0x200]
cmp eax, 0xe00
ja 0x14005b18c
lea eax, [rdx - 1]
test edx, eax
lea rax, str.unsupported_sectors_size
je 0x14005b193
lea rax, str.impossible_sector_size
mov rdx, rax
lea rcx, str.Error:__s
call fcn.14004f2f0
jmp 0x140059f99