Function at 0x43f8c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov dword [0x0054a278], 0x15
cmp edx, 0x14
mov qword [0x0054a270], rcx
mov dword [0x0054a268], edx
ja 0x43f8a5
add rsp, 0x28
ret
lea r8, str.bfd_set_input_error
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x2fc
call fcn.0043f7f0
nop
nop
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x188
lea rdi, [rsp + 0xf0]
mov qword [rsp + 0x1d8], rdx
lea rdx, [rsp + 0x180]
mov qword [rsp + 0x1d0], rcx
mov rax, rdi
nop word cs:[rax + rax]
mov dword [rax], 0
add rax, 0x10
cmp rdx, rax
jne 0x43f900
mov r13, qword [0x0051ee30]
mov rax, qword [rsp + 0x1d0]
lea rbx, str.__0I
lea rbp, [0x004f4a9a]
mov dword [rsp + 0x28], 0
mov rsi, r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x38], r13
movzx edx, byte [rax]
test dl, dl
je 0x43f95f
cmp dl, 0x25
je 0x43f9b0
mov edx, 0x25
mov rcx, rax
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x43f941
mov edx, dword [rsp + 0x28]
test edx, edx
je 0x43fc16
mov rax, qword [rsp + 0x1d8]
mov rbx, qword [rsp + 0x1d8]
lea rcx, [0x004f4ac4]
lea rdx, [rax + 8]
mov eax, dword [rsp + 0x28]
sub eax, 1
lea r8, [rbx + rax*8 + 0x10]
cmp dword [rdi], 6
ja case.0x43f9a4.0
mov eax, dword [rdi]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx r15d, byte [rax + 1]
cmp r15b, 0x25
je 0x43fad0
cmp r15b, 0x30
lea r14, [rax + 1]
je 0x43fae0
mov rcx, qword [rsp + 0x38]
movzx edx, r15b
movsx r12d, r15b
mov dword [rsp + 0x44], 0xffffffff
test byte [rcx + rdx*2], 4
je 0x43fa10
cmp byte [rax + 2], 0x24
jne 0x43fa10
lea ecx, [r12 - 0x31]
movsx r12d, byte [rax + 3]
lea r14, [rax + 3]
mov dword [rsp + 0x44], ecx
mov r15d, r12d
jmp 0x43fa10
add r14, 1
movsx r12d, byte [r14]
mov r15d, r12d
mov edx, r12d
mov rcx, rbx
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x43fa05
cmp r15b, 0x2a
je 0x43fb40
movzx r12d, r12b
test byte [rsi + r12*2], 4
je 0x43fa46
add r14, 1
movzx eax, byte [r14]
test byte [rsi + rax*2], 4
mov r15, rax
jne 0x43fa35
cmp r15b, 0x2e
je 0x43faf3
mov dword [rsp + 0x30], 0
xor r12d, r12d
movsx edx, r15b
mov rcx, rbp
call sub.msvcrt.dll_strchr
test rax, rax
je 0x43fd60
cmp r15b, 0x68
je 0x43faa0
cmp r15b, 0x6c
je 0x43fac0
cmp r15b, 0x4c
je 0x43fab2
lea r8, str._bfd_doprnt_scan
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x4d4
call fcn.0043f7f0
nop word [rax + rax]
mov dword [rsp + 0x30], 1
add r14, 1
movzx r15d, byte [r14]
jmp 0x43fa5b
mov r12d, 2
jmp 0x43faa8
add r12d, 1
jmp 0x43faa8
add rax, 2
jmp 0x43f941
mov dword [rsp + 0x44], 0xffffffff
mov r12d, 0x30
jmp 0x43fa10
movzx r15d, byte [r14 + 1]
cmp r15b, 0x2a
je 0x43fb9d
movzx eax, r15b
add r14, 1
test byte [r13 + rax*2], 4
je 0x43fa50
nop word cs:[rax + rax]
add r14, 1
movzx eax, byte [r14]
test byte [r13 + rax*2], 4
mov r15, rax
jne 0x43fb20
jmp 0x43fa50
movzx edx, byte [r14 + 1]
mov r10d, dword [rsp + 0x28]
lea rcx, [r14 + 1]
mov eax, r10d
cmp dl, 0x30
je 0x43fb74
mov r11, qword [rsp + 0x48]
movsx r9d, dl
movzx edx, dl
test byte [r11 + rdx*2], 4
je 0x43fb74
cmp byte [r14 + 2], 0x24
je 0x43fe1c
cmp eax, 8
ja 0x4402db
shl rax, 4
add dword [rsp + 0x28], 1
movzx r15d, byte [rcx]
mov dword [rsp + rax + 0xf0], 1
mov r14, rcx
jmp 0x43fa46
movzx edx, byte [r14 + 2]
mov r11d, dword [rsp + 0x28]
lea rcx, [r14 + 2]
mov eax, r11d
cmp dl, 0x30
je 0x43fbd7
mov r10, qword [0x0051ee30]
movsx r9d, dl
movzx edx, dl
test byte [r10 + rdx*2], 4
je 0x43fbd7
cmp byte [r14 + 3], 0x24
jne 0x43fbd7
lea eax, [r9 - 0x31]
lea rcx, [r14 + 4]
cmp eax, 8
ja 0x4402ab
shl rax, 4
add dword [rsp + 0x28], 1
movzx r15d, byte [rcx]
mov dword [rsp + rax + 0xf0], 1
mov r14, rcx
jmp 0x43fa50
mov eax, dword [rdx - 8]
mov dword [rdi], eax
add rdx, 8
add rdi, 0x10
cmp r8, rdx
jne 0x43f992
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
mov qword [rsp + 0x30], rax
call rax
lea rcx, [rax + 0x30]
call sub.msvcrt.dll_fflush
mov rbx, qword [0x0054a260]
test rbx, rbx
je 0x440061
mov rax, qword [rsp + 0x30]
call rax
lea rdx, str._s:
lea rcx, [rax + 0x60]
mov r8, rbx
call sub.msvcrt.dll_fprintf
mov rax, qword [rsp + 0x30]
call rax
lea rdi, [rax + 0x60]
lea rax, [rsp + 0x70]
mov r12, qword [rsp + 0x1d0]
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x28], rax
mov rax, qword [0x0051ee30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
mov rsi, rax
mov qword [rsp + 0x50], rax
movzx eax, byte [r12]
test al, al
je 0x43fcdf
cmp al, 0x25
je 0x43fe41
mov edx, 0x25
mov rcx, r12
call sub.msvcrt.dll_strchr
test rax, rax
je 0x43ff77
mov r8d, eax
lea rdx, str._.s
mov r9, r12
sub r8d, r12d
mov rcx, rdi
call sub.msvcrt.dll_fprintf
movsxd rdx, eax
add r12, rdx
cmp eax, 0xffffffff
jne 0x43fc95
mov rbx, qword [rsp + 0x30]
call rbx
lea rdx, [rax + 0x60]
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call rbx
lea rcx, [rax + 0x60]
call sub.msvcrt.dll_fflush
nop
add rsp, 0x188
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdx - 8]
mov qword [rdi], rax
jmp 0x43fc05
movsd xmm0, qword [rdx - 8]
movsd qword [rdi], xmm0
jmp 0x43fc05
mov rax, qword [rdx - 8]
fld xword [rax]
fstp xword [rdi]
jmp 0x43fc05
lea r8, str.error_handler_internal
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x549
call fcn.0043f7f0
nop dword [rax + rax]
mov ecx, dword [rsp + 0x44]
lea r9d, [r15 - 0x45]
lea rax, [r14 + 1]
test ecx, ecx
cmovs ecx, dword [rsp + 0x28]
cmp r9b, 0x33
mov dword [rsp + 0x44], ecx
ja case.0x43fd93.1
lea rcx, [0x004f4ae0]
movzx r9d, r9b
movsxd rdx, dword [rcx + r9*4]
add rdx, rcx
jmp rdx
mov dword [rsp + 0x30], 6
cmp dword [rsp + 0x44], 8
ja 0x4402c3
mov r14d, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x30]
add dword [rsp + 0x28], 1
shl r14, 4
mov dword [rsp + r14 + 0xf0], ecx
jmp 0x43f941
movzx ecx, byte [r14 + 1]
lea r8, [r14 + 2]
mov dword [rsp + 0x30], 6
lea edx, [rcx - 0x41]
cmp dl, 1
cmovbe rax, r8
jmp 0x43fd9d
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x43fd9d
test r12d, r12d
mov dword [rsp + 0x30], 1
je 0x43fd9d
xor ecx, ecx
cmp r12d, 1
setne cl
add ecx, 2
mov dword [rsp + 0x30], ecx
jmp 0x43fd9d
xor ecx, ecx
test r12d, r12d
setne cl
add ecx, 4
mov dword [rsp + 0x30], ecx
jmp 0x43fd9d
lea eax, [r9 - 0x31]
lea rcx, [r14 + 3]
jmp 0x43fb74
lea r8, str._bfd_doprnt_scan
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x51b
call fcn.0043f7f0
movzx ebx, byte [r12 + 1]
cmp bl, 0x25
je 0x440088
cmp bl, 0x30
lea rbp, [r12 + 1]
mov byte [rsp + 0x70], 0x25
je 0x440050
mov rcx, qword [rsp + 0x50]
movzx eax, bl
movsx r14d, bl
mov r13d, 0xffffffff
test byte [rcx + rax*2], 4
je 0x43fe87
cmp byte [r12 + 2], 0x24
je 0x4401ec
mov rax, qword [rsp + 0x28]
lea r12, str.__0I
lea r15, [rax + 1]
jmp 0x43feb4
add rbp, 1
movsx r14d, byte [rbp]
add r15, 1
mov byte [r15 - 1], bl
mov ebx, r14d
mov edx, r14d
mov rcx, r12
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x43fea0
cmp bl, 0x2a
je 0x43ffdf
movzx r14d, r14b
test byte [rsi + r14*2], 4
je 0x43fef9
nop dword [rax + rax]
add rbp, 1
movzx eax, byte [rbp]
add r15, 1
mov byte [r15 - 1], bl
test byte [rsi + rax*2], 4
mov rbx, rax
jne 0x43fee0
cmp bl, 0x2e
je 0x43ff8e
lea r12, [0x004f4a9a]
mov dword [rsp + 0x44], 0
xor r14d, r14d
movsx edx, bl
mov rcx, r12
call sub.msvcrt.dll_strchr
test rax, rax
je 0x44009e
cmp bl, 0x68
je 0x43ff4f
cmp bl, 0x6c
je 0x43ff71
cmp bl, 0x4c
je 0x43ff69
lea r8, str._bfd_doprnt
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x3e4
call fcn.0043f7f0
mov dword [rsp + 0x44], 1
add r15, 1
add rbp, 1
mov byte [r15 - 1], bl
movzx ebx, byte [rbp]
jmp 0x43ff14
mov r14d, 2
jmp 0x43ff57
add r14d, 1
jmp 0x43ff57
lea rdx, [0x004f4aae]
mov r8, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
jmp 0x43fcd4
movzx ebx, byte [rbp + 1]
lea r14, [r15 + 1]
mov byte [r15], 0x2e
cmp bl, 0x2a
je 0x440203
mov rcx, qword [rsp + 0x48]
movzx eax, bl
add rbp, 1
mov r15, r14
mov rdx, qword [rsp + 0x48]
test byte [rcx + rax*2], 4
je 0x43ff02
add rbp, 1
movzx eax, byte [rbp]
add r15, 1
mov byte [r15 - 1], bl
test byte [rdx + rax*2], 4
mov rbx, rax
jne 0x43ffc1
jmp 0x43ff02
movzx edx, byte [rbp + 1]
mov ebx, dword [rsp + 0x38]
lea r12, [rbp + 1]
mov eax, ebx
cmp dl, 0x30
je 0x44000e
mov r11, qword [rsp + 0x58]
movsx ecx, dl
movzx edx, dl
test byte [r11 + rdx*2], 4
je 0x44000e
cmp byte [rbp + 2], 0x24
je 0x440274
shl rax, 4
mov rcx, r15
add dword [rsp + 0x38], 1
mov edx, dword [rsp + rax + 0xf0]
mov r8d, dword [rsp + rax + 0xf0]
mov rbp, r12
sar edx, 0x1f
xor r8d, edx
sub r8d, edx
lea rdx, [0x004f4ab1]
call sub.msvcrt.dll_sprintf
cdqe
movzx ebx, byte [r12]
add r15, rax
jmp 0x43fef9
mov r13d, 0xffffffff
mov r14d, 0x30
jmp 0x43fe87
mov rax, qword [rsp + 0x30]
call rax
lea rcx, str.BFD:
lea r9, [rax + 0x60]
mov r8d, 5
mov edx, 1
call sub.msvcrt.dll_fwrite
jmp 0x43fc57
mov rdx, rdi
mov ecx, 0x25
add r12, 2
call sub.msvcrt.dll_fputc
jmp 0x43fc95
lea eax, [rbx - 0x45]
test r13d, r13d
cmovs r13d, dword [rsp + 0x38]
lea r12, [rbp + 1]
mov byte [r15], bl
mov byte [r15 + 1], 0
cmp al, 0x33
ja case.0x4400cf.1
lea rdx, [0x004f4bb0]
movzx eax, al
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov byte [r15 - 2], 0x49
mov byte [r15 - 1], 0x36
mov byte [r15], 0x34
mov byte [r15 + 1], bl
mov byte [r15 + 2], 0
mov eax, r13d
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
shl rax, 4
mov r8, qword [rsp + rax + 0xf0]
call sub.msvcrt.dll_fprintf
add dword [rsp + 0x38], 1
jmp 0x43fcda
movzx eax, byte [rbp + 1]
cmp al, 0x41
je 0x44030b
cmp al, 0x42
jne case.0x4400cf.46
mov eax, r13d
lea r12, [rbp + 2]
shl rax, 4
mov rax, qword [rsp + rax + 0xf0]
test rax, rax
je 0x4402f3
mov rdx, qword [rax + 0xd0]
test rdx, rdx
je 0x440150
test byte [rdx + 0x45], 0x10
je 0x44038c
mov r8, qword [rax]
lea rdx, [0x004f4aae]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
jmp 0x440104
mov eax, dword [rsp + 0x44]
test eax, eax
jne 0x44017b
test r14d, r14d
je 0x44017b
cmp r14d, 1
jne 0x4400d1
mov eax, r13d
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
shl rax, 4
mov r8d, dword [rsp + rax + 0xf0]
call sub.msvcrt.dll_fprintf
jmp 0x440104
mov eax, r13d
shl rax, 4
test r14d, r14d
jne 0x440280
movsd xmm0, qword [rsp + rax + 0xf0]
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
movapd xmm2, xmm0
movq r8, xmm0
call sub.msvcrt.dll_fprintf
jmp 0x440104
lea r8, str._bfd_doprnt
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x466
call fcn.0043f7f0
lea r13d, [r14 - 0x31]
movsx r14d, byte [r12 + 3]
lea rbp, [r12 + 3]
mov ebx, r14d
jmp 0x43fe87
movzx edx, byte [rbp + 2]
mov ebx, dword [rsp + 0x38]
lea r12, [rbp + 2]
mov eax, ebx
cmp dl, 0x30
je 0x440230
mov r11, qword [0x0051ee30]
movsx ecx, dl
movzx edx, dl
test byte [r11 + rdx*2], 4
je 0x440230
cmp byte [rbp + 3], 0x24
je 0x4402a2
shl rax, 4
mov rcx, r14
add dword [rsp + 0x38], 1
mov edx, dword [rsp + rax + 0xf0]
mov r8d, dword [rsp + rax + 0xf0]
mov rbp, r12
sar edx, 0x1f
xor r8d, edx
sub r8d, edx
lea rdx, [0x004f4ab1]
call sub.msvcrt.dll_sprintf
movsxd r9, eax
movzx ebx, byte [r12]
lea r15, [r14 + r9]
jmp 0x43ff02
lea eax, [rcx - 0x31]
lea r12, [rbp + 3]
jmp 0x44000e
fld xword [rsp + rax + 0xf0]
mov rdx, qword [rsp + 0x28]
lea r8, [rsp + 0x60]
mov rcx, rdi
fstp xword [rsp + 0x60]
call sub.msvcrt.dll_fprintf
jmp 0x440104
lea eax, [rcx - 0x31]
lea r12, [rbp + 4]
jmp 0x440230
lea r8, str._bfd_doprnt_scan
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x4bd
call fcn.0043f7f0
lea r8, str._bfd_doprnt_scan
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x51f
call fcn.0043f7f0
lea r8, str._bfd_doprnt_scan
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x4a4
call fcn.0043f7f0
lea r8, str._bfd_doprnt
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x459
call fcn.0043f7f0
mov eax, r13d
lea r12, [rbp + 2]
shl rax, 4
mov rax, qword [rsp + rax + 0xf0]
test rax, rax
je 0x4403ce
mov rdx, qword [rax + 0xf8]
test rdx, rdx
je 0x440150
mov rdx, qword [rdx + 8]
mov edx, dword [rdx + 8]
cmp edx, 5
je 0x4403a6
cmp edx, 2
jne 0x440150
mov rdx, qword [rax + 0xe8]
test rdx, rdx
je 0x440150
mov rdx, qword [rdx + 0x40]
test rdx, rdx
je 0x440150
mov r9, qword [rdx]
test r9, r9
je 0x440150
mov r8, qword [rax]
lea rdx, [0x004f4ab4]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
jmp 0x440104
mov r8, qword [rdx]
mov r9, qword [rax]
lea rdx, str._s__s_
mov rcx, rdi
call sub.msvcrt.dll_fprintf
jmp 0x440104
mov rdx, qword [rax + 0xe8]
cmp qword [rdx + 0xc0], 0
je 0x440150
test byte [rax + 0x2b], 2
jne 0x440150
mov r9, qword [rdx + 0xb0]
jmp 0x44036c
lea r8, str._bfd_doprnt
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s2_elf_src_binutils_bfd_bfd.c
mov edx, 0x43f
call fcn.0043f7f0
nop
nop word [rax + rax]