Function at 0x14001ac20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x20]
mov rsi, rcx
lea rdi, [rsp + 0x50]
mov rbx, rdx
lea rdx, [rcx + 0x228]
mov rcx, rbp
call dbg.safe_gmtime
mov r9, rbp
mov edx, 0x40
mov rcx, rdi
lea r8, [0x14005f796]
call sym.strftime
lea rdx, str._Masscan_1.3.9_integration_scan_initiated__s_n
mov r8, rdi
mov rcx, rbx
call sym.fprintf_1
mov rdx, qword [rsi]
mov rax, qword [rdx + 0xbf0]
mov edx, dword [rdx + 0xbf8]
test edx, edx
je 0x14001af08
lea r9, [rax + rdx*8]
xor edi, edi
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop dword [rax]
mov ecx, dword [rax]
cmp ecx, 0xffff
ja 0x14001ace0
mov edx, dword [rax + 4]
mov r8d, 0xffff
cmp edx, r8d
cmova edx, r8d
lea edi, [rdi + rdx + 1]
sub edi, ecx
add rax, 8
cmp rax, r9
jne 0x14001acc0
mov r8d, edi
lea rdx, str._Ports_scanned:_TCP__u_
mov rcx, rbx
call sym.fprintf_1
test edi, edi
je 0x14001ad13
mov rax, qword [rsi]
mov r8, rbx
xor edx, edx
lea rcx, [rax + 0xbf0]
call dbg.print_port_list
mov rdx, qword [rsi]
mov rax, qword [rdx + 0xbf0]
mov edx, dword [rdx + 0xbf8]
test edx, edx
je 0x14001af20
lea r9, [rax + rdx*8]
xor edi, edi
nop word cs:[rax + rax]
nop dword [rax]
mov edx, dword [rax + 4]
mov ecx, dword [rax]
cmp edx, 0xffff
jbe 0x14001ad72
cmp ecx, 0x1ffff
ja 0x14001ad72
mov r8d, 0x1ffff
cmp edx, r8d
cmova edx, r8d
lea edi, [rdi + rdx + 1]
mov edx, 0x10000
cmp ecx, edx
cmovb ecx, edx
sub edi, ecx
add rax, 8
cmp r9, rax
jne 0x14001ad40
mov r8d, edi
lea rdx, str.__UDP__u_
mov rcx, rbx
call sym.fprintf_1
test edi, edi
je 0x14001ada8
mov rax, qword [rsi]
mov r8, rbx
mov edx, 0x10000
lea rcx, [rax + 0xbf0]
call dbg.print_port_list
mov rdx, qword [rsi]
mov rax, qword [rdx + 0xbf0]
mov edx, dword [rdx + 0xbf8]
test edx, edx
je 0x14001af40
lea r9, [rax + rdx*8]
xor edi, edi
nop word cs:[rax + rax]
mov edx, dword [rax]
mov ecx, dword [rax + 4]
cmp edx, 0x2ffff
ja 0x14001ae02
cmp ecx, 0x1ffff
jbe 0x14001ae02
mov r8d, 0x2ffff
cmp ecx, r8d
cmova ecx, r8d
lea edi, [rdi + rcx + 1]
mov ecx, 0x20000
cmp edx, ecx
cmovb edx, ecx
sub edi, edx
add rax, 8
cmp r9, rax
jne 0x14001add0
mov r8d, edi
lea rdx, str.__SCTP__u_
mov rcx, rbx
call sym.fprintf_1
test edi, edi
je 0x14001ae38
mov rax, qword [rsi]
mov r8, rbx
mov edx, 0x20000
lea rcx, [rax + 0xbf0]
call dbg.print_port_list
mov rdx, qword [rsi]
mov rax, qword [rdx + 0xbf0]
mov edx, dword [rdx + 0xbf8]
test edx, edx
je 0x14001aef0
lea r9, [rax + rdx*8]
xor edi, edi
nop word cs:[rax + rax]
mov edx, dword [rax]
mov ecx, dword [rax + 4]
cmp edx, 0x301ff
ja 0x14001ae92
cmp ecx, 0x300ff
jbe 0x14001ae92
mov r8d, 0x301ff
cmp ecx, r8d
cmova ecx, r8d
lea edi, [rdi + rcx + 1]
mov ecx, 0x30100
cmp edx, ecx
cmovb edx, ecx
sub edi, edx
add rax, 8
cmp r9, rax
jne 0x14001ae60
mov r8d, edi
lea rdx, str.__PROTOCOLS__u_
mov rcx, rbx
call sym.fprintf_1
test edi, edi
je 0x14001aec8
mov rcx, qword [rsi]
mov r8, rbx
mov edx, 0x30100
add rcx, 0xbf0
call dbg.print_port_list
mov r9, rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x14005f81d]
call sym.fwrite
nop
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor r8d, r8d
lea rdx, str.__PROTOCOLS__u_
mov rcx, rbx
call sym.fprintf_1
jmp 0x14001aec8
xor r8d, r8d
lea rdx, str._Ports_scanned:_TCP__u_
mov rcx, rbx
call sym.fprintf_1
jmp 0x14001ad13
xor r8d, r8d
lea rdx, str.__UDP__u_
mov rcx, rbx
call sym.fprintf_1
jmp 0x14001ada8
xor r8d, r8d
lea rdx, str.__SCTP__u_
mov rcx, rbx
call sym.fprintf_1
jmp 0x14001ae38