Function at 0x140017660
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 [0x140132020]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor esi, esi
mov rbx, rcx
mov edi, esi
cmp qword [rcx + 0x118], rsi
jne 0x140017a59
cmp byte [rcx + 0x15], sil
jne 0x140017a59
mov r14d, 1
mov dword [rbp - 0x30], r14d
nop dword [rax + rax]
movzx eax, byte [rbx + 0x16]
mov edi, esi
cmp al, r14b
jb 0x1400176bf
cmp al, 5
jne 0x1400176f8
cmp byte [rbx + 0x12], sil
jne 0x1400176d8
mov rcx, qword [rbx + 0x48]
mov edx, r14d
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x1400176e2
cmp byte [rbx + 0x16], 5
je 0x1400176f8
mov byte [rbx + 0x16], r14b
cmp edi, 5
jne 0x1400176f8
mov rcx, qword [rbx + 0xe8]
call qword [rbx + 0xe0]
test eax, eax
jne 0x1400176b0
test edi, edi
jne 0x140017ae6
cmp byte [rbx + 0x16], r14b
ja 0x140017720
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.140017410
mov edi, eax
test eax, eax
jne 0x140017ae6
mov r14d, dword [rbp - 0x30]
test r14d, r14d
je 0x1400178b1
cmp byte [rbx + 0x13], sil
je 0x140017741
mov rcx, rbx
mov edi, 0x308
call fcn.1400146f0
jmp 0x140017af8
movzx eax, byte [rbx + 0x16]
mov edi, esi
cmp al, 4
jb 0x14001774f
cmp al, 5
jne 0x140017770
cmp byte [rbx + 0x12], sil
jne 0x14001776a
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
jne 0x140017770
mov byte [rbx + 0x16], 4
jmp 0x140017778
test edi, edi
jne 0x140017ae6
mov rax, qword [rbx + 0x50]
cmp qword [rax], rsi
jne 0x140017819
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 0x140017819
cmp dword [rbp - 0x28], esi
je 0x140017819
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 0x140017819
test byte [rbp - 0x30], 1
je 0x140017819
lea rax, [0x14010eb54]
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.140009250
mov r14, qword [rbx + 0x50]
mov rax, qword [r14]
test rax, rax
je 0x140017819
mov rcx, r14
call qword [rax + htons]
mov qword [r14], rsi
mov rcx, qword [rbx + 0x50]
mov rax, qword [rcx]
test rax, rax
je 0x140017865
cmp byte [rbx + 0xb], sil
jne 0x140017839
mov edx, 2
call qword [rax + 0x28]
mov edi, eax
test eax, eax
jne 0x140017849
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
test edi, edi
jne 0x140017893
mov edx, esi
mov rcx, rbx
cmp byte [rbx + 0x11], dl
sete dl
call fcn.1400154a0
mov edi, eax
mov byte [rbx + 0x15], sil
jmp 0x14001788f
cmp byte [rbx + 8], sil
jne 0x14001788f
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x14001788f
cmp byte [rbx + 0x12], sil
jne 0x140017885
mov edx, 1
call qword [rax + 0x40]
cmp byte [rbx + 0x16], 5
je 0x14001788f
mov byte [rbx + 0x16], 1
test edi, edi
je 0x1400178b1
movzx eax, dil
cmp eax, 0xd
je 0x1400178a5
cmp eax, 0xa
jne 0x140017ae2
mov dword [rbx + 0x30], edi
mov byte [rbx + 0x15], 6
jmp 0x140017ae2
cmp byte [rbx + 0x11], sil
jne 0x140017998
cmp byte [rbx + 0x1c], sil
je 0x140017998
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x1400178e0
cmp word [rax + 0x3c], si
jl 0x1400178e0
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x14001791a
jmp 0x1400178e2
mov eax, esi
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x14001791a
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], rsi
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x140017ae6
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x28]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x140017928
mov dword [rbx + 0xc0], eax
test eax, eax
je 0x140017957
mov rcx, qword [rbx + 0x48]
lea rdx, [rbp - 0x20]
mov r9d, 0x18
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + 0x10]
mov edi, eax
test eax, eax
je 0x14001795e
cmp eax, 0x20a
jne 0x140017ae6
jmp 0x14001795e
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov rax, qword [rbx + 0x88]
cmp rax, qword [rbp - 0x20]
jne 0x140017978
mov rax, qword [rbx + 0x90]
cmp rax, qword [rbp - 0x18]
je 0x140017998
mov rcx, rbx
call fcn.140014410
cmp byte [rbx + 0x1b], sil
je 0x140017998
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 0x140017a59
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x1400179bf
cmp word [rax + 0x3c], si
jl 0x1400179bf
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x1400179f5
jmp 0x1400179c1
mov eax, esi
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x1400179f5
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], rsi
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x140017a59
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rbp - 0x28]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x140017a03
mov dword [rbx + 0xc0], eax
mov r10, qword [rbx]
xor r8d, r8d
mov rdx, qword [rbx + 0x120]
mov rcx, r10
test eax, eax
jne 0x140017a2c
call qword [r10 + 0x30]
mov ecx, esi
mov edi, esi
cmp eax, 0x170a
mov dword [rbp - 0x30], ecx
cmovne edi, eax
jmp 0x140017a39
lea r9, [rbp - 0x30]
call qword [r10 + 0x38]
mov ecx, dword [rbp - 0x30]
mov edi, eax
test edi, edi
jne 0x140017a59
test ecx, ecx
je 0x140017a4f
xor edx, edx
mov rcx, rbx
call fcn.1400198d0
mov edi, eax
jmp 0x140017a59
cmp byte [rbx + 9], 5
jne 0x140017a59
mov byte [rbx + 9], sil
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x140017ac4
mov dword [rbp - 0x30], esi
call fcn.14001bce0
mov r14, qword [rbx + 0x118]
nop dword [rax]
nop dword [rax + rax]
inc esi
lea rdx, [rbp - 0x30]
mov r9d, esi
xor r8d, r8d
mov rcx, r14
call fcn.14001b9e0
mov edi, eax
cmp eax, 0xffffffff
je 0x140017a80
test eax, eax
jne 0x140017aa4
cmp dword [rbp - 0x30], eax
je 0x140017ac4
mov rcx, rbx
call fcn.140014410
cmp byte [rbx + 0x1b], 0
je 0x140017ac4
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 0x140017ae2
cmp byte [rbx + 0x15], 0
jne 0x140017ae2
test edi, edi
jne 0x140017ae6
lea rdx, [rbx + 0x20]
mov rcx, rbx
call fcn.140015ba0
mov edi, eax
test edi, edi
je 0x140017af0
mov rcx, rbx
call fcn.1400146f0
jmp 0x140017af8
mov byte [rbx + 0x15], 1
mov byte [rbx + 0x1c], 1
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400d6240
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret