Function at 0x401640
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call 0x401010
nop dword [rax]
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x20158
call fcn.004021d0
sub rsp, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov r13, qword [rax + 0x20]
movzx ebx, word [r13 + 0x70]
mov rdx, qword [r13 + 0x68]
mov rsi, qword [r13 + 0x78]
movzx r12d, word [r13 + 0x60]
lea r14, [rsp + 0x8156]
movabs rax, 0x5c003f003f005c
mov qword [rsp + 0x8156], rax
lea r8, [r12 - 6]
lea rdi, [rsp + 0x815e]
mov rcx, rdi
call fcn.00402200
movabs rax, 0x78006e00750062
mov qword [rsp + r12 + 0x8158], rax
lea eax, [r12 + 0xa]
mov word [rsp + 0x98], ax
mov word [rsp + 0x9a], ax
mov qword [rsp + 0xa0], r14
mov dword [rsp + 0xb8], 0x30
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xd8], xmm0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x78]
lea r8, [rsp + 0xb8]
lea r15, [rsp + 0xa8]
mov edx, 0x120089
mov r9, r15
call sub.ntdll.dll_NtCreateFile
cmp eax, 0xc0000034
je 0x401199
test eax, eax
jne 0x40119e
shr r12d, 1
mov r9b, 1
cmp bx, 2
jae 0x4011b1
xor r10d, r10d
lea rbx, [rsp + 0x18158]
mov eax, 7
sub rax, r12
lea rcx, [rsp + r12*2 + 0x8152]
nop word cs:[rax + rax]
nop
cmp word [rcx + 2], 0x5c
je 0x4011a3
inc rax
add rcx, 0xfffffffffffffffe
cmp rax, 2
jne 0x401180
call 0x401650
call 0x401630
call 0x401640
cmp word [rcx], 0x5c
jne 0x401218
mov r12, rcx
jmp 0x401238
mov ecx, ebx
shr ecx, 1
xor r10d, r10d
xor eax, eax
xor edx, edx
jmp 0x4011e2
cmp r8w, 0x20
setne r8b
or r8b, dl
test r8b, 1
je 0x4013c8
inc rax
cmp rax, rcx
jae 0x40115d
movzx r8d, word [rsi + rax*2]
cmp r8w, 0x22
jne 0x4011c0
test dl, 1
je 0x401210
lea r8, [rax + 1]
cmp r8, rcx
jae 0x401214
cmp word [rsi + rax*2 + 2], 0x22
je 0x401207
mov r8, rax
xor edx, edx
mov rax, r8
jmp 0x4011d6
mov dl, 1
jmp 0x4011d6
xor edx, edx
jmp 0x4011d6
neg rax
nop dword [rax + rax]
sub rax, 1
jb 0x401194
lea r12, [rcx - 2]
cmp word [rcx - 2], 0x5c
mov rcx, r12
jne 0x401220
mov qword [rsp + 0x70], r10
mov dword [rsp + 0x64], r9d
add r12, 2
mov rbp, r14
sub rbp, r12
add rbp, 0x10004
mov rcx, qword [rsp + 0x78]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x30], ebp
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0xc0000011
je 0x401292
test eax, eax
jne 0x40140a
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
movzx r15d, word [rbp + r12 - 2]
mov eax, r15d
and eax, 0xfffffff8
cmp eax, 0xab30
jne 0x401405
add r12, rbp
test r15b, 4
jne 0x40140f
mov word [rsp + 0x815c], 0x22
add r12, 0xfffffffffffffffc
cmp byte [rsp + 0x64], 0
mov rdi, qword [rsp + 0x70]
jne 0x4012e8
mov rcx, r12
mov rdx, rsi
mov r8, rdi
call fcn.00402200
lea rbx, [rsp + 0x815c]
mov word [r12 + rdi], 0
mov rax, qword [r13 + 0x30]
mov dword [rsp + 0xe8], 0x68
movups xmm0, xmmword [r13 + 0x20]
xorps xmm1, xmm1
movups xmmword [rsp + 0x110], xmm1
movups xmmword [rsp + 0x100], xmm1
movups xmmword [rsp + 0xf0], xmm1
movabs rcx, 0x10000000000
mov qword [rsp + 0x120], rcx
mov dword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
movups xmmword [rsp + 0x138], xmm0
mov qword [rsp + 0x148], rax
lea rsi, [rsp + 0x80]
mov qword [rsp + 0x48], rsi
lea rdi, [rsp + 0xe8]
mov qword [rsp + 0x40], rdi
movups xmmword [rsp + 0x30], xmm1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor ecx, ecx
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_CreateProcessW
test eax, eax
jne 0x40149c
call sub.KERNEL32.dll_GetLastError
cmp ax, 2
je 0x4014f0
movzx eax, ax
cmp eax, 0x2e4
jne 0x4014eb
call 0x4016c0
lea rdx, [rsi + rax*2]
xor ecx, ecx
nop
cmp word [rdx + rcx], 0x20
lea rcx, [rcx + 2]
je 0x4013d0
add rax, rax
lea rsi, [rcx + rdx - 4]
sub rbx, rax
lea rax, [rbx + 4]
cmp rax, rcx
je 0x40115a
sub rbx, rcx
add rbx, 4
xor r9d, r9d
mov r10, rbx
jmp 0x40115d
call 0x401670
call 0x401660
mov dword [rsp + 0x60], r15d
mov rax, qword [r12 - 0xa]
mov r15, rax
shr r15, 0x20
je 0x401497
mov eax, eax
lea rax, [rax + r15 + 0xe]
cmp rax, rbp
jne 0x401497
add r12, 0xfffffffffffffff6
sub r12, r15
mov rcx, rbx
mov rdx, r12
mov r8, r15
call fcn.00402200
mov word [rsp + r15 + 0x18158], 0x22
sub r12, r14
lea r8, [r12 - 0xa]
lea rcx, [r15 + rbx + 2]
add r15, rbx
mov rdx, rdi
call fcn.00402200
lea rdi, [r12 + r15 - 8]
cmp byte [rsp + 0x64], 0
jne 0x401488
mov rcx, rdi
mov rdx, rsi
mov rsi, qword [rsp + 0x70]
mov r8, rsi
call fcn.00402200
add rdi, rsi
mov r15d, dword [rsp + 0x60]
mov word [rdi], 0
jmp 0x4012f7
call 0x401680
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [rsp + 0x68], 0xff
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x68]
call sub.KERNEL32.dll_GetExitCodeProcess
mov rcx, qword [rsp + 0x80]
call sub.ntdll.dll_NtClose
mov rcx, qword [rsp + 0x88]
call sub.ntdll.dll_NtClose
mov ecx, dword [rsp + 0x68]
call sub.ntdll.dll_RtlExitUserProcess
call 0x4016d0
test r15b, 4
jne 0x4014fb
call 0x4016b0
test r15b, 2
jne 0x401531
test r15b, 1
jne 0x401584
movzx eax, word [rbx]
cmp ax, 0x20
jne 0x4015d8
xor r8d, r8d
lea rax, [section..data]
mov qword [0x00405200], rax
mov qword [0x00405208], r8
call 0x4016a0
lea rdx, [rbx + 2]
mov word [rbx + 6], 0x6e
mov dword [rbx + 2], 0x750062
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_CreateProcessW
test eax, eax
jne 0x401589
call sub.KERNEL32.dll_GetLastError
cmp ax, 2
jne 0x4013b5
call 0x401690
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [rsp + 0x6c], 0xff
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x6c]
call sub.KERNEL32.dll_GetExitCodeProcess
mov rcx, qword [rsp + 0x80]
call sub.ntdll.dll_NtClose
mov rcx, qword [rsp + 0x88]
call sub.ntdll.dll_NtClose
mov ecx, dword [rsp + 0x6c]
call sub.ntdll.dll_RtlExitUserProcess
xor edx, edx
lea rcx, [section..data]
nop word cs:[rax + rax]
nop dword [rax + rax]
and al, 0x7f
mov byte [rdx + rcx], al
lea r8, [rdx + 1]
cmp rdx, 0x1fe
ja 0x401610
movzx eax, word [rbx + rdx*2 + 2]
mov rdx, r8
cmp ax, 0x20
jne 0x4015f0
lea rax, [section..data]
mov qword [0x00405200], rax
mov qword [0x00405208], r8
call 0x4016a0
nop word [rax + rax]
sub rsp, 0x28
mov cl, 4
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 1
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
xor ecx, ecx
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 2
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 6
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 7
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 0xb
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 0xa
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 9
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 0xc
call 0x4016e0
nop dword [rax + rax]
sub rsp, 0x28
mov cl, 5
call 0x4016e0
nop dword [rax + rax]
push rsi
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x20]
mov rsi, qword [rax + 0x30]
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rsi
call sub.KERNEL32.dll_GetConsoleMode
test eax, eax
je 0x401729
mov edx, dword [rsp + 0x28]
or edx, 4
mov dword [rsp + 0x28], edx
mov rcx, rsi
call sub.KERNEL32.dll_SetConsoleMode
and bl, 0xf
mov byte [rsp + 0x2e], bl
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x2f], bl
lea rdx, [rsp + 0x30]
mov ecx, ebx
call 0x401770
mov ecx, 0xff
call sub.ntdll.dll_RtlExitUserProcess
nop word cs:[rax + rax]
nop
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rdx
mov ebx, ecx
mov rdi, qword [rdx]
xor r15d, r15d
lea r12, str.error:
xorps xmm6, xmm6
lea r14, [rsp + 0x50]
jmp case.default.0x40180c
add r15, r13
cmp r15, 7
je 0x4017f5
lea rax, [r12 + r15]
mov r13d, 7
sub r13, r15
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x4017b0
mov r13, qword [rsp + 0x58]
jmp 0x4017b0
mov rdi, qword [rsi]
movzx eax, bl
and eax, 0xf
lea rcx, section..rdata
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
xor ebx, ebx
lea r15, str.could_not_find_node_modules_path_n_n
xorps xmm6, xmm6
jmp 0x40182d
add rbx, r12
cmp rbx, 0x22
je 0x401df9
lea rax, [r15 + rbx]
mov r12d, 0x22
sub r12, rbx
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401820
mov r12, qword [rsp + 0x58]
jmp 0x401820
xor ebx, ebx
lea r15, str.could_not_find_bin_metadata_file_n_n
xorps xmm6, xmm6
jmp 0x401ab9
add rbx, r12
cmp rbx, 0x22
je 0x401af5
lea rax, [r15 + rbx]
mov r12d, 0x22
sub r12, rbx
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401ab0
mov r12, qword [rsp + 0x58]
jmp 0x401ab0
mov rsi, qword [rsi]
xor edi, edi
lea rbx, str.Bun_failed_to_remap_this_bin_to_its_proper_location_within_node_modules._nThis_is_an_indication_of_a_corrupted_node_modules_directory._n_nPlease_run_bun_install___force_in_the_project_root_and_try_nit_again._If_this_message_persists__please_open_an_issue:_nhttps:__github.com_oven_sh_bun_issues_n_n
xorps xmm6, xmm6
jmp 0x401b20
add rdi, r15
cmp rdi, 0x125
je 0x4021b8
lea rax, [rbx + rdi]
mov r15d, 0x125
sub r15, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401b10
mov r15, qword [rsp + 0x58]
jmp 0x401b10
xor ebx, ebx
lea r15, str.could_not_read_bin_metadata_n_n
xorps xmm6, xmm6
jmp 0x401b79
add rbx, r12
cmp rbx, 0x1d
je 0x401bb5
lea rax, [r15 + rbx]
mov r12d, 0x1d
sub r12, rbx
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401b70
mov r12, qword [rsp + 0x58]
jmp 0x401b70
mov rsi, qword [rsi]
xor edi, edi
lea rbx, str.Bun_failed_to_remap_this_bin_to_its_proper_location_within_node_modules._nThis_is_an_indication_of_a_corrupted_node_modules_directory._n_nPlease_run_bun_install___force_in_the_project_root_and_try_nit_again._If_this_message_persists__please_open_an_issue:_nhttps:__github.com_oven_sh_bun_issues_n_n
xorps xmm6, xmm6
jmp 0x401be0
add rdi, r15
cmp rdi, 0x125
je 0x4021b8
lea rax, [rbx + rdi]
mov r15d, 0x125
sub r15, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401bd0
mov r15, qword [rsp + 0x58]
jmp 0x401bd0
xor ebx, ebx
lea r15, str.bin_metadata_is_corrupt__size__n_n
xorps xmm6, xmm6
jmp 0x401c39
add rbx, r12
cmp rbx, 0x20
je 0x401c75
lea rax, [r15 + rbx]
mov r12d, 0x20
sub r12, rbx
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401c30
mov r12, qword [rsp + 0x58]
jmp 0x401c30
mov rsi, qword [rsi]
xor edi, edi
lea rbx, str.Bun_failed_to_remap_this_bin_to_its_proper_location_within_node_modules._nThis_is_an_indication_of_a_corrupted_node_modules_directory._n_nPlease_run_bun_install___force_in_the_project_root_and_try_nit_again._If_this_message_persists__please_open_an_issue:_nhttps:__github.com_oven_sh_bun_issues_n_n
xorps xmm6, xmm6
jmp 0x401ca0
add rdi, r15
cmp rdi, 0x125
je 0x4021b8
lea rax, [rbx + rdi]
mov r15d, 0x125
sub r15, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401c90
mov r15, qword [rsp + 0x58]
jmp 0x401c90
xor ebx, ebx
lea r15, str.bin_metadata_is_corrupt__bounds__n_n
xorps xmm6, xmm6
jmp 0x401cf9
add rbx, r12
cmp rbx, 0x22
je 0x401d35
lea rax, [r15 + rbx]
mov r12d, 0x22
sub r12, rbx
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401cf0
mov r12, qword [rsp + 0x58]
jmp 0x401cf0
mov rsi, qword [rsi]
xor edi, edi
lea rbx, str.Bun_failed_to_remap_this_bin_to_its_proper_location_within_node_modules._nThis_is_an_indication_of_a_corrupted_node_modules_directory._n_nPlease_run_bun_install___force_in_the_project_root_and_try_nit_again._If_this_message_persists__please_open_an_issue:_nhttps:__github.com_oven_sh_bun_issues_n_n
xorps xmm6, xmm6
jmp 0x401d60
add rdi, r15
cmp rdi, 0x125
je 0x4021b8
lea rax, [rbx + rdi]
mov r15d, 0x125
sub r15, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401d50
mov r15, qword [rsp + 0x58]
jmp 0x401d50
xor ebx, ebx
lea r15, str.could_not_open_bin_metadata_file_n_n
xorps xmm6, xmm6
jmp 0x401dbd
add rbx, r12
cmp rbx, 0x22
je 0x401e5c
lea rax, [r15 + rbx]
mov r12d, 0x22
sub r12, rbx
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401db0
mov r12, qword [rsp + 0x58]
jmp 0x401db0
mov rsi, qword [rsi]
xor edi, edi
lea rbx, str.Bun_failed_to_remap_this_bin_to_its_proper_location_within_node_modules._nThis_is_an_indication_of_a_corrupted_node_modules_directory._n_nPlease_run_bun_install___force_in_the_project_root_and_try_nit_again._If_this_message_persists__please_open_an_issue:_nhttps:__github.com_oven_sh_bun_issues_n_n
xorps xmm6, xmm6
jmp 0x401e20
add rdi, r15
cmp rdi, 0x125
je 0x4021b8
lea rax, [rbx + rdi]
mov r15d, 0x125
sub r15, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401e10
mov r15, qword [rsp + 0x58]
jmp 0x401e10
mov rsi, qword [rsi]
xor edi, edi
lea rbx, str.Bun_failed_to_remap_this_bin_to_its_proper_location_within_node_modules._nThis_is_an_indication_of_a_corrupted_node_modules_directory._n_nPlease_run_bun_install___force_in_the_project_root_and_try_nit_again._If_this_message_persists__please_open_an_issue:_nhttps:__github.com_oven_sh_bun_issues_n_n
xorps xmm6, xmm6
jmp 0x401e80
add rdi, r15
cmp rdi, 0x125
je 0x4021b8
lea rax, [rbx + rdi]
mov r15d, 0x125
sub r15, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x401e70
mov r15, qword [rsp + 0x58]
jmp 0x401e70
xor ebx, ebx
lea r15, str.could_not_create_process_n_n
xorps xmm6, xmm6
jmp 0x402059
add rbx, r12
cmp rbx, 0x1a
je 0x402095
lea rax, [r15 + rbx]
mov r12d, 0x1a
sub r12, rbx
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x402050
mov r12, qword [rsp + 0x58]
jmp 0x402050
mov rsi, qword [rsi]
xor edi, edi
lea rbx, str.Bun_failed_to_remap_this_bin_to_its_proper_location_within_node_modules._nThis_is_an_indication_of_a_corrupted_node_modules_directory._n_nPlease_run_bun_install___force_in_the_project_root_and_try_nit_again._If_this_message_persists__please_open_an_issue:_nhttps:__github.com_oven_sh_bun_issues_n_n
xorps xmm6, xmm6
jmp 0x4020c0
add rdi, r15
cmp rdi, 0x125
je 0x4021b8
lea rax, [rbx + rdi]
mov r15d, 0x125
sub r15, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x4020b0
mov r15, qword [rsp + 0x58]
jmp 0x4020b0
xor ebx, ebx
lea r15, str.bin_metadata_is_corrupt__validate__n_n
xorps xmm6, xmm6
jmp 0x402119
add rbx, r12
cmp rbx, 0x24
je 0x402155
lea rax, [r15 + rbx]
mov r12d, 0x24
sub r12, rbx
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x402110
mov r12, qword [rsp + 0x58]
jmp 0x402110
mov rsi, qword [rsi]
xor edi, edi
lea rbx, str.Bun_failed_to_remap_this_bin_to_its_proper_location_within_node_modules._nThis_is_an_indication_of_a_corrupted_node_modules_directory._n_nPlease_run_bun_install___force_in_the_project_root_and_try_nit_again._If_this_message_persists__please_open_an_issue:_nhttps:__github.com_oven_sh_bun_issues_n_n
xorps xmm6, xmm6
jmp 0x40217c
add rdi, r15
cmp rdi, 0x125
je 0x4021b8
lea rax, [rbx + rdi]
mov r15d, 0x125
sub r15, rdi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
test eax, eax
jne 0x402170
mov r15, qword [rsp + 0x58]
jmp 0x402170
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret