Function at 0x140017200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140123080]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor esi, esi
mov rbx, rcx
mov edi, esi
cmp qword [rcx + 0x118], rsi
jne 0x1400175fb
cmp byte [rcx + 0x15], sil
jne 0x1400175fb
mov r14d, 1
mov dword [rbp - 0x30], r14d
nop dword [rax + rax]
movzx eax, byte [rbx + 0x16]
mov edi, esi
cmp al, r14b
jb 0x14001725f
cmp al, 5
jne 0x140017298
cmp byte [rbx + 0x12], sil
jne 0x140017278
mov rcx, qword [rbx + 0x48]
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x140017282
cmp byte [rbx + 0x16], 5
je 0x140017298
mov byte [rbx + 0x16], r14b
cmp edi, 5
jne 0x140017298
mov rcx, qword [rbx + 0xe8]
call qword [rbx + 0xe0]
test eax, eax
jne 0x140017250
test edi, edi
jne 0x140017686
cmp byte [rbx + 0x16], r14b
ja 0x1400172c0
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140016fb0
mov edi, eax
test eax, eax
jne 0x140017686
mov r14d, dword [rbp - 0x30]
test r14d, r14d
je 0x140017451
cmp byte [rbx + 0x13], sil
je 0x1400172e1
mov rcx, rbx
mov edi, 0x308
call fcn.140014250
jmp 0x140017698
movzx eax, byte [rbx + 0x16]
mov edi, esi
cmp al, 4
jb 0x1400172ef
cmp al, 5
jne 0x140017310
cmp byte [rbx + 0x12], sil
jne 0x14001730a
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x140017310
mov byte [rbx + 0x16], 4
jmp 0x140017318
test edi, edi
jne 0x140017686
mov rax, qword [rbx + 0x50]
cmp qword [rax], rsi
jne 0x1400173b9
mov r14, qword [rbx]
lea r9, [rbp - 0x28]
mov rdx, qword [rbx + 0xd8]
xor r8d, r8d
mov rcx, r14
call qword [r14 + 0x38]
mov edi, eax
test eax, eax
jne 0x1400173b9
cmp dword [rbp - 0x28], esi
je 0x1400173b9
mov r8, qword [rbx + 0x50]
lea rax, [rbp - 0x30]
mov rdx, qword [rbx + 0xd8]
mov r9d, 0x802
mov rcx, r14
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x30], esi
call qword [r14 + 0x28]
mov edi, eax
test eax, eax
jne 0x1400173b9
test byte [rbp - 0x30], 1
je 0x1400173b9
lea rax, [0x140108c34]
mov edi, 0xe
mov ecx, edi
mov qword [rsp + 0x20], rax
mov r9d, 0xcb44
lea r8, str.cannot_open_file
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140008fe0
mov r14, qword [rbx + 0x50]
mov rax, qword [r14]
test rax, rax
je 0x1400173b9
mov rcx, r14
call qword [rax + htons]
mov qword [r14], rsi
mov rcx, qword [rbx + 0x50]
mov rax, qword [rcx]
test rax, rax
je 0x140017405
cmp byte [rbx + 0xb], sil
jne 0x1400173d9
mov edx, 2
call qword [rax + 0x28]
mov edi, eax
test eax, eax
jne 0x1400173e9
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
test edi, edi
jne 0x140017433
mov edx, esi
mov rcx, rbx
cmp byte [rbx + 0x11], dl
sete dl
call fcn.140015030
mov edi, eax
mov byte [rbx + 0x15], sil
jmp 0x14001742f
cmp byte [rbx + 8], sil
jne 0x14001742f
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x14001742f
cmp byte [rbx + 0x12], sil
jne 0x140017425
mov edx, 1
call qword [rax + 0x40]
cmp byte [rbx + 0x16], 5
je 0x14001742f
mov byte [rbx + 0x16], 1
test edi, edi
je 0x140017451
movzx eax, dil
cmp eax, 0xd
je 0x140017445
cmp eax, 0xa
jne 0x140017682
mov dword [rbx + 0x30], edi
mov byte [rbx + 0x15], 6
jmp 0x140017682
cmp byte [rbx + 0x11], sil
jne 0x14001753a
cmp byte [rbx + 0x1c], sil
je 0x14001753a
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x140017480
cmp word [rax + 0x3c], si
jl 0x140017480
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x1400174ba
jmp 0x140017482
mov eax, esi
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x1400174ba
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], rsi
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x140017686
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x28]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x1400174c8
mov dword [rbx + 0xc0], eax
test eax, eax
je 0x1400174f9
mov rcx, qword [rbx + 0x48]
lea rdx, [rbp - 0x20]
mov r9d, 0x18
mov r8d, send
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edi, eax
test eax, eax
je 0x140017500
cmp eax, 0x20a
jne 0x140017686
jmp 0x140017500
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov rax, qword [rbx + 0x88]
cmp rax, qword [rbp - 0x20]
jne 0x14001751a
mov rax, qword [rbx + 0x90]
cmp rax, qword [rbp - 0x18]
je 0x14001753a
mov rcx, rbx
call fcn.140013f60
cmp byte [rbx + 0x1b], sil
je 0x14001753a
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
mov edi, esi
cmp byte [rbx + 0x11], sil
jne 0x1400175fb
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x140017561
cmp word [rax + 0x3c], si
jl 0x140017561
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x140017597
jmp 0x140017563
mov eax, esi
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x140017597
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], rsi
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x1400175fb
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x28]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x1400175a5
mov dword [rbx + 0xc0], eax
mov r10, qword [rbx]
xor r8d, r8d
mov rdx, qword [rbx + 0x120]
mov rcx, r10
test eax, eax
jne 0x1400175ce
call qword [r10 + 0x30]
mov ecx, esi
mov edi, esi
cmp eax, 0x170a
mov dword [rbp - 0x30], ecx
cmovne edi, eax
jmp 0x1400175db
lea r9, [rbp - 0x30]
call qword [r10 + 0x38]
mov ecx, dword [rbp - 0x30]
mov edi, eax
test edi, edi
jne 0x1400175fb
test ecx, ecx
je 0x1400175f1
xor edx, edx
mov rcx, rbx
call fcn.140019580
mov edi, eax
jmp 0x1400175fb
cmp byte [rbx + 9], 5
jne 0x1400175fb
mov byte [rbx + 9], sil
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x140017664
mov dword [rbp - 0x30], esi
call fcn.14001bc10
mov r14, qword [rbx + 0x118]
nop word [rax + rax]
inc esi
lea rdx, [rbp - 0x30]
mov r9d, esi
xor r8d, r8d
mov rcx, r14
call fcn.14001b8d0
mov edi, eax
cmp eax, 0xffffffff
je 0x140017620
test eax, eax
jne 0x140017644
cmp dword [rbp - 0x30], eax
je 0x140017664
mov rcx, rbx
call fcn.140013f60
cmp byte [rbx + 0x1b], 0
je 0x140017664
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
cmp byte [rbx + 0x11], 0
jne 0x140017682
cmp byte [rbx + 0x15], 0
jne 0x140017682
test edi, edi
jne 0x140017686
lea rdx, [rbx + 0x20]
mov rcx, rbx
call fcn.140015730
mov edi, eax
test edi, edi
je 0x140017690
mov rcx, rbx
call fcn.140014250
jmp 0x140017698
mov byte [rbx + 0x15], 1
mov byte [rbx + 0x1c], 1
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400d12d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret