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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x98]
mov r15d, r9d
mov rsi, rdx
mov r14, rcx
test ebx, ebx
jne 0x1400b6613
lea eax, [rbx + 4]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r13
mov r13, qword [rsp + 0x90]
mov r12, qword [r13]
dec ebx
mov ecx, dword [r12 + 0x10]
test ecx, ecx
je 0x1400b6669
dec ecx
je 0x1400b664b
dec ecx
je 0x1400b664b
sub ecx, 2
je 0x1400b6654
dec ecx
je 0x1400b6669
lea r12, [0x1400f0524]
jmp 0x1400b666d
mov rcx, qword [r12]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001820
mov r12, rax
jmp 0x1400b666d
mov r12, qword [r12]
mov edi, 4
lea rdx, str.Read
mov rcx, r12
mov r8d, edi
mov qword [rsp + 0x78], rbp
call fcn.1400d5e60
xor r9d, r9d
test eax, eax
jne 0x1400b66c5
cmp word [r12 + 8], r9w
lea rcx, [r12 + 8]
jne 0x1400b66a5
lea ebp, [rdi - 3]
jmp 0x1400b6822
lea rdx, str.Line
call fcn.1400d568c
mov ebp, 5
mov ecx, 3
test eax, eax
cmove ebp, ecx
jmp 0x1400b681f
lea rdx, str.Write
mov r8d, 5
mov rcx, r12
call fcn.1400d5e60
test eax, eax
jne 0x1400b6712
cmp word [r12 + 0xa], ax
lea rcx, [r12 + 0xa]
jne 0x1400b66f3
lea ebp, [rax + 2]
jmp 0x1400b681f
lea rdx, str.Line
call fcn.1400d568c
xor r9d, r9d
mov ecx, r9d
test eax, eax
setne cl
lea ebp, [rcx + 4]
jmp 0x1400b6822
lea rdx, str.RawRead
mov rcx, r12
call fcn.1400d568c
test eax, eax
jne 0x1400b672d
lea ebp, [rax + 6]
jmp 0x1400b681f
lea rdx, str.RawWrite
mov rcx, r12
call fcn.1400d568c
test eax, eax
jne 0x1400b6748
lea ebp, [rax + 6]
jmp 0x1400b681f
lea rdx, [0x1400f6c78]
mov rcx, r12
call fcn.1400d568c
test eax, eax
je 0x1400b681a
lea rdx, str.Length
mov rcx, r12
call fcn.1400d568c
test eax, eax
jne 0x1400b677a
lea ebp, [rax + 9]
jmp 0x1400b681f
lea rdx, str.AtEOF
mov rcx, r12
call fcn.1400d568c
test eax, eax
jne 0x1400b6795
lea ebp, [rax + 0xa]
jmp 0x1400b681f
lea rdx, str.__Handle
mov rcx, r12
call fcn.1400d568c
test eax, eax
jne 0x1400b67ad
lea ebp, [rax + 0xb]
jmp 0x1400b681f
lea rdx, str.Encoding
mov rcx, r12
call fcn.1400d568c
test eax, eax
jne 0x1400b67c5
lea ebp, [rax + 0xc]
jmp 0x1400b681f
lea rdx, str.Close
mov rcx, r12
call fcn.1400d568c
test eax, eax
jne 0x1400b67dd
lea ebp, [rax + 0xd]
jmp 0x1400b681f
lea rdx, str.Position
mov rcx, r12
call fcn.1400d568c
test eax, eax
je 0x1400b681a
lea rdx, str.Seek
mov rcx, r12
call fcn.1400d568c
test eax, eax
je 0x1400b681a
lea rdx, str.Tell
mov rcx, r12
call fcn.1400d568c
test eax, eax
jne 0x1400b7139
mov ebp, 8
xor r9d, r9d
test r15b, 2
jne 0x1400b683e
cmp ebp, 7
jl 0x1400b7132
and r15d, 1
cmp ebx, r15d
jne 0x1400b7132
lea eax, [rbp - 1]
mov dword [rsi + 0x10], 1
cmp eax, 0xc
ja case.0x1400b68dc.69
lea rcx, [0x140000000]
cdqe
mov eax, dword [rcx + rax*4 + 0xb715c]
add rax, rcx
jmp rax
movzx eax, word [r12]
cmp ax, 0x52
je 0x1400b687c
cmp ax, 0x72
je 0x1400b687c
xor r15b, r15b
jmp 0x1400b687f
mov r15b, 1
movzx eax, r15b
mov ebp, r9d
neg al
sbb rcx, rcx
lea r14, [r12 + rcx*2 + 0xa]
movzx ecx, word [r12 + rcx*2 + 0xa]
call fcn.140014b80
cmp ax, 0x55
jne 0x1400b68aa
add r14, 2
xor r12d, r12d
jmp 0x1400b68b0
mov r12d, 1
movzx ecx, word [r14]
call fcn.140014b80
movzx edx, ax
add edx, 0xffffffbd
cmp edx, 0x10
ja case.0x1400b68dc.69
lea rcx, [0x140000000]
movsxd rax, edx
mov edx, dword [rcx + rax*4 + 0xb7190]
add rdx, rcx
jmp rdx
mov dx, getservbyport
mov rcx, r14
call fcn.1400d6c94
test rax, rax
mov eax, 8
cmovne edi, eax
jmp 0x1400b691a
mov r14d, 2
mov edi, r14d
jmp 0x1400b6920
mov edi, 1
jmp 0x1400b691a
mov edi, 8
jmp 0x1400b691a
mov edi, 8
mov ebp, 1
mov r14d, 2
test r15b, r15b
je 0x1400b69e4
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r8d, edi
add rcx, 0x10
mov qword [rsp + 0x30], 0
call fcn.1400b5ea0
test eax, eax
je case.0x1400b68dc.69
test ebp, ebp
je 0x1400b698a
cmp edi, 4
jne 0x1400b6972
movd xmm0, dword [rsp + 0x30]
mov dword [rsi + 0x10], r14d
lea eax, [rdi - 3]
cvtps2pd xmm0, xmm0
movsd qword [rsi], xmm0
jmp 0x1400b713b
movsd xmm0, qword [rsp + 0x30]
mov dword [rsi + 0x10], r14d
mov eax, 1
movsd qword [rsi], xmm0
jmp 0x1400b713b
test r12d, r12d
je 0x1400b69d2
dec edi
je 0x1400b69bf
dec edi
je 0x1400b69ac
cmp edi, 2
jne 0x1400b69d2
movsxd rax, dword [rsp + 0x30]
mov qword [rsi], rax
lea eax, [rdi - 1]
jmp 0x1400b713b
movsx rax, word [rsp + 0x30]
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
movsx rax, byte [rsp + 0x30]
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
cmp ebx, 1
jne case.0x1400b68dc.69
mov r9, qword [r13 + 8]
test ebp, ebp
je 0x1400b6a27
xor r8d, r8d
mov edx, ebx
mov rcx, r9
call fcn.140085080
lea rbp, [0x1400f0524]
movsd qword [rsp + 0x30], xmm0
cmp edi, 4
jne 0x1400b6ab2
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x30], xmm0
jmp 0x1400b6ab2
cmp edi, 8
jne 0x1400b6a9c
test r12d, r12d
jne 0x1400b6a9c
mov ecx, dword [r9 + 0x10]
cmp ecx, 1
je 0x1400b6a9c
cmp ecx, 2
je 0x1400b6a9c
test ecx, ecx
je 0x1400b6a88
dec ecx
je 0x1400b6a54
dec ecx
je 0x1400b6a54
sub ecx, 2
je 0x1400b6a68
dec ecx
je 0x1400b6a88
lea rbp, [0x1400f0524]
mov rax, rbp
mov rcx, rax
call fcn.14004fde0
jmp 0x1400b6aad
mov rcx, qword [r9]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001820
lea rbp, [0x1400f0524]
mov rcx, rax
call fcn.14004fde0
jmp 0x1400b6aad
mov rax, qword [r9]
lea rbp, [0x1400f0524]
mov rcx, rax
call fcn.14004fde0
jmp 0x1400b6aad
xor edx, edx
mov rcx, r9
call fcn.140084fe0
lea rbp, [0x1400f0524]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r8d, edi
add rcx, 0x10
call fcn.1400b6230
test eax, eax
jne 0x1400b6ae0
mov rcx, qword [0x1401245a8]
test byte [rcx + 0x140], 1
jne 0x1400b7087
mov eax, eax
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
cmp ebx, 1
jg case.0x1400b68dc.69
test ebx, ebx
je 0x1400b6b0c
mov rcx, qword [r13 + 8]
xor edx, edx
call fcn.140084fe0
mov rbx, rax
jmp 0x1400b6b23
lea rcx, [r14 + 0x10]
call fcn.1400b57e0
lea rcx, [r14 + 0x10]
mov rbx, rax
call fcn.1400b5790
sub ebx, eax
cmp ebx, 0xffffffff
je case.0x1400b68dc.69
mov r8d, ebx
xor edx, edx
mov rcx, rsi
call fcn.1400855c0
test eax, eax
je case.0x1400b68dc.69
mov rdx, qword [rsi]
lea rcx, [r14 + 0x10]
xor r9d, r9d
mov r8d, ebx
call fcn.1400b5a80
xor edx, edx
mov ecx, eax
mov rax, qword [rsi]
mov dword [rsi + 0x10], edx
mov word [rax + rcx*2], dx
mov qword [rsi + 8], rcx
lea eax, [rdx + 1]
jmp 0x1400b713b
test ebx, ebx
jne case.0x1400b68dc.69
mov ecx, 0x20002
call fcn.1400d5b18
mov qword [rsi + 0x18], rax
test rax, rax
je case.0x1400b68dc.69
mov qword [rsi], rax
xor edi, edi
mov qword [rsi + 8], 0x10000
mov word [rax + 0x20000], di
mov rdx, qword [rsi]
lea rcx, [r14 + 0x10]
lea r9d, [rbx + 1]
mov r8d, 0xffff
call fcn.1400b5a80
mov dword [rsi + 0x10], edi
mov ecx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2], di
mov qword [rsi + 8], rcx
lea eax, [rbx + 1]
jmp 0x1400b713b
cmp ebx, 1
jg case.0x1400b68dc.69
mov r12d, r9d
mov edi, r9d
test ebx, ebx
je 0x1400b6c48
mov rdx, qword [rsi + 8]
mov rcx, qword [r13 + 8]
call fcn.140085140
mov rdx, qword [r13 + 8]
cmp dword [rdx + 0x10], 4
mov rbx, rax
jne 0x1400b6c24
mov rdx, qword [rdx]
cmp byte [rdx + 0x23], 0
jne 0x1400b6c0e
mov rcx, qword [rdx + 0x10]
movzx ecx, byte [rcx + 0x21]
jmp 0x1400b6c12
movzx ecx, byte [rdx + 0x21]
test cl, 1
jne 0x1400b6c24
mov rcx, rdx
call fcn.140024650
mov rdi, rax
jmp 0x1400b6c36
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx - 1]
lea rcx, [r14 + 0x10]
mov r8d, edi
mov rdx, rbx
call fcn.1400b5ff0
mov r12d, eax
cmp ebp, 4
jne 0x1400b6c71
test r12d, r12d
jne 0x1400b6c56
test edi, edi
jne 0x1400b6c7a
lea rcx, [r14 + 0x10]
lea rdx, [0x1400fddd4]
mov r8d, 1
inc edi
call fcn.1400b5ff0
add r12d, eax
test r12d, r12d
jne 0x1400b6c8e
test edi, edi
je 0x1400b6c8e
mov rax, qword [0x1401245a8]
test byte [rax + 0x140], 1
jne case.0x1400b68dc.69
mov eax, r12d
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
cmp ebx, 2
jne case.0x1400b68dc.69
movzx eax, word [r12 + 6]
cmp ax, 0x52
je 0x1400b6cbd
cmp ax, 0x72
je 0x1400b6cbd
xor bl, bl
jmp 0x1400b6cbf
mov bl, 1
mov rcx, qword [r13 + 0x10]
mov rdi, qword [r13 + 8]
xor edx, edx
call fcn.140084fe0
cmp dword [rdi + 0x10], 4
mov rbp, rax
jne 0x1400b6d60
mov rax, qword [rdi]
cmp byte [rax + 0x23], 0
jne 0x1400b6cea
mov rcx, qword [rax + 0x10]
jmp 0x1400b6ced
mov rcx, rax
cmp byte [rcx + 0x23], 2
jne 0x1400b6cfb
mov ecx, dword [0x14012c1a0]
jmp 0x1400b6cff
mov rcx, qword [rcx + 0x18]
mov edx, ebp
cmp rdx, rcx
jbe 0x1400b6d4f
test bl, bl
je 0x1400b6d2c
mov r8d, edx
and edx, 1
xor r9d, r9d
shr r8, 1
mov rcx, rax
mov byte [rsp + 0x20], 0
add r8, rdx
xor edx, edx
call fcn.1400bc2f0
test eax, eax
jne 0x1400b6d4f
mov rax, qword [0x1401245a8]
test byte [rax + 0x140], 1
jne case.0x1400b68dc.69
xor eax, eax
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
mov rcx, qword [rdi]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001820
jmp 0x1400b6d6a
xor edx, edx
mov rcx, rdi
call fcn.140084fe0
cmp rax, 0x10000
jae 0x1400b6d78
xor eax, eax
mov ecx, eax
jmp 0x1400b6d98
lea rcx, [r14 + 0x10]
mov r8d, ebp
mov rdx, rax
test bl, bl
je 0x1400b6d8d
call fcn.1400b5ea0
jmp 0x1400b6d92
call fcn.1400b6230
mov ecx, eax
test eax, eax
jne 0x1400b6db0
test ebp, ebp
je 0x1400b6db0
mov rax, qword [0x1401245a8]
test byte [rax + 0x140], 1
jne case.0x1400b68dc.69
mov eax, ecx
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
test ebx, ebx
jne 0x1400b6dd7
lea rcx, [r14 + 0x10]
call fcn.1400b5790
mov qword [rsi], rax
lea eax, [rbx + 1]
jmp 0x1400b713b
cmp ebx, 2
jg case.0x1400b68dc.69
mov rcx, qword [r13 + 8]
xor edx, edx
call fcn.140084fe0
mov rdi, rax
cmp ebx, 2
jne 0x1400b6e02
mov rcx, qword [r13 + 0x10]
xor edx, edx
call fcn.140084fe0
xor ebx, ebx
jmp 0x1400b6e11
xor ebx, ebx
mov ecx, 2
test rdi, rdi
mov eax, ebx
cmovs eax, ecx
lea rcx, [r14 + 0x10]
mov r8d, eax
mov rdx, rdi
call fcn.1400b5700
test al, al
jne 0x1400b6e45
mov rax, qword [0x1401245a8]
test byte [rax + 0x140], 1
jne case.0x1400b68dc.69
mov qword [rsi], rbx
mov eax, 1
jmp 0x1400b713b
mov qword [rsi], 1
mov eax, 1
jmp 0x1400b713b
test ebx, ebx
jne 0x1400b6e6e
lea rcx, [r14 + 0x10]
call fcn.1400b57e0
mov qword [rsi], rax
lea eax, [rbx + 1]
jmp 0x1400b713b
cmp ebx, 1
jne case.0x1400b68dc.69
mov rcx, qword [r13 + 8]
xor edx, edx
call fcn.140084fe0
lea rcx, [r14 + 0x10]
mov rdx, rax
call fcn.1400b5830
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b7132
lea rbp, [0x1400f0524]
mov qword [rsi], rbp
jmp 0x1400b7087
test ebx, ebx
jne 0x1400b6f01
mov rcx, qword [r14 + 0x40]
test rcx, rcx
je 0x1400b6ec4
mov eax, dword [r14 + 0x1c]
add rax, qword [r14 + 0x48]
cmp rcx, rax
jb 0x1400b6ee7
mov rax, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rax + 0x30]
mov rbx, rax
test rax, rax
js 0x1400b6ef9
mov rdx, qword [r14 + 0x10]
lea rcx, [r14 + 0x10]
call qword [rdx + reloc.WSOCK32.dll_getservbyport]
cmp rbx, rax
jge 0x1400b6ef9
xor al, al
movzx eax, al
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
mov al, 1
movzx eax, al
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
test ebx, ebx
jne 0x1400b6f6f
mov rdx, qword [r14 + 0x40]
test rdx, rdx
je 0x1400b6f3d
sub rdx, qword [r14 + 0x48]
mov eax, dword [r14 + 0x1c]
mov rdi, qword [r14 + 0x10]
lea r8d, [rbx + 1]
lea rcx, [r14 + 0x10]
sub rdx, rax
call qword [rdi + 0x28]
xor r9d, r9d
mov qword [r14 + 0x40], r9
mov dword [r14 + 0x1c], r9d
mov r8d, dword [r14 + 0x1c]
test r8d, r8d
je 0x1400b6f63
cmp qword [r14 + 0x40], 0
jne 0x1400b6f63
mov rax, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x48]
lea rcx, [r14 + 0x10]
call qword [rax + 0x20]
xor r9d, r9d
mov dword [r14 + 0x1c], r9d
mov rax, qword [r14 + 0x50]
mov word [r14 + 0x3c], r9w
mov qword [rsi], rax
mov eax, 1
jmp 0x1400b713b
test ebx, ebx
jle 0x1400b6fef
mov rcx, qword [r13 + 8]
call fcn.140084cf0
test eax, eax
je 0x1400b6f97
mov rcx, qword [r13 + 8]
xor edx, edx
call fcn.140084fe0
jmp 0x1400b6fdb
mov rdi, qword [r13 + 8]
mov ecx, dword [rdi + 0x10]
test ecx, ecx
je 0x1400b6fd0
dec ecx
je 0x1400b6fb3
dec ecx
je 0x1400b6fb3
sub ecx, 2
je 0x1400b6fbc
dec ecx
je 0x1400b6fd0
lea rbp, [0x1400f0524]
jmp 0x1400b6fd3
mov rcx, qword [rdi]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140001820
mov rbp, rax
jmp 0x1400b6fd3
mov rbp, qword [rdi]
mov rcx, rbp
call fcn.140027f30
cmp eax, 0xffffffff
je 0x1400b6fef
btr eax, 0x1f
lea rcx, [r14 + 0x10]
mov edx, eax
call fcn.1400058d0
mov ecx, dword [r14 + 0x24]
cmp ecx, 0x4b0
je 0x1400b7050
cmp ecx, 0xfde9
je 0x1400b7037
mov rdi, qword [rsi + 8]
mov eax, 0x43
mov word [rdi], ax
mov eax, 0x50
lea rdx, [rdi + 4]
lea r8d, [rax - 0x46]
mov word [rdi + 2], ax
call fcn.1400d53e0
xor eax, eax
mov qword [rsi], rdi
mov dword [rsi + 0x10], eax
mov eax, 1
jmp 0x1400b713b
xor eax, eax
lea rdi, str.UTF_8
mov dword [rsi + 0x10], eax
mov qword [rsi], rdi
mov eax, 1
jmp 0x1400b713b
xor eax, eax
lea rdi, str.UTF_16
mov dword [rsi + 0x10], eax
mov qword [rsi], rdi
mov eax, 1
jmp 0x1400b713b
test ebx, ebx
jne 0x1400b7076
lea rcx, [r14 + 0x10]
call fcn.140005880
mov eax, 1
jmp 0x1400b713b
lea rbp, [0x1400f0524]
mov rax, qword [0x1401245a8]
xor r12d, r12d
mov dword [rsi + 0x10], r12d
test byte [rax + 0x140], 1
je 0x1400b7132
mov rbx, qword [0x14012bbb0]
lea ecx, [r12 + 0x20]
call fcn.1400d6328
mov rdi, rax
test rax, rax
je 0x1400b7115
lea r8, str.FileObject
lea rdx, [0x1400f45ec]
mov r9, rbp
mov rcx, rbx
call fcn.14004c850
mov qword [rdi], rax
test rax, rax
je 0x1400b710d
mov rax, qword [0x1401245a8]
mov dword [rdi + 0x10], 6
mov qword [rdi + 0x18], r12
test byte [rax + 0x140], 2
mov qword [rax + 0x148], rdi
jne 0x1400b7132
mov rcx, rbx
call fcn.14004e310
lea eax, [r12 + 1]
jmp 0x1400b713b
mov rcx, rdi
call fcn.1400d5bd0
xorpd xmm3, xmm3
lea rcx, str.Out_of_memory.__The_current_thread_will_exit.
xor r8d, r8d
mov edx, 0x10000
mov qword [rsp + 0x20], r12
call fcn.1400bed30
mov eax, 1
jmp 0x1400b713b
mov eax, edi
mov rbp, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret