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

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0x168]
sub rsp, 0x250
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor eax, eax
mov qword [r11 + 0x18], rbx
mov ebx, ecx
mov qword [r11 - 0x20], rsi
lea rcx, [0x1401621d8]
mov qword [r11 - 0x28], rdi
mov qword [rbp - 0x50], rcx
mov r15, 0xffffffffffffffff
lea rcx, [0x1401621dc]
mov dword [rsp + 0x78], r8d
mov qword [rbp - 0x48], rcx
xorps xmm0, xmm0
lea rcx, [0x1401621e0]
mov byte [rsp + 0x54], dl
mov qword [rbp - 0x40], rcx
mov rdi, r15
mov ecx, dword [0x1401e8a60]
mov r14d, eax
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x60], rax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
cmp ecx, 5
je 0x14005a670
cmp ecx, 3
jne 0x14005a664
cmp byte [0x1401e8ff7], 5
jae 0x14005a670
lea rdx, [0x140196f48]
mov rsi, rax
jmp 0x14005a67c
lea rdx, [0x140196f54]
mov esi, 0x10
cmp ecx, 3
lea rax, [0x1401e8ff8]
mov r9d, 0xca2
cmovne rax, rdx
mov edx, 1
mov ecx, edx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call fcn.140020c90
mov r8d, dword [0x1401e9110]
xor edx, edx
mov eax, r8d
mov dword [0x140196f84], edx
shr eax, 1
je 0x14005a6cc
nop word [rax + rax]
inc edx
shr eax, 1
jne 0x14005a6c0
mov dword [0x140196f84], edx
mov dword [0x140196f80], edx
lea eax, [r8 - 1]
mov edx, 0x10
mov qword [rsp + 0x238], r12
mov rcx, r8
mov dword [0x140196f7c], eax
mov qword [rsp + 0x230], r13
mov dword [0x140196f88], r8d
mov dword [0x140196f78], r8d
call fcn.1400c44fc
mov qword [0x1401e51c0], rax
test rax, rax
je 0x14005a750
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, ebx
call fcn.140005a00
mov rbx, rax
test rax, rax
jne 0x14005a829
lea rcx, str.No_logical_drive_found__unpartitioned__
call fcn.14004f910
mov qword [rsp + 0x58], rbx
lea rcx, str.Could_open_volume_for_Syslinux_installation
call fcn.14004f910
mov rdi, qword [rsp + 0x58]
mov rcx, qword [0x1401e51c0]
call fcn.1400c44e0
mov rcx, qword [0x1401d0530]
xor ebx, ebx
mov qword [0x1401e51c0], rbx
call fcn.1400e9080
mov rcx, qword [0x1401d0538]
mov qword [0x1401d0530], rbx
call fcn.1400e9080
mov rcx, qword [rsp + 0x60]
mov qword [0x1401d0538], rbx
call fcn.1400e9080
mov r13, qword [rsp + 0x230]
lea rax, [rdi - 1]
mov r12, qword [rsp + 0x238]
mov rsi, qword [rsp + 0x248]
cmp rax, 0xfffffffffffffffd
ja 0x14005a7e7
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, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x240]
lea rcx, [r15 - 1]
mov rbx, qword [rsp + 0x280]
cmp rcx, 0xfffffffffffffffd
ja 0x14005a80a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x250
pop r15
pop r14
pop rbp
ret
mov r9d, 1
xor edx, edx
mov r8d, r9d
mov rcx, rbx
call fcn.140005570
mov rcx, rbx
mov qword [rsp + 0x58], rax
call fcn.1400e9080
mov rbx, qword [rsp + 0x58]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005a73f
mov r8d, dword [0x140196f88]
lea r9, [rsp + 0x70]
mov rdx, qword [0x1401e51c0]
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005a895
lea rcx, str.Could_not_read_VBR
call fcn.14004f910
mov rdi, rbx
jmp 0x14005a750
mov r8d, dword [0x140196f88]
cmp dword [rsp + 0x70], r8d
je 0x14005a8b7
lea rcx, str.Could_not_read_the_whole_VBR
call fcn.14004f910
mov rdi, rbx
jmp 0x14005a750
mov rcx, qword [0x1401e51c0]
movzx eax, byte [rcx + 0x15]
cmp al, 0xf0
je 0x14005a8d6
cmp al, 0xf8
jae 0x14005a8d6
lea rax, str.invalid_media_signature__not_an_FAT_NTFS_volume__
jmp 0x14005b967
movzx edx, word [rcx + 0xb]
cmp edx, r8d
jne 0x14005b945
cmp word [rcx + 0xe], r14w
jne 0x14005a94d
cmp byte [rcx + 0x10], r14b
jne 0x14005a94d
cmp byte [rcx + 0x11], r14b
jne 0x14005a94d
cmp byte [rcx + 0x12], r14b
jne 0x14005a94d
cmp word [rcx + 0x13], r14w
jne 0x14005a94d
cmp word [rcx + 0x16], r14w
jne 0x14005a94d
cmp dword [rcx + 0x20], r14d
jne 0x14005a94d
movabs rax, 0x202020205346544e
cmp qword [rcx + 3], rax
je 0x14005a949
movabs rax, 0x302e344e4957534d
cmp qword [rcx + 3], rax
je 0x14005a949
movabs rax, 0x312e344e4957534d
cmp qword [rcx + 3], rax
je 0x14005a949
lea rax, str.unknown_OEM_name_but_claims_NTFS
jmp 0x14005a956
xor eax, eax
jmp 0x14005a956
lea rdx, [rbp - 0x80]
call fcn.1400832a0
test rax, rax
jne 0x14005b967
xor edx, edx
lea rcx, [0x1401e62c8]
mov r8d, 0x1f4
call fcn.140136960
call fcn.140083610
cmp dword [0x1401e6798], 0
lea rcx, [0x140000000]
lea rdi, [0x1401569ec]
lea r14, [0x1401589b4]
je 0x14005ab9d
cmp dword [0x1401e679c], 0
je 0x14005ab9d
lea rcx, [0x1401e8720]
call fcn.14005a330
mov rcx, rax
mov rbx, rax
call fcn.14010389c
test rbx, rbx
je 0x14005a9cb
mov rcx, rbx
call fcn.1400e9080
xor esi, esi
lea r15, [0x1401d0530]
lea r12, [0x1401e6798]
lea r13, str.ldlinux
lea rbx, [0x1401e9004]
nop dword [rax]
mov ecx, dword [r12]
call fcn.1400e9094
mov qword [r15], rax
test rax, rax
je 0x14005ab68
lea rcx, [0x1401621d8]
test esi, esi
lea rax, [0x1401621dc]
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], r13
lea rax, [0x1401e8ff8]
mov qword [rsp + 0x38], rbx
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
lea rax, str.syslinux
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.140004960
lea rdx, [0x140162384]
mov byte [rbp + 0xd3], 0
lea rcx, [rbp - 0x30]
call fcn.1400e9510
mov rdi, rax
test rax, rax
je 0x14005ab77
mov r8d, dword [r12]
mov r9, rax
mov rcx, qword [r15]
mov edx, 1
call fcn.14010ab00
mov rcx, rdi
mov rbx, rax
call fcn.1400e9730
mov r8d, dword [r12]
cmp rbx, r8
jne 0x14005ab51
mov rdx, qword [r15]
lea r9, [rbp - 0x50]
mov ecx, 2
call fcn.1400483c0
test eax, eax
je 0x14005ab04
xor ebx, ebx
nop word [rax + rax]
lea rax, [0x140197810]
movsxd rdx, ebx
add rdx, rax
lea rcx, [rbp - 0x50]
mov r8d, 0x20
call fcn.140136d00
test eax, eax
je 0x14005aaff
add ebx, 0x20
cmp ebx, 0xbe0
jb 0x14005aad0
xor eax, eax
jmp 0x14005ab04
mov eax, 1
test eax, eax
lea r8, [rbp - 0x30]
lea rax, [0x1401589b0]
mov r9, r14
cmovne r9, rax
lea rdx, [0x1401e8720]
lea rcx, str.Using_existing__s_s__s
call fcn.14004f910
inc esi
lea rbx, [0x1401e9004]
add r12, 4
lea rdi, [0x1401569ec]
add r15, 8
cmp esi, 2
jl 0x14005a9f0
jmp 0x14005ac6d
lea r8, [rbp - 0x30]
lea rdx, [0x1401e8720]
lea rcx, str.Could_not_read__s_s
call fcn.14004f910
mov r15, qword [rsp + 0x68]
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
lea r8, [rbp - 0x30]
lea rdx, [0x1401e8720]
lea rcx, str.Could_not_open__s_s
call fcn.14004f910
mov r15, qword [rsp + 0x68]
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
lea r13, [rcx + 0x1530b8]
xor edi, edi
lea rax, [rbp - 0x50]
sub rsi, rax
lea r12, [0x1401e6798]
add r13, rsi
lea r15, [0x1401d0530]
xor esi, esi
lea rcx, str.ldlinux
mov r14, r12
nop word [rax + rax]
mov edx, 0x40
lea rbx, [rbp - 0x50]
add rbx, rsi
lea r9, str._s._s
lea r8, [rdx - 0x41]
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xe0]
call fcn.140004960
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 [0x1401e8838]
call fcn.14004d900
mov qword [rsi + r15], rax
test rax, rax
je 0x14005ab68
inc edi
lea rcx, str.ldlinux
add r14, 4
add rsi, 8
cmp edi, 2
jl 0x14005abd0
lea r13, str.ldlinux
movsx ebx, byte [rsp + 0x54]
mov ecx, ebx
call fcn.1400fc9f0
lea rcx, [0x1401621d8]
mov edx, 0x104
mov qword [rsp + 0x30], rcx
lea r9, str._c:_s._s
mov qword [rsp + 0x28], r13
lea rcx, [rbp - 0x30]
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call fcn.140004960
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 7
lea rcx, [rbp - 0x30]
mov edx, 0xc0000000
mov byte [rbp + 0xd3], 0
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14005ad10
call fcn.140050120
mov r8, rax
lea rdx, [rbp - 0x2d]
lea rcx, str.Unable_to_create__s:__s
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
mov r8d, dword [0x1401e6798]
xor r9d, r9d
mov rdx, qword [0x1401d0530]
mov rcx, r15
call fcn.140050f30
test eax, eax
jne 0x14005ad4f
call fcn.140050120
mov r8, rax
lea rdx, [rbp - 0x2d]
lea rcx, str.Could_not_write__s:__s
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
xor r9d, r9d
lea rdx, [0x1401e62c0]
mov r8d, 0x400
mov rcx, r15
call fcn.140050f30
test eax, eax
jne 0x14005ad8d
call fcn.140050120
mov r8, rax
lea rdx, [rbp - 0x2d]
lea rcx, str.Could_not_write_ADV_to__s:__s
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
lea rdx, [rbp - 0x2d]
lea rcx, str.Successfully_wrote__s
call fcn.14004f910
cmp dword [0x1401e8a60], 3
je 0x14005adb8
movss xmm1, dword [0x140176fd0]
mov ecx, 7
call fcn.140066be0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x14005addb
lea rcx, str.FlushFileBuffers_failed
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
mov ecx, dword [0x140196f84]
mov edx, 8
mov eax, dword [0x1401e6798]
mov r14d, dword [0x140196f88]
add eax, 0x3ff
add r14d, eax
shr r14d, cl
movsxd rcx, r14d
call fcn.1400c537c
mov qword [rsp + 0x60], rax
mov rdi, rax
test rax, rax
je 0x14005ab68
mov r12d, dword [rsp + 0x78]
mov edx, r12d
test r12d, r12d
je 0x14005af91
sub edx, 1
je 0x14005af91
sub edx, 1
je 0x14005ae55
cmp edx, 2
je 0x14005af91
lea rcx, str.Unsupported_Syslinux_filesystem
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
mov ecx, ebx
call fcn.1400fc9f0
mov edx, 0x40
mov dword [rsp + 0x20], eax
lea r9, [0x140170168]
lea rcx, [rbp + 0xe0]
lea r8, [rdx - 0x41]
call fcn.140004960
mov rsi, qword [rsp + 0x58]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xe0]
mov qword [rbp - 0x68], rsi
mov byte [rbp + 0x11f], 0
call fcn.140083df0
test eax, eax
je 0x14005aeb9
lea rcx, str.Could_not_fetch_NTFS_volume_info
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
mov rdi, rsi
jmp 0x14005a750
xor ebx, ebx
xor edx, edx
xor eax, eax
nop
test rax, rax
js 0x14005b05e
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, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005af1f
cmp eax, 0xea
jne 0x14005b05e
cmp dword [rbp - 0x60], 0
je 0x14005af78
mov ecx, dword [rbp - 0x5c]
test ecx, ecx
je 0x14005af78
mov rax, qword [rbp - 0x38]
test rax, rax
js 0x14005af78
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 0x14005af70
mov r8, rcx
dec rax
cmp ebx, r14d
jge 0x14005af70
mov qword [rdi], rcx
inc ebx
add rdi, 8
lea rcx, [r8 + 1]
mov r8, rcx
test rax, rax
jne 0x14005af53
mov rax, rdx
jmp 0x14005aec0
lea rcx, str.Could_not_translate_ldlinux.sys_LCN_to_disk_LBA
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
mov rdi, rsi
jmp 0x14005a750
mov rdi, qword [rsp + 0x58]
lea rcx, [0x14005a4f0]
mov rdx, rdi
call fcn.140082470
mov rsi, rax
test rax, rax
jne 0x14005afc3
lea rcx, str.Syslinux_FAT_access_error
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a750
movsxd rax, dword [rax + 0x20]
test eax, eax
jne 0x14005afd1
mov rbx, qword [rsi + 0x30]
jmp 0x14005aff1
cmp eax, 2
jl 0x14005b0d8
cmp eax, dword [rsi + 0x1c]
jge 0x14005b0d8
mov ecx, dword [rsi + 0x18]
lea rbx, [rax - 2]
shl rbx, cl
add rbx, qword [rsi + 0x38]
test rbx, rbx
jne 0x14005b0df
mov rdi, qword [rsp + 0x60]
xor ebx, ebx
mov rax, 0xffffffffffffffff
cmp ebx, r14d
jge 0x14005b026
mov qword [rdi], rax
mov rdx, rax
mov rcx, rsi
add rdi, 8
inc ebx
call fcn.140082760
test rax, rax
jne 0x14005b008
mov rdi, qword [rsi + 0x48]
mov qword [rsi + 0x48], 0
mov rcx, rdi
test rdi, rdi
je 0x14005b051
nop word [rax + rax]
mov rdi, qword [rdi + 8]
call fcn.1400c44e0
mov rcx, rdi
test rdi, rdi
jne 0x14005b040
mov rcx, rsi
call fcn.1400e9080
mov rsi, qword [rsp + 0x58]
lea rdx, [0x1401e8c00]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x14005b070
movsxd rcx, eax
lea r14, [0x140000000]
test eax, eax
jle 0x14005b0a5
nop word [rax + rax]
cmp byte [rcx + r14 + 0x1e8c00], 0x2f
je 0x14005b0a5
dec eax
dec rcx
test rcx, rcx
jg 0x14005b090
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov edx, ebx
movsxd rdi, eax
test eax, eax
jle 0x14005b1fc
mov byte [rdi + r14 + 0x1e8c00], 0
call fcn.140083900
mov byte [rdi + r14 + 0x1e8c00], 0x2f
jmp 0x14005b201
mov rbx, 0xffffffffffffffff
movabs rdi, 0x2058554e494c444c
nop dword [rax]
cmp rbx, 0xffffffffffffffff
je 0x14005affa
mov rdx, rbx
mov rcx, rsi
call fcn.1400822e0
mov r8, rax
test rax, rax
je 0x14005affa
mov ecx, dword [0x140196f78]
xor eax, eax
test ecx, ecx
je 0x14005b151
nop dword [rax]
test byte [r8 + 0xb], 0x48
jne 0x14005b13c
cmp qword [r8], rdi
jne 0x14005b13c
cmp word [r8 + 8], 0x5953
jne 0x14005b13c
cmp byte [r8 + 0xa], 0x53
je 0x14005b169
cmp byte [r8], 0
je 0x14005affa
add r8, 0x20
add eax, 0x20
cmp eax, ecx
jb 0x14005b120
mov rdx, rbx
mov rcx, rsi
call fcn.140082760
mov rbx, rax
test rax, rax
jne 0x14005b0f0
jmp 0x14005affa
movzx eax, byte [r8 + 0x1e]
movzx ecx, byte [r8 + 0x1f]
mov rdi, qword [rsp + 0x60]
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
jne 0x14005b197
xor ebx, ebx
jmp 0x14005b1be
movzx eax, byte [r8 + 0x14]
xor ebx, ebx
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 0x14005b1cb
mov edx, dword [rsi + 0x20]
test edx, edx
jne 0x14005b1cb
mov rax, qword [rsi + 0x30]
jmp 0x14005b1ee
cmp edx, 2
jl 0x14005b001
cmp edx, dword [rsi + 0x1c]
jge 0x14005b001
mov ecx, dword [rsi + 0x18]
movsxd rax, edx
sub rax, 2
shl rax, cl
add rax, qword [rsi + 0x38]
test rax, rax
je 0x14005b026
jmp 0x14005b008
call fcn.140083900
test eax, eax
jns 0x14005b227
lea rcx, str.Could_not_patch_Syslinux_files.
call fcn.14004f910
lea rcx, str.WARNING:_This_could_be_caused_by_your_firewall_having_modified_downloaded_content__such_as_ldlinux.sys...
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
mov rbx, qword [rbp - 0x78]
xor r9d, r9d
mov rdx, rbx
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005b923
mov r8d, dword [0x1401e6798]
xor r9d, r9d
mov rdx, qword [0x1401d0530]
mov rcx, r15
call fcn.140050f30
test eax, eax
je 0x14005b923
test r15, r15
je 0x14005b280
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x68], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005b905
mov r8d, dword [0x140196f88]
lea r9, [rsp + 0x70]
mov rdx, qword [0x1401e51c0]
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005b905
mov edx, dword [rsp + 0x70]
mov r8d, dword [0x140196f88]
cmp edx, r8d
jae 0x14005b2ed
lea rcx, str.Partial_read_of_Syslinux_boot_record:_read__d_bytes_but_requested__d
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
mov rdx, qword [0x1401d0538]
mov rcx, qword [0x1401e51c0]
cmp r12d, 2
je 0x14005b39c
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 dword [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 0x14005b330
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 0x14005b427
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 0x14005b3b6
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, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005b8e7
mov r8d, dword [0x140196f88]
xor r9d, r9d
mov rdx, qword [0x1401e51c0]
mov rcx, rsi
call fcn.140050f30
test eax, eax
je 0x14005b8e7
lea rcx, str.Successfully_wrote_Syslinux_boot_record
call fcn.14004f910
cmp dword [0x1401e8a60], 5
jne 0x14005b683
lea rcx, [0x1401e8720]
call fcn.14005a330
mov rcx, rax
mov rbx, rax
call fcn.14010389c
test rbx, rbx
je 0x14005b49f
mov rcx, rbx
call fcn.1400e9080
lea rax, str.syslinux
mov edx, 0x104
lea r15, [0x140196f54]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x30], r15
lea r12, [0x1401569ec]
mov qword [rsp + 0x28], rax
lea r9, str._s_s__s
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], r12
call fcn.140004960
lea rcx, [rbp - 0x30]
mov byte [rbp + 0xd3], 0
call fcn.140103768
movsx ecx, byte [rsp + 0x54]
call fcn.1400fc9f0
lea rcx, [0x1401621e0]
mov edx, 0x104
mov qword [rsp + 0x30], rcx
lea r9, str._c:_s._s
mov qword [rsp + 0x28], r13
lea rcx, [rbp - 0x30]
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call fcn.140004960
lea rdx, [0x140162384]
mov byte [rbp + 0xd3], 0
lea rcx, [rbp - 0x2d]
call fcn.1400e9510
test rax, rax
jne 0x14005b55b
lea rdx, [rbp - 0x2d]
lea rcx, str.Caution:_No__s_was_provided._The_target_will_be_missing_a_required_Syslinux_file_
call fcn.14004f910
jmp 0x14005b8bc
mov rcx, rax
call fcn.1400e9730
lea rcx, [rbp - 0x2d]
call fcn.14005a330
lea rcx, [rbp - 0x30]
mov rdi, rax
call fcn.14005a330
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 0x14005b5a5
mov rcx, rdi
call fcn.1400e9080
test rbx, rbx
je 0x14005b5b2
mov rcx, rbx
call fcn.1400e9080
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x14005b666
lea r8, [rbp - 0x50]
mov ecx, 2
lea rdx, [rbp - 0x2d]
call fcn.140047970
test eax, eax
je 0x14005b614
xor ebx, ebx
nop dword [rax + rax]
lea rax, [0x140197810]
movsxd rdx, ebx
add rdx, rax
lea rcx, [rbp - 0x50]
mov r8d, 0x20
call fcn.140136d00
test eax, eax
je 0x14005b60f
add ebx, 0x20
cmp ebx, 0xbe0
jb 0x14005b5e0
xor eax, eax
jmp 0x14005b614
mov eax, 1
test eax, eax
lea rcx, [0x1401589b0]
lea rax, [0x1401589b4]
mov r9, r12
cmovne rax, rcx
lea r8, [0x1401e8720]
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], r15
mov qword [rsp + 0x20], rax
call fcn.14004f910
jmp 0x14005b8bc
call fcn.140050120
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, str.Failed_to_create__s:__s
call fcn.14004f910
jmp 0x14005b8bc
cmp byte [0x1401e8c80], 0
je 0x14005b8bc
lea rcx, str.Setting_up_ReactOS...
call fcn.14004f910
mov rbx, qword [0x1401e8838]
mov edx, 0x194
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14005b6eb
call fcn.140050120
mov r8, rax
lea rdx, str.mboot.c32
lea rcx, str.Could_not_locate_resource__s:__s
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
mov qword [0x1401d0540], rdi
jmp 0x14005a74b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x14005b72b
call fcn.140050120
mov r8, rax
lea rdx, str.mboot.c32
lea rcx, str.Could_not_load_resource__s:__s
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
mov qword [0x1401d0540], rsi
jmp 0x14005a74b
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 [0x1401e6790], ebx
mov qword [0x1401d0540], rax
test rax, rax
je 0x14005ab68
movsx edi, byte [rsp + 0x54]
mov ecx, edi
call fcn.1400fc9f0
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.140004960
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp - 0x30]
mov edx, 0xc0000000
mov byte [rbp + 0xd3], 0
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14005b7ee
lea rdx, [rbp - 0x30]
lea rcx, str.Unable_to_create__s_n
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
mov r8d, dword [0x1401e6790]
xor r9d, r9d
mov rdx, qword [0x1401d0540]
mov rcx, r15
call fcn.140050f30
test eax, eax
jne 0x14005b825
lea rdx, [rbp - 0x30]
lea rcx, str.Could_not_write__s
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
test r15, r15
je 0x14005b83f
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x68], r15
mov ecx, edi
call fcn.1400fc9f0
lea r9, str._c:_syslinux.cfg
mov dword [rsp + 0x20], eax
mov edx, 0x104
lea rcx, [rbp - 0x30]
mov r8, 0xffffffffffffffff
call fcn.140004960
lea rdx, [0x14014fa14]
mov byte [rbp + 0xd3], 0
lea rcx, [rbp - 0x30]
call fcn.1400e9510
mov rdi, rax
test rax, rax
jne 0x14005b89b
lea rcx, str.Could_not_create_ReactOS_syslinux.cfg
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
lea r9, [0x1401e8c80]
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.1400e9730
cmp dword [0x1401e8a60], 3
je 0x14005b8d7
movss xmm1, dword [0x140176fd0]
mov ecx, 7
call fcn.140066be0
mov r15, qword [rsp + 0x68]
mov r14d, 1
jmp 0x14005a74b
call fcn.140050120
mov rdx, rax
lea rcx, str.Could_not_write_Syslinux_boot_record:__s
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
call fcn.140050120
mov rdx, rax
lea rcx, str.Could_not_read_Syslinux_boot_record:__s
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
call fcn.140050120
mov r8, rax
lea rdx, [rbp - 0x2d]
lea rcx, str.Could_not_rewrite__s:__s_n
call fcn.14004f910
mov r14d, dword [rsp + 0x50]
jmp 0x14005a74b
lea eax, [rdx - 0x200]
cmp eax, 0xe00
ja 0x14005b960
lea eax, [rdx - 1]
test edx, eax
lea rax, str.unsupported_sectors_size
je 0x14005b967
lea rax, str.impossible_sector_size
mov rdx, rax
lea rcx, str.Error:__s
call fcn.14004f910
mov rdi, rbx
jmp 0x14005a750